Free Preview: Techniques for Refactoring Code

Getting The Legacy Source Code And Preparing The Project

04:08

Getting The Legacy Source Code And Preparing The Project

Let’s download the example code Github, create a new NetBeans project, make sure PHPUnit is working.

1.Introduction
1 lesson, 02:23

Free Preview
1.1
Introduction to Refactoring and Clean Code
02:23

2.Code Refactoring Techniques
13 lessons, 3:26:07

Free Preview
2.1
Getting The Legacy Source Code And Preparing The Project
04:08

2.2
Understanding The Legacy Source Code
21:12

2.3
The Golden Master
15:27

2.4
Basic Code Formatting
10:54

2.5
Replace Magic Numbers And Strings With Explaining Variables
18:22

2.6
Rename
19:51

2.7
Eliminate Interface Pollution
08:24

2.8
Simplify Conditional Expressions
10:35

2.9
Keep Methods Short
12:14

2.10
Reduce Level Of Indentations Where Possible
06:44

2.11
Remove Duplication
30:10

2.12
Extract When A Method Does More Than One Thing
18:07

2.13
Extract Class To Avoid Crossing Multiple Layers
29:59

3.Conclusion
1 lesson, 01:05

3.1
Final Thoughts
01:05


About Patkos Csaba
I had my first contact with computers in the mid-80s when I visited my father at work. Probably it was an important moment for what I am doing now. I am a proud member of an agile team working for a company called Syneto. Through my carrier I programmed in several programming languages and I had the chance to learn and use daily all the major Agile techniques from Scrum to Lean and from TDD to DDD. Since August 2012 I am sharing my knowledge with the Nettuts+ readers by articles, tutorials and premium courses, all about programming.
+ Expand Bio- Collapse Bio