mercredi 17 juin 2015

Design patterns in ruby? [on hold]

Design patterns in ruby I guess is the most popular question asked to a ruby programmer. But I do not quite understand if there can be a general answer to it. I have found several pages on web talking about this but I am still not sure what to understand from this question and what could be the perfect answer to it.

What I understood from design patterns is -

  • How to keep your code DRY and well segregated.
  • Which approach to prefer to solve a problem. Eg - use inheritance or module.

But I feel this is not the complete idea of design patterns.

Would appreciate if someone can throw some light on this concept.

Aucun commentaire:

Enregistrer un commentaire