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()) ...
Oct 14, 20243 min read30