Code Refactoring 14

In this part of the code refactoring tutorial, I’ll show you how and when to use the Adapter Design Pattern. With the adapter pattern we can create a new class without disturbing any other code. On top of that adapters make it easier to swap in code at runtime. They also allow you to...

Code Refactoring 13

In this part of my code refactoring tutorial, I’ll show you how to replace conditionals with the command pattern. I’m also going to do more though. I’ll also review what the command pattern is. I’ll give an example of when you should use it. We’ll look at how to add...

Next Entries »

Google+