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

Published: 27 August 2021
on channel: 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


Watch video Reduce Semantic Load by Streamlining Conditionals | Refactoring With PhpStorm by Matthew Setter #3 online without registration, duration hours minute second in high quality. This video was added by user JetBrains 27 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 862 once and liked it 24 people.