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
  • 161 pages
  • Refactoring Strategies & Tactics
  • 7 Interactive quizzes
  • 23 Videos
  • 5 exercises
  • Support for Visual Studio
  • Extensive Video using ReSharper 4.5

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
Using ReSharper With the Exercises 52
Download the Exercise 53
Exercise Instructions 54
Upload Your Exercise 55
A Graph of Your Refactoring & Testing Activity 56
Your Critique Results 57
Your Customized Feedback 58
Automated Refactoring Solution 59
Refactoring Strategies & Tactics 61
Refactoring Strategy: Piecemeal Refactoring 62
Divide & Conquer Video 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 Lab 72
Installing the Recorder 73
Download the Lab 74
Refactoring Instructions 75
Upload Your Lab 76
A Graph of Your Refactoring & Testing Activity 77
Your Critique Results 78
Your Customized Lab Feedback 79
Smellections Lab 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 Lab 93
Installing the Recorder 94
Download the Lab 95
Your Mission 96
Upload Your Lab 97
A Graph of Your Refactoring & Testing Activity 98
Your Critique Results 99
Your Customized Lab Feedback 100
Smellections Lab 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 Lab 107
Installing the Recorder 108
Refactoring Instructions 109
Download the Lab 110
Your Mission 111
Upload Your Lab 112
A Graph of Your Refactoring & Testing Activity 113
Your Critique Results 114
Your Customized Lab Feedback 115
Smellections Lab 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
Replacing Get & Set With An Indexer 122
Refactoring Rash 124
Refactoring Strategy: Graceful Retreat 125
Graceful Retreat Video 126
Refactoring Strategy: Gradual Cutover 127
Refactoring Strategy: Preparing for Change 128
Refactoring Smellections: Part 4 130
Primitive Obsession In Map 131
A Temporary Field In Map 132
Managing A Change With Scaffolding 133
Assessing The Lab 134
Installing the Recorder 135
Refactoring Instructions 136
Download the Lab 137
Your Mission 138
Upload Your Lab 139
A Graph of Your Refactoring & Testing Activity 140
Your Critique Results 141
Your Customized Lab Feedback 142
Smellections Lab Part 4 Solution 143
Narrowed Change 145
Narrowed Change Video 146
Parallel Change 147
Parallel Change Video ← Click to Preview 148
Unified Methods 149
Unified Methods Video 150
Evolved Target 151
Evolved Target Video 152
Experiencing Legacy Code ← Click to Preview 154
Poorly Written Driving Directions 155
Driving Directions Deconstructed 156
Simple, Clear & Concise Directions 157
What Directions Will You Take? 158
Urban Blight & Renewal 159
Conclusion: What's Next? 161

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.