Pyramid of Refactoring (Java) - Clean Code into Chain
4.9 (19 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
83 students enrolled

Pyramid of Refactoring (Java) - Clean Code into Chain

Replace nested & messed-up if-else statements with Chain of Responsibility using Refactoring Pyramid & Clean Code rules.
Highest Rated
4.9 (19 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
83 students enrolled
Created by Włodek Krakowski
Last updated 4/2020
English
English
Current price: $16.99 Original price: $24.99 Discount: 32% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 2 hours on-demand video
  • 1 downloadable resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Refactoring
  • Clean Code
  • Design Patterns
  • SOLID Principles
  • Working with Legacy Code
Course content
Expand all 15 lectures 01:58:55
+ First refactoring activities
4 lectures 36:09
Business domain explained
05:41
Java sources explained
10:41
First methods made cohesive
10:15
+ FInalize building blocks of the core logic
3 lectures 34:24
Third method extracted and made cohesive
11:22
Fourth of the core methods extracted
13:20
Fourth method made generic and reusable
09:42
Requirements
  • Java 1.8+
  • IntelliJ Community Edition
  • JUnit
  • Maven
Description

This is the second module of series called "Pyramid of Refactoring" dedicated to achieving Clean Code.

The goal of the course is to disentangle the codebase from a set of deeply nested conditional if/else statements. It is a very common case - and if it is left for a long time - then it leads to a very complex legacy code after subsequent code extensions.

We use refactoring techniques and perform all the changes live. The partititants download the source code and performs all the changes together with the trainer - step by step. In this sample we make use of Chain of Responsibility Design Pattern as goal of our refactoring journey.

The course ends up with Homework, where the participants can experience the difference between implementing additional requirements within Clean Code and within Legacy Code. This is the difference between skipping and applying Preparatory Refactoring.

The journey into Chain of Responsibility allows the attendees to practice code transformations like :

- Merge If Statements
- Merge Nested-If Statements
- Extract Methods
- Replace Temp with Query
- Move Methods
- Inline Methods
- Extract Class / Extract Delegate
- Extract Interface
- Rename Methods & Variables

Who this course is for:
  • Software Developer
  • Software Architect
  • IT Team Leader