A lot of programmers fall into the temptation that when they need new functionality that is similar to what they had before, that they simply copy and paste their previous code and change a few lines to get the effect they want. This might give a false sense of productivity as a lot of "lines of code" (LOC) is produced per day. When I add new functionality to existing project, quite often in the end I will have fewer lines of code, rather than more, because whilst I'm adding the new features, I'm also eliminating other programmer's copy & pasted code. The danger with copy & paste coding is that any mistake in the original code is replicated throughout the code base every time that we paste it.
We hope you enjoyed this tutorial. If you did, you will also enjoy our courses. We suggest you start with Extreme Java - Advanced Java, followed by Extreme Java - Concurrency Performance for Java 8.
We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.
We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...