By Joshua Kerievsky

Did you ever want to turn a messy, complex software design into simple, safe code? Refactoring provides the tools and techniques for safely improving your software designs. Immerse yourself in Refactoring exercises featuring our "look-over-your-shoulder" technology that gives you expert feedback. Build strong Refactoring skills by learning how to use powerful tools and proven techniques.



Get this Album

Volume Licensing

Have Any Questions?

Highlights

Instant Critiques: Take a refactoring exercise and get instant feedback from our automated band of experts. Learn more...
Expert Videos: Learn tools & techniques by watching short videos from industry experts. Learn more...

Integrated Forums: Ask questions, get expert replies and read fascinating discussions. Learn more...

Includes

  • 4-6 hours of content
  • 158 pages
  • Refactoring Strategies & Tactics
  • 7 Interactive quizzes
  • 23 Videos
  • 5 exercises
  • Support for Eclipse
  • Support for IntelliJ

Contents

You Are Here 3
Learning to Refactor 4
Baby Steps 12
The Hippocratic Oath 13
Refactoring Safely 14
The Rhythm of Refactoring 15
How Would You Refactor This? 16
Two Refactoring Styles 17
Round One 18
Small Steps Quiz 19
Round Two 20
Refactoring Rhythm Quiz 21
When We Say Baby, We Mean Baby 22
Ready For A Challenge? 24
Refactoring a Method ← Click to Preview 25
Consolidate Conditional Expression 26
Extract Hierarchy 27
Extract Superclass 28
Hide Method 29
Inline Method 30
Finding Refactorings in Code 31
Code Qualities & More Refactorings 32
Finding More Refactorings in Code 33
Why Record? 35
The Steps You'll Take 36
Step 1. Install the Recorder 37
Step 2. Download the Exercise 38
Step 3. Import the Exercise 39
Step 4. Perform the Exercise 40
Step 5. Upload the Archive 41
Step 6. Critique Your Performance 42
Remaining Issues 43
Carry On! 44
Automated Refactorings 46
Automated Refactoring Demonstration 47
Perfect Tools? 48
An Exercise To Give You Experience 49
Critiquing Your Performance 50
Installing the Recorder 51
Download the Exercise 52
Exercise Instructions 53
Upload Your Exercise 54
A Graph of Your Refactoring & Testing Activity 55
Your Critique Results 56
Your Customized Feedback 57
Automated Refactoring Solution 58
Refactoring Strategies & Tactics 60
Refactoring Strategy: Piecemeal Refactoring 61
Divide & Conquer Video 62
Refactoring Tactic: Rejected Parameter 63
Rejected Parameter Video 64
Introducing Smellections 66
Refactoring Smellections: Part 1 67
A Smell In Collection 68
Two Smells In AbstractList and AbstractSet 69
Removing A Long Method Smell From List 70
Assessing The Lab 71
Installing Our Plugin 72
Download the Lab 73
Refactoring Instructions 74
Upload Your Lab 75
A Graph of Your Refactoring & Testing Activity 76
Your Critique Results 77
Your Customized Lab Feedback 78
Smellections Lab Part 1 Solution 79
Removing Collection 80
Removing AbstractList & AbstractSet 81
Refactoring to a Composed Method ← Click to Preview 82
Caller Creates 84
Caller Swap 85
Caller Swap Video 86
Encapsulated Dependency 87
Encapsulated Dependency Video 88
Refactoring Smellections: Part 2 90
A Refused Bequest Smell in Smellections 91
Assessing The Lab 92
Installing Our Plugin 93
Download the Lab 94
Your Mission 95
Upload Your Lab 96
A Graph of Your Refactoring & Testing Activity 97
Your Critique Results 98
Your Customized Lab Feedback 99
Smellections Lab Part 2 Solution 100
Removing Map from the Hierarchy 101
Refactoring Smellections: Part 3 103
Smells in AbstractCollection 104
Don't Fix Bugs 105
Assessing The Lab 106
Installing Our Plugin 107
Refactoring Instructions 108
Download the Lab 109
Your Mission 110
Upload Your Lab 111
A Graph of Your Refactoring & Testing Activity 112
Your Critique Results 113
Your Customized Lab Feedback 114
Smellections Lab Part 3 Solution 115
Pulling Up Duplicated List and Set Fields 116
Cleaning Up AbstractCollection AddAll 117
Pulling Up Duplication From List and Set 118
Removing AddAll from Set 119
Pulling Up Add 120
Refactoring Rash 122
Refactoring Strategy: Graceful Retreat 123
Refactoring Strategy: Gradual Cutover 124
Refactoring Strategy: Nesting 125
Refactoring Smellections: Part 4 127
Primitive Obsession In Map 128
A Temporary Field In Map 129
Managing A Change With Scaffolding 130
Assessing The Lab 131
Installing Our Plugin 132
Refactoring Instructions 133
Download the Lab 134
Your Mission 135
Upload Your Lab 136
A Graph of Your Refactoring & Testing Activity 137
Your Critique Results 138
Your Customized Lab Feedback 139
Smellections Lab Part 4 Solution 140
Narrowed Change 142
Narrowed Change Video 143
Parallel Change 144
Parallel Change Video ← Click to Preview 145
Unified Methods 146
Unified Methods Video 147
Evolved Target 148
Evolved Target Video 149
Experiencing Legacy Code ← Click to Preview 151
Poorly Written Driving Directions 152
Driving Directions Deconstructed 153
Simple, Clear & Concise Directions 154
What Directions Will You Take? 155
Urban Blight & Renewal 156
Conclusion: What's Next? 158

Related Items

Supported Browsers

  • Latest Firefox
  • Internet Explorer 8+
  • Latest Chrome
  • Latest Safari

Operating Systems

  • Windows
  • Linux
  • Mac OS X

Development Tools

You can use whatever developments tools you prefer. If you do use an IDE (Integrated Development Environment), many (though not all) of our labs come with projects pre-configured for Eclipse, IntelliJ and Visual Studio.

Speakers or headphones are required for our videos.

Flash is required to view charts or watch videos — download for free.