Code Refactoring 9

In this part of my code refactoring tutorial I will cover how to turn an implied tree structure into a composite pattern. What do you do when you want to model a tree structure? You can either list the info as primitives and then search through them for what you want or you can create objects...

Code Refactoring 8

In this part of my code refactoring tutorial, I’ll show you how to eliminate duplicate code using the template method pattern. If you want to see another example of the template method pattern, I cover it here as well Template Method Design Pattern. When objects perform similar steps in...

Code Refactoring 7

In this tutorial we’ll work with the strategy design pattern in java. If you want to learn more, check out my strategy design pattern tutorial after this. We’ll explore how the strategy pattern can be used to eliminate conditionals during code refactoring. We’ll also see how it...

Code Refactoring 6

In this part of the Code Refactoring tutorial I’ll focus on conditionals. Conditional statements can very often make your code very hard to read. Here we’ll clean up conditional statements by extracting them into methods. We’ll look at how important naming can be to writing...

Code Refactoring 5

In this part of the code refactoring tutorial, I will show you how to replace a constructor with a factory method in 2 code examples. I also received a challenge from one of you guys that I will solve. The challenge involves how to create a singleton factory method. It sounds more complicated...

Code Refactoring 4

I wanted to cover in this video a bunch of questions I’ve received lately. Everything after this code refactoring tutorial will be more complex. In this video, we’ll cover converting simple types into class objects. We’ll also look at how to move fields and methods into other...

Code Refactoring 3

In this part of the code refactoring tutorial, I show you examples of how you can make your code more understandable using something called an Explaining Variable. We also explore many short cuts people take when writing code that will cause many problems later. I want to get these basic rules...

Code Refactoring 2

In this part of my code refactoring tutorial I talk about some basic concepts you have to understand. I’ll cover the process of method extraction. This will help you break down many lines of code into understandable blocks. I’ll also cover when not to extract methods and how to...

Code Refactoring

Welcome to the beginning of my Code Refactoring tutorial. Code refactoring is used to improve code design to make it easier to understand and extend. Writing understandable code will allow others to easily modify it and in the end you’ll also find you write code faster because of code...

Object Oriented Design Tutorial

Here is my whole Object Oriented Design Tutorial! The goal of this tutorial is to teach you to make beautiful Object Oriented Designs. I start by creating a Use Case, Object Model, Sequence Diagram and Class Diagram all in the first video. I then turn those diagrams into code and a working...

« Older Entries Next Entries »

Google+