Skip to Content
Building Maintainable Software, Java Edition
book

Building Maintainable Software, Java Edition

by Joost Visser, Sylvan Rigal, Rob van der Leek, Pascal van Eck, Gijs Wijnholds
January 2016
Intermediate to advanced content levelIntermediate to advanced
168 pages
4h 6m
English
O'Reilly Media, Inc.
Content preview from Building Maintainable Software, Java Edition

Chapter 12. Next Steps

At this point, you know a lot more about what maintainable code is, why it is important, and how to apply the 10 guidelines in this book. But writing maintainable code is not something you learn from a book. You learn it by doing it! Therefore, here we will discuss simple advice on practicing the 10 guidelines for achieving maintainable software.

Turning the Guidelines into Practice

Ensuring that your code is easy to maintain depends on two behaviors in your daily routine: discipline and setting priorities. Discipline helps you to constantly keep improving your coding techniques, up to a point where any new code you write will already be maintainable. As for priorities, some of the presented guidelines can seem to contradict each other. It takes consideration on your side about which guideline has the most impact on the actual maintainability of your system. Be sure to take some time to deliberate and ask your team for their opinion.

Lower-Level (Unit) Guidelines Take Precedence Over Higher-Level (Component) Guidelines

Keep in mind that the aggregated higher-level guidelines are effects of the application applying the lower-level principles. For example, when units of code are long and duplicated throughout the system (see Chapters 2 and 4), the codebase will likely be large as well (see Chapter 9). This is because one of the causes of having a large codebase is that long units are being duplicated.

Therefore, when there is a conflict between two guidelines, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 8 in Action

Java 8 in Action

Mario Fusco, Alan Mycroft, Raoul-Gabriel Urma

Publisher Resources

ISBN: 9781491955987Errata Page