7stud -- wrote in post #1014420: > Rubyist Rohit wrote in post #1014419: > > 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? > > edit: Upon rereading your question, I have no idea what you are asking.
I mean, what is meant by DRY methodology of Ruby? If it insists to re-use code, then this paradigm is already there, from before Ruby. What exactly is meant by: "Don't Repeat Yourself"? -- 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.

