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
switch
statement. Personally, I don't findswitch
statements very readable. Especially with conditions in thecase
.Cool!
I prefer "switch" because i like to write
return true
only one time. 😁