Java by Comparison

Become a Java Craftsman in 70 Examples

by: Simon Harrer, Jörg Lenhard, Linus Dietz

Published 2018-03-21
Internal code javacomp
Print status In Print
Pages 206
User level Intermediate
Keywords java, boolean, JUnit5, object-oriented,
Related titles

- Venkat Subramaniam, “Functional Programming in Java: Harnessing the Power of Java 8 Lambda Expressions”, The Pragmatic Programmers, LLC, 2014-02-28, ISBN: 978-1-937785-46-8
- Jeff Langr, Andy Hung, Dave Thomas, “Pragmatic Unit Testing in Java 8 with JUnit”, The Pragmatic Programmers, LLC, 2015-03-16, ISBN: 978-1-94122-259-1

ISBN 9781680502879
Other ISBN Channel epub: 9781680505894
Channel PDF: 9781680505900
Kindle: 9781680505870
Safari: 9781680505887
Kindle: 9781680505870
BISACs COM051280 COMPUTERS / Programming Languages / Java
COM051230 COMPUTERS / Software Development & Engineering / General
COM051230 COMPUTERS / Software Development & Engineering / General

Highlight

Improve your coding skills by comparing your code to that of expert programmers so you can write code that’s clean, concise, and to the point: code that others will read with pleasure and reuse. Get hands-on advice to level up your coding style through small and understandable examples that compare flawed code to an improved solution. Discover handy tips and tricks, as well as common bugs an experienced Java programmer needs to know. Make your way from a Java novice to a master craftsman.

Description

This book is a useful companion for anyone learning to write clean Java code. The authors introduce you to the fundamentals of becoming a software craftsman by comparing pieces of problematic code with an improved version to help you to develop a sense for clean code. This unique before-and-after approach teaches you to create clean Java code.

Learn to keep your booleans in check, dodge formatting bugs, get rid of magic numbers, and use the right style of iteration. Write informative comments when needed, but avoid them when they are not. Improve the understandability of your code for others by following conventions and naming your objects accurately. Make your programs more robust with intelligent exception handling and learn to assert that everything works as expected using JUnit5 as your testing framework. Impress your peers with an elegant functional programming style and clear-cut object-oriented class design.

Writing excellent code isn’t just about implementing the functionality. It’s about the small important details that make your code more readable, maintainable, flexible, robust, and faster. Java by Comparison teaches you to spot these details and trains you to become a better programmer.

Contents and Extracts