@vaporeon_ I would simply snack on a punch card myself
@wallhackio Good
@vaporeon_ never mind I took some tylenol and my autism came back
re: wrong
@vaporeon_ @monorail in javascript functions can be reassigned
so lets say you work on a web site for your company that uses old-ass ES5 javascript because it was first made in 2009 and its for a government contractor who won't fund what is necessary for your team to change to a newer javascript workflow, so you're stuck with it
In one file, a coworker who no longer works at the company 10 years ago created a function called gorp
like so: function gorp() { /* whatever gorp does */}
Now, today you are working on a file that has a function called girp
and you reassign it something else. However, you make a typo and write gorp
instead. This does not throw at runtime because gorp
is global, and now you have bugs that are extremely difficult to decipher because you didn't notice a typo
wrong
@vaporeon_ @monorail huh i had no idea that c sucks too
@vaporeon_ @monorail if my web page loaded two javascript files, (lets call them one.js and two.js)
and one.js defines a function
function globalFunc() {
console.log('I am global');
}
then two.js can use that function
@Satsuma yeah
@monorail this doesn't work in node.js for whatever reason, shittyRandom1 is not added to global scope
@Satsuma whatever it is I haven't been diagnosed with yet
@monorail const/let random = function() {} is also good
@monorail also, reported a second time for using a function
declaration
@monorail it disgusts me
@monorail guess again fucker
@vaporeon_ it worked I think
@lapis I've done enough at this point to where that won't be necessary, but I will use this wisdom in the future
@lapis I finished the driving and got all of the boxes in the house! But now I need to carry things up the stairs 😵💫
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him