SlideShare a Scribd company logo
Clean CodeRefactoring1
RefactoringAny fool can write code that a computer can understand.  Good programmers write code that humans can understand.2
RefactoringWhat is Refactoring?Martin Fowler : "a change made to the internal structure of software to make it easier to understand and cheaper to modify without changing its observable behavior“.William C. Wake : "Refactoring is the art of safely improving the design of existing code“.3
RefactoringThe process of refactoring involves the removal of duplication, the simplification of complex logic, and the clarification of unclear code.The goal of refactoring is NOT to add new functionalityThe goal is refactoring is to make code easier to maintain in the future4
RefactoringWhen Should You Refactor?Refactor When You Add Function
Refactor When You Need to Fix a Bug
Refactor As You Do a Code Review5
RefactoringThe Refactoring CycleChoose the worst smellSelect a refactoring that will address the smellApply the refactoring6
RefactoringBad Smells in Code Duplicated Code
 Long Method
 Large Class
 Long Parameter List
 Divergent Change
 Shotgun Surgery
 Feature Envy
 Data Clumps

More Related Content

PPTX
Dublin ALT.NET session Thu Oct 24 2013
PDF
Introduction to PythonTeX
PDF
The Ring programming language version 1.10 book - Part 14 of 212
PDF
Ds stack 03
PPTX
F# Eye for the C# guy - Øredev 2013
PPT
PHP 5.3 Part 1 - Introduction to PHP 5.3
PDF
The Ring programming language version 1.3 book - Part 6 of 88
PDF
for this particular program how do i create the input innotepad 1st ? #includ...
Dublin ALT.NET session Thu Oct 24 2013
Introduction to PythonTeX
The Ring programming language version 1.10 book - Part 14 of 212
Ds stack 03
F# Eye for the C# guy - Øredev 2013
PHP 5.3 Part 1 - Introduction to PHP 5.3
The Ring programming language version 1.3 book - Part 6 of 88
for this particular program how do i create the input innotepad 1st ? #includ...

What's hot (7)

PPT
Language Integrated Query By Nyros Developer
PDF
Kotlin scope functions
PDF
201707 SER332 Lecture 16
PDF
The Ring programming language version 1.7 book - Part 30 of 196
PDF
The Ring programming language version 1.10 book - Part 35 of 212
PPTX
Nested loops
PPTX
Working of while loop
Language Integrated Query By Nyros Developer
Kotlin scope functions
201707 SER332 Lecture 16
The Ring programming language version 1.7 book - Part 30 of 196
The Ring programming language version 1.10 book - Part 35 of 212
Nested loops
Working of while loop
Ad

Similar to Refactoring (20)

PPTX
Refactoring
PPT
Refactoring Tips by Martin Fowler
ODP
Refactoring: Improving the design of existing code
PPTX
Tech talks#6: Code Refactoring
PPTX
31 days Refactoring
PPT
Refactoring - improving the smell of your code
PPTX
Code smells
PPTX
refactoring code by clean code rules
PPT
Code Refactoring
PDF
Refactoring
PPTX
Refactoring
PDF
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
PPT
Bad Smell in Codes - Part 1
PDF
Martin Fowler's Refactoring Techniques Quick Reference
PDF
Refactoring e Code Smells: Seu código está apodrecendo!
PDF
Refactoring & Restructuring - Improving the Code and Structure of Software
PPTX
SAD10 - Refactoring
PDF
Bad Smell In Codes 1
PPTX
Code Refactoring using rails
PPTX
Speeding up web_application
Refactoring
Refactoring Tips by Martin Fowler
Refactoring: Improving the design of existing code
Tech talks#6: Code Refactoring
31 days Refactoring
Refactoring - improving the smell of your code
Code smells
refactoring code by clean code rules
Code Refactoring
Refactoring
Refactoring
7-Refactoring (Object Oriented Software Engineering - BNU Spring 2017)
Bad Smell in Codes - Part 1
Martin Fowler's Refactoring Techniques Quick Reference
Refactoring e Code Smells: Seu código está apodrecendo!
Refactoring & Restructuring - Improving the Code and Structure of Software
SAD10 - Refactoring
Bad Smell In Codes 1
Code Refactoring using rails
Speeding up web_application
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
RMMM.pdf make it easy to upload and study
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Insiders guide to clinical Medicine.pdf
Classroom Observation Tools for Teachers
FourierSeries-QuestionsWithAnswers(Part-A).pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Supply Chain Operations Speaking Notes -ICLT Program
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
01-Introduction-to-Information-Management.pdf
PPH.pptx obstetrics and gynecology in nursing
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pharma ospi slides which help in ospi learning
Final Presentation General Medicine 03-08-2024.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Complications of Minimal Access Surgery at WLH
RMMM.pdf make it easy to upload and study
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
2.FourierTransform-ShortQuestionswithAnswers.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Insiders guide to clinical Medicine.pdf

Refactoring