Phlip
2/16/2008 2:15:00 AM
Serg Koren wrote:
> As relatively new to Ruby, I'd be interested in seeing what people
> think are the best idioms for Ruby.
Coming to Ruby from C++, I learned to stop writing intricate balanced
classes, and start abusing blocks with reckless abandon.
This might be experience speaking here, but I have not yet found a way to
make a design worse by adding a block closure. If you are typing a
method, and you don't know what to type next, you just write 'yield', and
you let the calling method figure it out!
--
Phlip