the second example advocates using the shorthand if statement repeatedly to
reduce the verbosity of the primary example.
I find the shorthand example terse, cryptic and hence difficult to read, but
I don't know if this is just a personal preference and if I'm missing
something that makes it better.
If I were writing this code I would probably introduce another variable and
write it half and half like this: