Don't Repeat Yourself

The idea behind the Don't Repeat Yourself (DRY) principle is to reuse the code you previously wrote instead of repeating it. The benefits are less code to maintain and the use of code that you know that already works, which is a great thing. It helps you to discover new abstraction levels inside your code.

For additional information, visit http://en.wikipedia.org/wiki/Don%27t_repeat_yourself.

Get Test-Driven Java Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.