Refactoring Code With Move Method - Live Code Example 004-005

preview_player
Показать описание
Refactoring Code With Move Method with live code example. Adam Culp of Beachcasts php programming videos makes clean code by using the refactor Move Method and shows an example of renaming a method with PhpStorm IDE to make the task easier. Then after analysis, we move a method to another class, also using IDE refactor functionality.

This video covers step 004 to 005 in the Refactoring101 repo on Github linked below. I will not create videos for steps 006-007, and will instead pick up at step 008.

Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others!

Key Topics:
- What are the purposes of classes and methods
- When refactoring methods may be needed
- How to rename a method
- How to conduct the refactor Move Method

Errata:
Let me know if you notice anything that should be errata

Associated Links:

Timeline:
00:00 Video Intro
00:50 Basic of classes and methods
02:11 Why move method to another class
03:05 Introducing Cloudways as the video sponsor
03:30 Introduction to the example code
04:41 Code example of rename method refactor
06:26 Code example of move method refactor
08:49 Review and wrapup

Other Beachcasts videos you might find interesting:

Help through referrals:

#php #refactoring #beachcasts
Рекомендации по теме