Nicklas Millard
1 min readJun 22, 2020

--

Hey Philipp!

Thanks for taking the time to read and respond to my story. Much appreciated! :)

The 6 lines of code were definitely overly simplified.

In this case with an object needing to have it's implementation changed due to state transitioning, it makes perfect sense to apply the State pattern.

And as we obviously know, if-else is a niche language feature that shouldn't be used.

--

--

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 May 2024.