Rubyist Rohit wrote in post #1014419:
> @Martin:
>
> I am going through the tutorial link you provided. It discusses about
> assumptions made by Ruby. One such assumption is: "Keeping code DRY
> (Don't Repeat Yourself)". Is Ruby assuming the drawbacks of code
> re-usability that is popular throughout programming paradigm?
>

Quite the opposite:

Situation 1:  you have a method with 20 lines of code that performs a 
calculation, and every time you need to execute that code you call the 
method.

Situation 2: every time you need to do do the calculation, you write the 
20 lines of code in your app.

Which situation would you deem to be the one that repeats itself?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to