Nicklas Millard
1 min readJun 21, 2020

Well, you wouldn't place the if-else statements in the new objects.

The purpose of objects is to represent a "branch" that would otherwise have been an if-else statement.

I suggest you read some of the articles I've linked, or maybe look up Zoran Horvat. He's an elite programmer with a strong opinion about branching statements as well.

Nicklas Millard

I mostly write to "future me" sharing what I learn and my opinion on software development practices. youtube.com/@nmillard | open for contracts in Jan 2026.