Refactoring
Upcoming SlideShare
Loading in...5
×
 

Refactoring

on

  • 3,510 views

Chirag and Aman\'s Refactoring workshop at Agile Mumbai 2008 conference

Chirag and Aman\'s Refactoring workshop at Agile Mumbai 2008 conference

Statistics

Views

Total Views
3,510
Views on SlideShare
3,508
Embed Views
2

Actions

Likes
8
Downloads
146
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Refactoring Refactoring Presentation Transcript

  • Refactoring Aman & Chirag ThoughtWorks Pune
  • If it ain’t broken, why fix it?
  • Good programmers write code that humans can understand
  • You write code once; it gets read many times
  • To regain control on a program that is getting out of hands
  • To make the next change easier
  • This brings us to Refactoring
  • Refactoring in Action
  • Code Smells
  • Duplicated Code
  • Long Method
  • Comments
  • Divergent Change
  • Shotgun Surgery
  • Feature Envy
  • Lazy Class
  • Switch Statements
  • Primitive Obsession
  • Method Chains
  • Refactoring Catalog
  • Refactoring Catalog Composing methods
  •  
  •  
  •  
  •  
  •  
  •  
  • Refactoring Catalog Simplifying Conditional Expressions
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  • Refactoring Catalog
    • Making Method Calls Simpler
  •  
  •  
  •  
  •  
  • Accompanying XP Practices
    • TDD : “Red - Green - Refactor” mantra
    • Continuous Integration
    • Collective Code Ownership
    • Pair Programming
  • Next steps for you
    • Go read the book!!!
    • Practice small refactorings
      • Explore the “Refactor” menu of your IDE
    • Keep a look out for code smells in your project
  • To sum it up…
    • Refactoring is a good technique to clean up code
    • Refactoring leads to better design (especially with Test-Code-Refactor cycles)
    • Most important of all: it leaves a nice feeling at the end of it all!
  • Thank You
    • Aman King
      • [email_address]
    • Chirag Doshi
      • [email_address]