[Rails] Re: ruby koans don't understand the principle sandwhich code

2012-09-23 Thread 7stud --
But I don't get the principle. There is no such principle as the Sandwich principle. The principle is Don't Repeat Yourself(DRY). So if you find yourself writing the same or similar code over and over again, try to figure out a way to extract the repeated part into a method. That way you

[Rails] Re: Ruby Koans

2011-09-17 Thread Alexey Petrushin
Don't like it, unit test looks ugly compared to RSpec, hard to read. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Re: Ruby Koans

2011-09-13 Thread tonypm
Just started going through - it is nice - thanks for the info! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to