I'm hoping people can provide some insight into how to handle an issue I run into frequently with Command-Query Separation. Suppose I have a function that creates a new row in a database, and the return value of the function is an identifier for the new row
Hi Jacob,
As always you post is thought provoking which increases the appetite to know more. Hence can you pls provide a little example?
--
The only way to go fast is to go well.
---
You received this message because you are subscribed to the Google Groups "Clean Code Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discu...@googlegroups.com.
To post to this group, send email to clean-code...@googlegroups.com.
Visit this group at http://groups.google.com/group/clean-code-discussion.
--
id = CreateRow(state="STARTED")
...
UpdateRow(id, state="PROCESSED")
id = CreateFooRow()
CreateBarRow(fooid=id)
bar = Bar()
bar.addFoo(Foo())
Persist(bar)
To unsubscribe from this group and stop receiving emails from it, send an email to clean-code-discussion+unsub...@googlegroups.com.