Building Maintainable Software, Java Edition by Joost Visser, Sylvan Rigal, Rob van der Leek, Pascal van

By Joost Visser, Sylvan Rigal, Rob van der Leek, Pascal van Eck, Gijs Wijnholds

Have you felt pissed off operating with an individual else's code? Difficult-to-maintain resource code is a giant challenge in software program improvement this day, resulting in expensive delays and defects. be a part of the answer. With this useful booklet, you'll examine 10 easy-to-follow directions for providing Java software program that's effortless to keep up and adapt. those guidance were derived from studying hundreds and hundreds of real-world systems.

Written through experts from the software program development workforce (SIG), this booklet presents transparent and concise reasons, with suggestion for turning the information into perform. Examples for this version are written in Java, whereas our significant other C# ebook offers possible examples in that language.

Show description

Read or Download Building Maintainable Software, Java Edition PDF

Best software development books

Accelerating Process Improvement Using Agile Techniques

Accelerating method development utilizing Agile options explains how agile programming is utilized to plain approach development. by means of using agile concepts, IT agencies can accelerate strategy development tasks, reduce the assets those tasks require, and maximize the advantages of procedure development.

What Computing Is All About

This can be a self-contained dialogue of primary subject matters in machine technological know-how, which include insurance of software semantics, automata thought, software and circuit layout, concurrent courses and compilation. Formal proofs and sensible functions are supplied in the course of the textual content.

The Struts Framework Practical Guide for Java Programmers

Pressestimmen"I heartily suggest this e-book. given that an early replica of Sue's manuscript hit my table, it has now not left my facet and is now good thumbed and collecting espresso stains from ordinary use. " Simon Chappell - Java Programming expert with a Fortune a hundred corporation. " "Sue Spielman launches the aspiring Java J2EE programmer on an exhilarating exploration of Struts dependent MVC structure and applies this information in making a cutting-edge net program.

An Introduction to Software Engineering

This publication is an advent to software program engineering and perform addresses bothagile and plan-driven software program engineering. The ebook is very meant foran advent to software program engineering undergraduate direction. The identify exhibits it's a partial creation simply because just one bankruptcy, an appendix on UML, bargains with layout.

Extra resources for Building Maintainable Software, Java Edition

Example text

About JPacman In this book, we use the source code of a simple Pacman-style game in several chap‐ ters (Figure 2-1). The codebase we use is called the JPacman framework by its authors. JPacman was created by professor Arie van Deursen and his team at Delft University of Technology for teaching testing concepts. 0 license and is available on GitHub. Figure 2-1. info | 15 The most basic version of the start method checks whether the game is already in progress. If so, it silently returns; otherwise, it updates inProgress, a private member to keep track of its state: public void start() { if (inProgress) { return; } inProgress = true; } So far our unit contains only four lines of code.

2. charAt(i)); } if (sum % 11 == 0) { // 3. "); } } } Given the account number of the account to transfer money to (as a string), the make Transfer method creates a Transfer object. makeTransfer first checks whether the amount to be transferred does not exceed a certain limit. In this example, the limit is simply hardcoded. makeTransfer then checks whether the number of the account to transfer the money to complies with a checksum (see the sidebar “The 11-Check for Bank Account Numbers” on page 12 for an explanation of the checksum used).

While keeping the codebase small is a good practice, the advantages of short units far outweigh the increase in overall volume—especially given the marginal volume increase in this case. That writing maintainable code is always a trade-off is also evident in the choices made by the JPacman authors. In the source code as it appears on GitHub, Extract Method has been applied once, resulting in the 12-line version of updateObservers. The authors of JPacman have not chosen to split updateObservers into updateObser versPlayerDied and updateObserversPelletsEaten.

Download PDF sample

Rated 4.51 of 5 – based on 3 votes