• 0 Posts
  • 363 Comments
Joined 2 years ago
cake
Cake day: July 31st, 2023

help-circle




  • JavaScript was a mistake, but this is one of the few things they did correctly. Implicitly importing everything from a package into the current scope makes it difficult to follow where variables or functions come from, and it’s prone to cause problems when two packages export the same identifier.

    If you’re an absolute masochist, there’s always a workaround. Against all best practices, you can use the deprecated with statement. Or, you can Object.assign() the packages into the global object like a monster. Or if you’re using node, you can use the node:vm module to create a new V8 context with its own global object of your choosing.
















  • I think you are wrong, but only in the you’re not thinking about the big picture.

    Elon “I traced the DDOS to Ukrainian terrorists” Musk is in charge of this. Someone on Twitter (probably his alt) is going to post a conspiracy on Twitter about Ukrainian or Canadian hackers being behind it, and he’s going to retweet it with some plausibly deniable bullshit like “not far off,” and rally up his cult of reactionary prokaryots to demand a economic or military response. It’s yet another golden opportunity for the crony collective to sweep their own incompetence under the rug while simultaneously scapegoating another country to push their unspoken-but-obvious agenda.