/Tag: clean code

Introduction to Lombok

Java is often criticised for being unnecessarily verbose compared with other languages. Lombok provides a bunch of annotations that generate boilerplate code in the background, removing it from your classes and therefore helping to keep your code clean. Less boilerplate means more concise code that's easier to read and maintain. In this post I'll cover the Lombok features I use more regularly and show you how they can be used to produce cleaner, more concise code. Local Variable Type Inference - val & var Lots of languages infer the local variable type by looking at the expression on the righthand side of the equals. Although [...]

By |2019-04-30T08:21:51+00:00April 30th, 2019|Java|0 Comments