Object Calisthenics is an exercise proposed by Jeff Bay in the book The Thoughtworks Anthology, that outlines a set of nine rules to be used to write a new object-oriented project, with around 1000 lines of code, to help us design a piece of software that really implements encapsulation well.Read More »Object Calisthenics
For years I have been managing my JDK all by myself, for instance, you’ll find a good amount of tutorials in this blog on how to install Java or making a portable JDK for making it easier to switch versions. It works quite well but we no longer need to do any of that manually, we can use SDKMAN!.Read More »Don’t install Java by yourself anymore, use SDKMAN! instead
Here follows a short list of some IntelliJ IDEA useful shortcuts and tips to improve your productivity whilst coding Java.
Alt + Insert to open the code generation dropbox, then type:
Ctrl + Enterfor no-arg constructor.
Ctrl + Ato select all of the arguments.
This tutorial is going to show you how to create a Play Java project using the command line build tool SBT in simple steps.
Create a Workspace
First, create a workspace in order to keep things organised:
mkdir play-workspace cd play-workspaceRead More »Create Play Java Project
This tutorial will show how to install Spring Tool Suite on Eclipse and also the option to download and run the stand-alone version of the suite.
The Spring Tool Suite (STS) is an Eclipse based toolbox for Spring development, containing features such as a Boot Dashboard, support to the whole Spring ecosystem and native integration with Maven, Gradle and Git.
Pre-requisitesRead More »Install Spring Tool Suite on Eclipse
There are two types of exceptions in EJB: application exception and system exception. This guide will show how to identify and implement both of them.
Why two types of exceptions in EJB?
In EJB, it’s important to know whether an exception has occurred because of a business problem or a system error. That way, EJB exceptions are split in two to represent a maybe recoverable business problem (like an ordinary checked exception in Java) or a unexpected and unrecoverable issue caused by a system error or bad coding (like common runtime exceptions).
After all the concepts involved, they are just ordinary exceptions with meaningful metadata defined by annotations or XML configuration in the deployment descriptor to tell the EJB container how to deal with them.Read More »EJB: Application Exception vs System Exception