Smalltalk Best Practice Patterns in Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with avdi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
01_composing_method.rb
02_constructor_method.rb
03_constructor_parameter_method.rb
04_shortcut_constructor_method.rb
06_converter_method.rb
07_converter_constructor_method.rb
08_query_method.rb
09_comparing_method.rb
10_reversing_method.rb
11_method_object.rb
12_execute_around_method.rb
13_debug_printing_method.rb
14_method_comment.rb
16_choosing_message.rb
17_decomposing_message.rb
18_intention_revealing_message.rb
19_intention_revealing_selector.rb
20_dispatched_interpretation.rb
README
cascade.rb
flow_control.rb

README

My attempts at translating the code samples in Smalltalk Best Practice
Patterns into Ruby code.

See ongoing blog post series: http://avdi.org/devblog/category/smalltalk-best-practice-patterns/

You really need a copy of the book for context if you're going to read these:
http://www.amazon.com/Smalltalk-Best-Practice-Patterns-Kent/dp/013476904X/

On collaboration: so, this is kind of a personal exercise for me; I want to work through the patterns and come to my own interpretation. That said, I'm also *very* interested in other people's takes on the patterns. And I think it would be cool to put different takes side-by-side.

So feel free to fork this, and if you have a different idea on how a pattern should be translated, add it into the file with commentary (don't replace the existing content) and send me a pull request.

If you've translated patterns that I haven't gotten to yet... hmm. well, feel free to send a pull request, but for the sake of the exercise I might write my own version before I let myself look at your version.