Theme: Technical

Submitted by

If statements are evil!

If statements are one of the first programming constructs we learn - so they feel very natural, in fact, they seem essential. But more often than than not, the simple 'if' statement signals a missed abstraction or a missing class. I will show how viewing 'if' statements through the lens of SOLID design principles can lead to refactored code where the 'if' statements almost magically disappear. And the resulting design ...more »


6 votes