Lots of people, especially beginners, copy and paste a lot of code.  Just
about everyone's done it, and it's a great way to get started and get
something that works, but the resulting code can be brittle and hard to
maintain because you've got the same or similar logic spread out everywhere.
 Classes and OO are tools, but they don't insure against bad coding
practices.

You'll hear the term "refactoring" a lot.  Look it up, and get to know what
it means.  It's how you get from the kind of spaghetti I was describing to
high-quality, DRY code.

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

> Isn't the concept of Classes mean this? Does Ruby has something more
> advanced?
>
> --
> 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