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 somebody else's code? Difficult-to-maintain resource code is a huge challenge in software program improvement this day, resulting in high priced delays and defects. be a part of the answer. With this useful booklet, you'll research 10 easy-to-follow guidance for offering Java software program that's effortless to keep up and adapt. those directions were derived from studying enormous quantities of real-world systems.

Written by way of experts from the software program development team (SIG), this booklet offers transparent and concise reasons, with suggestion for turning the ideas into perform. Examples for this version are written in Java, whereas our better half C# ebook offers viable examples in that language.

Show description

Read Online or Download Building Maintainable Software, Java Edition PDF

Best software development books

Software Engineering for Modern Web Applications: Methodologies and Technologies

As glossy agencies migrate from older details architectures to new Web-based structures, the self-discipline of software program engineering is altering either when it comes to applied sciences and methodologies. there's a have to learn this new frontier from either a theoretical and pragmatic point of view, and provide not just a survey of recent applied sciences and methodologies yet discussions of the applicability and pros/cons of every.

Advances in Computers, Vol. 11

On the grounds that its first quantity in 1960, Advances in desktops has offered specific insurance of suggestions in and software program and in desktop conception, layout, and functions. It has additionally supplied individuals with a medium during which they could learn their matters in larger intensity and breadth than that allowed via normal magazine articles.

Lean architecture for agile software development

Progressively more Agile tasks are searching for architectural roots as they try with complexity and scale - and they are looking light-weight how you can do it nonetheless looking? during this book the authors help you in finding your individual direction Taking cues from Lean development, they may help steer your venture towards practices with longstanding music files Up-front structure?

Advances in Computers and Information in Engineering Research

This ebook sequence goals to trap advances in pcs and data in engineering learn, specifically via researchers and contributors of ASME's desktops & details in Engineering (CIE) department. The books might be released in either conventional and e-book codecs. The sequence is targeting advances in computational tools, algorithms, instruments, and methods at the innovative of study and improvement as they've got developed and/or were said over the past 3 to 5 annual CIE meetings.

Extra resources for Building Maintainable Software, Java Edition

Example text

A drawback of this refactoring is that it introduces more code spread out over more classes. The developer much choose between extensibility and conciseness. info | 35 Dealing with Nesting Suppose a unit has a deeply nested conditional, as in the following example. Given a binary search tree root node and an integer, the calculateDepth method determines whether the integer occurs in the tree. "); } else { return 1 + calculateDepth(right, n); } } } } To improve readability, we can get rid of the nested conditional by identifying the dis‐ tinct cases and insert return statements for these.

Does it really belong in the unit you are writing, or should it go into its own unit? When a unit grows beyond 15 lines of code despite your efforts, you need to shorten it. info When Writing a New Unit Assume you are writing a class that represents a level in JPacman, the codebase we use for a number of examples in this book. See the sidebar “About JPacman” on page 15 for an introduction to it. This class provides public start and stop methods that are called from buttons in the user interface of the game.

First, there is the JDBC connection. Then the checksum is validated in a for loop inside the while loop, which iterates over all records returned by the SQL query. There are also the details of JSON formatting, and the details of Java servlets, to keep in mind. The for loop in the middle of the unit implements the checksum validation. While conceptually not that difficult, this type of code requires testing. That is easier said than done, since you can only test the code by invoking the doGet method.

Download PDF sample

Rated 4.12 of 5 – based on 24 votes