A 1-post collection

7 years ago

Refactor your code - remove those if-else if-else and switch statements

.NET   functional   refactoring  

I'm currently working with some legacy code and came across a really long if-else if-else function. We've all been down that path writing that type of code. A situation where this is pretty common in…