Your are here: Home // Posts Tagged With extending
The DRY Principle
Podcast: Play in new window
| Download
According to The Pragmatic Programmer by Andy Hunt and Dave Thomas, “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”
Last week I talked about extending your Ruby on Rails application. This is because in many cases in order to avoid repeating your logic across multiple classes (models or...
Extending Ruby on Rails
Podcast: Play in new window
| Download
I’m going to be talking about the DRY principle next week. However, before I jump into that, I need to discuss how to extend Ruby on Rails so you know where you can put functionality to keep your application DRY.
There are a couple of standard places people put code that isn’t a Model, View, Controller, or Helper:
The ‘lib’ folder – This is...
Tags: classes, extending, extensions, gems, junk drawer, lib, modules, plugins, rails, ruby, ruby on rails

