Course of Refactoring Code Smells to Clean Code: Bloaters

Rafa GómezJavier Ferrer

By Rafa Gómez y Javier Ferrer Software Design and Architecture y Methodologies and good practices

Learn to detect and deal with incomprehensible code 🤟

💸 First lesson available without registration 💸

What you will learn in this Refactoring and Clean Code course

Is code quality something measurable? How can we decide if code is better than another? 🤔

In this course, you will learn to objectively identify the aspects that make your code difficult to maintain, and most importantly, what processes to apply to improve it.

Much has been written about the techniques to move from incomprehensible code to clean code. This is what we will see in terms of refactoring techniques to transition from Code Smells to Clean Code 😊

In this course, we are going to see how to put it into practice step by step with examples in multiple programming languages 🤟

Achieve quality programs by applying good practices of refactoring and clean code 💪

Course Content

  1. 🚀 Clean Code and Refactorings: What will you learn in the course?
    • ⚡️ How technical debt is generated: Moving from Code Smells to Clean Code through Refactorings
    • 🤔 Death by technical debt: When to refactor (Evernote case)
  2. 🐍 Long Method Code Smell
    • 🕵️ Long method: Detection, problems, and ideal state
    • 🤹 Refactor Extract Method using the IDE and related problems
    • 💿 Pretending to be purists: Contains traces of functional programming
  3. 📜 Large Class Code Smell
    • 🕵️ Large Class: Detection, problems, and ideal state
    • ✋ What Refactoring NOT to do: With great power comes great responsibility (unique)
    • 🤝 Extract Class Refactoring: Encapsulating responsibilities
  4. 🐒 Primitive Obsession Code Smell
    • 🕵️ When to use classes to represent data and when not
    • 🧲 Replace Data Value with Object: Value Objects as magnets for logic in your models
    • 🚸 Replace Type Code with State/Strategy Refactoring: Respecting SOLID in your domain models
  5. 📐 Long Parameter List Code Smell
    • 🌈 Improving The Real World™️: Introduce Parameter Object. Refactoring for entities with more than 20 attributes
    • ⚙️ How to manage application parameters: Replace Parameter with Method Call Refactoring
    • 🤯 Preserve Whole Object Refactoring: Respecting ubiquitous language
  6. 🥖 Data Clumps Code Smell
    • 🌍 Communication between layers: Introduce Parameter Object Refactoring for Request object
    • 🎛️ How to manage infrastructure configuration
  7. 🔗 Complex Conditionals Code Smell
    • 🔥 Simplifying indentation levels: Replace Nested Conditional with Guard Clauses Refactoring
    • ⛓️ Simplifying indentation levels: Replace Control Flag with Break Refactoring
    • 👨‍👧‍👧 Moving integrity rules with domain semantics to conditionals: Decompose Conditional & Consolidate Conditional Expression Refactoring
    • 👻 Representing optional information: Introduce Null Object vs Maybe Monad
  8. 🌍 Practical examples for The Real World™️: Putting the pieces together!
    • 👤 Refactoring The User Class™️: From 💩 to ☀️
    • ✨ What happens when there are no classes: JavaScript, I'm looking at you
    • 👀 Analyzing your examples
  9. 🔜 Conclusions and next steps
    • ⚡️ Conclusions and next steps

Free Content

In the "Preview" section above, you can access the course index and watch the first 2 videos completely free and without registration.

We have worked hard to prepare this course, so you can verify for yourself the quality of the videos and topics we will cover 😊

Videos of the course

Related courses

See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Access to a subset of courses to lay the foundation for maintainable, scalable, and testable code
  • Company invoice
Popular

standard

24,92 €
Save 121
Annual payment of 299
per month
  • Full course catalog
  • Design and architecture challenges
  • Highlighted solutions videos for challenges
  • Receive job offers verified by Codely
  • Company invoice

premium

41,58 €
Save 89
Annual payment of 499
per month
  • Everything above
  • More benefits coming soon

We won’t increase the price while your subscription is active