Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Smalltalk Best Practice Patterns in Ruby
Ruby
branch: master

This branch is 22 commits behind avdi:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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
README

README

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

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.
Something went wrong with that request. Please try again.