Comments on: Commands vs Queries https://blog.mattwynne.net/2012/02/22/commands-vs-queries/ Matt Wynne taking it one tea at a time Wed, 21 Aug 2019 12:54:39 +0000 hourly 1 https://wordpress.org/?v=6.2 By: Kent Beck https://blog.mattwynne.net/2012/02/22/commands-vs-queries/comment-page-1/#comment-1566 Wed, 22 Feb 2012 15:01:51 +0000 http://blog.mattwynne.net/?p=331#comment-1566 Generally true. Stream.next() is my counter example, perhaps the exception that proves the rule.

]]>
By: solnic https://blog.mattwynne.net/2012/02/22/commands-vs-queries/comment-page-1/#comment-1565 Wed, 22 Feb 2012 11:30:07 +0000 http://blog.mattwynne.net/?p=331#comment-1565 I’ve started using this convention recently and it’s been great. It makes your API very consistent and has some nice ‘side effects’ like ability to easily chain commands (helpful in some cases).

That’s a truly great practice I wish more people in Ruby community were using it!

]]>