Refactoring Video Tutorial

After you learn the core syntax of a language many programmers are lost on what to learn next. What do you need to know to create large flexible and extendable applications? I did my best to teach you how to structure your programs in my Object Oriented Design Tutorial. And, to understand OOD you have to...

Code Refactoring 18

In this tutorial I end my Code Refactoring Tutorial. It was a big one and between it and my Design Patterns Video Tutorial you should be able to do most anything. To end this tutorial, I’ll cover the Abstract Factory Pattern again to make sure you understand it. It is often considered a...

Code Refactoring 17

In this part of the code refactoring tutorial I will answer another challenge I recently received. This tutorial is all about the Visitor Design Pattern. You use the visitor design pattern when you want to perform a similar calculation on many different objects. It seems to confuse people, but I...

Code Refactoring 16

In this tutorial, I’ll answer a question that was sent to me. The question pertains to how can we add additional features to code the right way. When new features are needed it is a bad idea to add new code to older classes. This makes compact easy to understand classes complicated because...

Code Refactoring 15

In this part of my code refactoring tutorial, we’ll look at how to replace a primitive type with a class. Type safety is very important! So, what we want to do is to eliminate all operations on values that are not of the appropriate data type by protecting the program from bad input. One...

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...

Code Refactoring 12

In this code refactoring tutorial, I’ll show you how to eliminate large Accumulation Methods by Extracting Methods and Using a Collecting Parameter. It sounds complicated but it isn’t! This tutorial will show you another way to make your code more readable. It will also introduce you...

Code Refactoring 11

One of you guys sent me a request to explain the chapter in Refactoring to Patterns titled Encapsulate Composite with Builder. We will build a table structure (composite) using the Builder design pattern. I’ll expand the capabilities of the code from this great book to allow us to more...

Code Refactoring 10

In this part of the code refactoring tutorial I’m going to revisit the Builder Design Pattern for a couple of reasons. First, I receive a bunch of questions about it. Secondly, in the next tutorial I’ll show you how to build composites, which were covered in the last part of the code...

« Older Entries

Google+