I build things with my hands. The human behind Shift - https://laravelshift.com, master of Git - https://gettinggit.com, and author of "BaseCode" - https://basecodefieldguide.com
The original code (from Part 1) was a switch statement. Personally, I don't find switch statements very readable. Especially with conditions in the case.
The original code (from Part 1) was a
switchstatement. Personally, I don't findswitchstatements very readable. Especially with conditions in thecase.Cool!
I prefer "switch" because i like to write
return trueonly one time. 😁