Talk:Command-query separation
From Wikipedia, the free encyclopedia
I'm not all that comfortable with the discussion of race conditions. I don't see how CQS reduces race conditions; if anything, it adds new ones. Avoiding race conditions wasn't one of the goals of CQS, and I don't see how it achieves that. At the very least, I think an example is warranted. --P3d0 00:23, 12 Aug 2003 (UTC)
- No response in over a week, so I have removed the paragraph in question. For the record, here it is:
-
- For example, eliminating value returns from state modifications avoids the possiblity of race conditions between old and new states. This may at first seem to over-complicate the program by requiring two methods to be used (with explicit synchronization in threaded systems) where before a single method would suffice, but in practice this actually makes explicit hidden assumptions about data dependencies which would otherwise be invisible to the programmer.
- Anyone who wants to re-insert it ought at least to provide an example, but ideally should describe this in more detail. --P3d0 14:15, 21 Aug 2003 (UTC)