Theme: Technical

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 is cleaner, tests are simpler and the world is just a little less evil.

Tags

What type of presentation is this? : Lightning Talk (5 min)

Voting

6 votes
Idea No. 35