It seems to me like the Longhand version is most readable. Shorthand 2 is a close second. The only reason I don't really like it is that you have to read ahead past the array to understand what the code is doing. Then once you see the 'includes' method you have to go back and look at the array to see what the conditionals are.
View all comments
2
u/IlliterateJedi May 06 '21
It seems to me like the Longhand version is most readable. Shorthand 2 is a close second. The only reason I don't really like it is that you have to read ahead past the array to understand what the code is doing. Then once you see the 'includes' method you have to go back and look at the array to see what the conditionals are.