1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

DRY (Don't Repeat Yourself)


Definition: DRY--Often used as an adjective, as in "Is this code DRY enough?" Stands for "Don't Repeat Yourself" and is a principle aimed at repeating code as little as possible, making it easier to make changes later on in the development cycle. If the code only exists in one place, it only needs to be changed in one place. Rails gives you several facilities, such as the helpers and the libraries, to help implement DRY code.
Also Known As: Single Point of Truth, the DRY principle
  1. About.com
  2. Technology
  3. Ruby
  4. Glossary
  5. A - F
  6. DRY--Don't Repeat Yourself

©2014 About.com. All rights reserved.