Refactoring: The Call of the Wild

download Refactoring: The Call of the Wild

If you can't read please download the document

Transcript of Refactoring: The Call of the Wild

ThemeGallery PowerTemplate

www.themegallery.comRefactoring: The Call of the Wild

Who am I?Lyubomir Filipov

PHP Dev

Enthusiast

John Thompson, hatter, makes and sells hats for ready money.

Short story

John Thompson, makes nd sells hats for ready money.

Short story

John Thompson, sells hats for ready money.

Short story

John Thompson, sells hats.

Short story

John ThompsonShort story

, - , .

public string w44(...)Refactoring

Design Debt

Primitive obsessionDuplicated codeLong methodLarge classConditional complexity

Code smells

Conditional complexity

Primitive obsessionDuplicated codeLong methodLarge classConditional complexity

Code smells

Primitive obsession

Primitive obsession

Unify Interfaces

Unify Interfaces

Unify Interfaces

Extract Interface

Unify Interfaces with Adapter

Unify Interfaces with Adapter

Replace Type Code with Class

www.themegallery.com Refactoring: The Call of the Wild

Joshua Kerievsky, "Refactoring to Patterns", Addison-Wesley Professional, 2004Martin Fowler, "Patterns of Enterprise Application Architecture", Addison-Wesley Professional, 2002Martin Fowler, Kent Beck, "Refactoring: Improving the Design of Existing Code", Addison-Wesley Professional, 1999http://vilhat.typepad.com/photos/jaxon_hats/jaxon19thcenturytophat.jpghttp://www.mbusa.com/vcm/MB/DigitalAssets/Vehicles/Models/2014/C250W/Headers/2014-C-CLASS-C250-300-SEDAN-BASE-MH1-T.png

https://www.oxfordplayhouse.com/images/eventimages/call-of-the-wild_s.jpghttp://survivallife.com/wp-content/uploads/2014/11/swiss-army-knife.jpg

http://the-gadgeteer.com/wp-content/uploads/2010/12/thinkgeek-8gb-flashdrive-lighter.png