command-query-separation Questions
1
If your question was closed as a duplicate of this, it is because you have some code of the general form
x = X()
# later...
x = x.y()
# or:
x.y().z()
where X is some type that provides y and z met...
Lonesome asked 27/3, 2023 at 0:18
5
Solved
I started writing a fluent interface and took a look at an older piece Martin Fowler wrote on fluent interfaces (which I didn't realize he and Eric Evans coined the term). In the piece, Martin ment...
Euphonium asked 16/3, 2012 at 18:0
9
Solved
In wikipedia's definition of command query separation, it is stated that
More formally, methods should return a value only
if they are referentially transparent
and hence possess no side effe...
Memorize asked 10/9, 2010 at 20:21
5
Solved
I am learning what is CQRS pattern and came to know there is also CQS pattern.
When I tried to search I found lots of diagrams and info on CQRS but didn't found much about CQS.
Key point in CQRS ...
Alkyd asked 13/12, 2015 at 19:44
5
Solved
I implement Event Sourcing and CQRS pattern in my application. I inspired by CQRS journey where I downloaded sample code. There I found whole infrastructure for Event sourcing (CommandHandlers, Eve...
Fenelia asked 17/7, 2015 at 11:55
2
Solved
Given a real-world anonymous shopping cart, the "AddToCart" workflow must do the following steps:
Lookup the current product from the database. Get the price from the product or use a service to ...
Chandigarh asked 12/4, 2016 at 16:25
3
Solved
The CQS-principle (https://en.wikipedia.org/wiki/Command%E2%80%93query_separation) states that a command should return void.
The recommendation for async methods is to never return void (https://...
Angeliaangelic asked 23/11, 2015 at 14:56
3
Solved
I like the idea of Command Query Separation but can't see how to use it within an MVC Controller action which is adding an entity, and needs the new entity's ID after adding it.
For example, in the...
Hedwighedwiga asked 3/5, 2012 at 14:45
4
Solved
What would be the naming conventions in Python for functions that can return a modified object or that just modifies the instance.
Let's assume you want to implement both, how you should name the ...
Brumbaugh asked 21/11, 2011 at 12:35
3
Solved
Edit: fixed several syntax and consistency issues to make the code a little more apparent and close to what I actually am doing.
I've got some code that looks like this:
SomeClass someClass;
var ...
Condescending asked 5/10, 2010 at 0:8
1
© 2022 - 2024 — McMap. All rights reserved.