Keep a Class From Knowing Too Much | Refactoring With PhpStorm by Matthew Setter #6

preview_player
Показать описание
In this video, you'll learn how to extract code to interfaces and how to create dedicated classes to keep classes from knowing too much. This video completes the series with three final key lessons:

1. Extract applicable variables, constants, and methods to a new class
2. Extract key methods to an interface
3. Refactor ParcelTrackerHandler to take a ParcelTrackingService object

#PHP #PhpStorm #Refactoring #CleanCode

00:00 - Overview
00:51 - Code overview
01:06 - Extract class refactoring
03:39 - Introduce constructor dependency with Change Signature refactoring
04:35 - Extract interface refactoring
06:09 - Pull members up to a base class
07:38 - Quick recap
08:11 - Series Conclusion
Рекомендации по теме
Комментарии
Автор

I loved this videos! thanks for doing them. I learned a lot.

Skatox
Автор

It would be great if these names weren't very long compound words. i'm surprised you could do voiceover of this whole thing without going insane. but thumbs up, great idea for a video.

zweisser