@brennen also bonus points for calling parseFloat on *floating point literals* this is not good code :D

@brion @brennen and people wonder why I despise writing mission-critical server-side code in JavaScript

@brion is sufficiently okay with this to have a syntactic shortcut for it, where omitting the expression for a switch uses true implicitly. Though it also uses explicit fallthrough and implicit break rather than the other way around.

@brion this is the most beautifully horrifying thing I've seen

@brion Go does that if you don't specify what you're switching on

@ben @brion I see. Well, it does look sorta pretty in the example, but it's also very much not the average person's expectation when seeing the switch keyword.

@brion for this, unfortunately, we break out the anime reaction images folder

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!