最新消息:请大家多多支持

Refactoring into Chain of Responsibility & Clean Code

其他教程 dsgsd 113浏览 0评论

Last Updated 04/2020
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 15 lectures (1h 58m) | Size: 1.13 GB

Replace nested & messed-up if-else statements with Chain of Responsibility using Refactoring Pyramid & Clean Code rules

What you’ll learn
Refactoring
Clean Code
Design Patterns
SOLID Principles
Working with Legacy Code

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.

Although Refactoring to Chain of Responsibility is not mentioned in the core refactoring books (“Refactoring” & “Refactoring to Patterns”) the techniques described in these books allow to create a plan for such a refactoring journey.

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 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

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.

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


Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Refactoring into Chain of Responsibility & Clean Code

您必须 登录 才能发表评论!