@aescling @vaporeon_ I was hoping I could say "right now" but unfortunately it is currently functional
@vaporeon_ but javascript is good and fun
@vaporeon_ I would
@aescling @vaporeon_ clearly propaganda
@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
@monorail can't have shit in detroit
@aescling @vaporeon_ I'm sure our elastic search can't break any more often than it already does
@vaporeon_ @aescling ah I see
@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
@vaporeon_ @aescling strings are primitives in JS 🔍
@vaporeon_ @aescling this is JavaScript
@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;
}
@vaporeon_ @aescling oh I have a skill issue it seems
@vaporeon_ I'll never forget the video when an infamous kickstarter game's source code released and some guy made a 20 minute video critiquing the 4000-line file that managed the entire game state
The YouTubers main criticism was that the file didn't use switch statements
Talk about missing the forest for the trees
the clodvestigator
i answer to Caleb, Clodsire, Clodboy, Clod, and Bumby. very leftist.
videogame enjoyer. mathematics hobbyist and recovering physicist. recovering software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
30+
he/him
sgraMrt