Category Archives: OOD

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

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 .Net, and that is where I stumbled on it this time, is when acting on a some kind of command [...]

Agile Architecture and Design XPMeetup Summary

For some time ago I attended a XP Meetup presentation by Robert C. Martin (Uncle Bob). The presentation was based on some of the subjects covered in the course Agile Architecture and Design hosted by ProgramUtvikling AS. The subjects covered were; Dependency Inversion Principle, Open/Closed Principle, Liskov Substitution Principle and Interface Segregation Principle, which are [...]