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
  • 159 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
Tactic: Isolate-Improve-Inline 63
Refactoring Tactic: Rejected Parameter 64
Rejected Parameter Video 65
Introducing Smellections 67
Refactoring Smellections: Part 1 68
A Smell In Collection 69
Two Smells In AbstractList and AbstractSet 70
Removing A Long Method Smell From List 71
Assessing The Exercise 72
Installing Our Plugin 73
Download the Exercise 74
Refactoring Instructions 75
Upload Your Exercise 76
A Graph of Your Refactoring & Testing Activity 77
Your Critique Results 78
Your Customized Feedback 79
Smellections Exercise Part 1 Solution 80
Removing Collection 81
Removing AbstractList & AbstractSet 82
Refactoring to a Composed Method ← Click to Preview 83
Caller Creates 85
Caller Swap 86
Caller Swap Video 87
Encapsulated Dependency 88
Encapsulated Dependency Video 89
Refactoring Smellections: Part 2 91
A Refused Bequest Smell in Smellections 92
Assessing The Exercise 93
Installing Our Plugin 94
Download the Exercise 95
Your Mission 96
Upload Your Exercise 97
A Graph of Your Refactoring & Testing Activity 98
Your Critique Results 99
Your Customized Feedback 100
Smellections Exercise Part 2 Solution 101
Removing Map from the Hierarchy 102
Refactoring Smellections: Part 3 104
Smells in AbstractCollection 105
Don't Fix Bugs 106
Assessing The Exercise 107
Installing Our Plugin 108
Refactoring Instructions 109
Download the Exercise 110
Your Mission 111
Upload Your Exercise 112
A Graph of Your Refactoring & Testing Activity 113
Your Critique Results 114
Your Customized Feedback 115
Smellections Exercise Part 3 Solution 116
Pulling Up Duplicated List and Set Fields 117
Cleaning Up AbstractCollection AddAll 118
Pulling Up Duplication From List and Set 119
Removing AddAll from Set 120
Pulling Up Add 121
Refactoring Rash 123
Refactoring Strategy: Graceful Retreat 124
Refactoring Strategy: Gradual Cutover 125
Refactoring Strategy: Nesting 126
Refactoring Smellections: Part 4 128
Primitive Obsession In Map 129
A Temporary Field In Map 130
Managing A Change With Scaffolding 131
Assessing The Exercise 132
Installing Our Plugin 133
Refactoring Instructions 134
Download the Exercise 135
Your Mission 136
Upload Your Exercise 137
A Graph of Your Refactoring & Testing Activity 138
Your Critique Results 139
Your Customized Feedback 140
Smellections Exercise Part 4 Solution 141
Narrowed Change 143
Narrowed Change Video 144
Parallel Change 145
Parallel Change Video ← Click to Preview 146
Unified Methods 147
Unified Methods Video 148
Evolved Target 149
Evolved Target Video 150
Experiencing Legacy Code ← Click to Preview 152
Poorly Written Driving Directions 153
Driving Directions Deconstructed 154
Simple, Clear & Concise Directions 155
What Directions Will You Take? 156
Urban Blight & Renewal 157
Conclusion: What's Next? 159

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.