Justified Code/Refactoring Code Smells Hands-On

  • $49

Refactoring Code Smells Hands-On

  • Course
  • 34 Lessons

Gary Kasparov said: it is the combination of patterns that matters. Similarly, when refactoring, it is the combination of techniques that matters. Watch me refactoring code that smells bad! Applying the different techniques to several use cases. This hands-on course will transform you into a clean coder!

Contents

Module 1 - Introduction

The Goals of The Session

Module 2 - Customer Billing

Code Diagram
Code with Bad Smells
Self-testing Code
Extract Method Technique
Pullup Method (Martin Fowler)

Module 3 - Print Report

Code Diagram
Preview
Code with Bad Smells
Preview
Self-testing Code
Preview
Method Object (Kent Beck)
Preview
Extract Method Technique
Preview
Template Method (Gang of Four)
Preview

Module 4 - Rate Calculator

Code with Bad Smells
Self-testing Code
Decompose Conditional Technique

Module 5 - Price Calculator

Code with Bad Smells
Self-testing Code
Replace Temp with Query Technique (Martin Fowler)
Refactoring and Performance

Module 6 - Salary Payment

Code with Bad Smells
Replace Type Code with Subclasses Technique
Replace Conditional with Polymorphism

Module 7 - Loan Calculator

Code with Bad Smells
Self-testing Code
Replace Method with Method Object
Extract Method
Decompose Conditional
The Outcome So Far
Replace Type Code with Subclasses
Replace Conditional with Polymorphism

Module 8 - Final Thoughts

Thoughts

Bonus

code_smells_before_code.zip
code_smells_after_code.zip
Code Smells Hands-On.pdf