See the Ultimate FizzBuzzSplat code example on the website? 16loc (9 statements) which is pretty good, but here's one in 9 that looks *waaay* cooler (but with no syntax highlighting). All the logic is in a single statement. Makes use of the pipeline and anonymous piped methods mostly - also the "times concat" '*~' operator.

This is the shit I really love in programming.

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!