Download presentation
Presentation is loading. Please wait.
Published byAnnabel Cain Modified over 8 years ago
1
WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010. They may not show up well on other PowerPoint versions. You can download PowerPoint 2010 viewer from here.here These slides contain a lot of animations. For optimal results, watch in slideshow mode.
2
Broken windows Broken Windows story
6
Lesson: Me sy things get m r
7
Make it work, right, fast Make it fast Make it right Make it work Lesson: Me sy things get m r
8
Make it work, right, fast Make it fast Make it right Make it work Lesson: Me sy things get m r code
9
Refactoring : from Turkey to Peacock in thousand steps CS2103/T, Lecture 2, Part 2, [Aug 23, 2013]
10
Refactoring Bug fixing == Refactoring?
11
Refactoring Rewriting
12
Catalog memorize
13
Example: Introduce Explaining Variable if ( (platform.toUpperCase().indexOf("MAC") > -1) && (browser.toUpperCase().indexOf("IE") > -1) && wasInitialized() && resize > 0 ) {…} final boolean isMacOs = platform.toUpperCase().indexOf("MAC") > -1; final boolean isIEBrowser = browser.toUpperCase().indexOf("IE") > -1; final boolean wasResized = resize > 0; if (isMacOs && isIEBrowser && wasInitialized() && wasResized) {…}
14
IDE support
15
Regression test
16
It’s not rocket surgery!
17
Regression test
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.