Show newer

@aescling @vaporeon_ I was hoping I could say "right now" but unfortunately it is currently functional

@vaporeon_ @Lady @aescling JavaScript will auto insert semicolons if you don't add them

There are camps on whether or not you should manually add them

I think ignoring them makes more sense but it was a style convention at my old job to use them and the Deno autoformatter inserts semicolons so I just write them now out of habit

@Lady @vaporeon_ @aescling I only do that if I start declaring variables in the switchies

@aescling @vaporeon_ I'm sure our elastic search can't break any more often than it already does

@vaporeon_ @aescling I with vaporeon on this, I'm going to ask our admin to ban you

@vaporeon_ @aescling
It's "more performant" to use ++i*

*It really doesn't matter and even if this does give a teeny, marginal performance boost it's the kind of thing a modern compiler will catch for you anyway

@aescling @vaporeon_ I guess I understand the undergrads now because the i++ just made my eye twitch even though it literally doesn't matter

@aschmitz @aescling I like switch statements I just don't understand why undergrad cs students seem to think they're the pinnacle of software design

Everyone used else if at my old job and it was fine.

@vaporeon_ @aescling I would always do it like

switch(gorp) {
case 'norp':
console.log('norp');
break;
case 'sorp':
console.log('sorp');
break;
default:
console.log(' what the gorp???');
break;
}
Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.