>From Wikipedia (which is the first Google result for "don't repeat
yourself"):

In software engineering <http://en.wikipedia.org/wiki/Software_engineering>
, *Don't Repeat Yourself* (*DRY*) or *Duplication is Evil* (*DIE*) is a
principle<http://en.wikipedia.org/wiki/Principle#Principle_as_axiom_or_logical_fundament>
 of software 
development<http://en.wikipedia.org/wiki/Software_development_process>
aimed
at reducing repetition of information of all kinds, especially useful
in multi-tier
architectures <http://en.wikipedia.org/wiki/Multi-tier_architecture>. The
DRY principle is stated as "Every piece of knowledge must have a single,
unambiguous, authoritative representation within a system."


On Tue, Aug 2, 2011 at 12:36 PM, Rubyist Rohit <[email protected]> wrote:

> 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.
>
>

-- 
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