Reduce Semantic Load by Streamlining Conditionals | Refactoring With PhpStorm by Matthew Setter #3

Опубликовано: 27 Август 2021
на канале: JetBrains
862
24

In this video you'll learn how to use the Introduce Method refactoring and the Introduce Constant refactoring.

Download PhpStorm: https://jetbrains.com/phpstorm/download
Twitter:   / phpstorm  
Facebook:   / jetbrains  

Matthew Setter: https://matthewsetter.com/

#PHP #PhpStorm #Refactoring #CleanCode

00:00 - Overview
00:43 - Problematic code
01:48 - Refactor 1: extract method
03:12 - Improve the validation of `isValidParcelld`
03:50 - Refactor 2: introduce constant
04:54 - Refactor 3: extract the call to file_exists to a method
05:33 - Improve isValidParcelFilename
05:53 - Quick recap
06:55 - Coming up next