Often you see this code:
public void bla() { if (conditionTrue) {
The else branch, obviously, is some kind of protective sentence that has shifted down, the indentation for the long code section can be smoothed out:
public void bla() { if (!conditionTrue) return;
Some experts will cope with this by putting these extra branches in 3, 4 or 5 levels, creating code that is absolutely difficult to read.
I know these places somehow touching this topic:
Is this a named anti-pattern and what is its name?
source share