Conditional Chain Pattern
Level: Intermediate.Language: Java.
Recently, I had to refactor a piece of code in the project I’m working on, which involved replacing a block similar to the following pseudocode:
void aFunctionalBlock(Params params) {
if (conditionEvaluable()) ...
rfjuarez.hashnode.dev3 min read