Over what?
Death by wasps
Can I please pick the wasps?
Totally understandable choice.
Did a robot just ask to die because of JavaScript hahaha
The bot toggle was on for my account for some reason but I am human… I think
It should be off now
It seems it doesn’t propagate to other servers immediately though.
ROFL it is not
Browsers love it!
Practically anything you write will execute without all that scope and well formed statements nonsense.
Mind you, number 2 is also its biggest flaw as well, but…
- It runs in browsers
- If you hate your co-workers, then they will also feel your pain.
You can make your speakers go BRRRRRRRRR via Home Assistant with it
Elaborate?
It has a cup of coffee as logo
I want to create a political party in India. I need you as a candidate for next elections.
That’s Java, not Javascript. Java is to javascript as ham is to hamster.
Or butter to butterfly
Or car to carpet
Or fun to funeral
Moon to moonshine
-
Ajax.
-
Uhhh…
-
await
andasync
It runs in browsers. It… isn’t poop? I don’t know. I’m all out of ideas.
It… isn’t poop?
Well, there’s a link that’s staying blue.
Half marks
It runs on mobile also. Hell it runs everywhere nowadays
3 billion devices worldwide?
Java-Script
You’ll find an npm package to help you count up to 2.
(I recently learned - maybe here - that the is-even package has over 170k weekly downloads)
Is-even continues to be the best joke in the industry
What’s even wilder is if you look at the code of that package, all it does is include the is-odd package and then return !is-odd. And the is-odd package isn’t much better, it does some basic checks on the input and then returns n % 2 === 1.
I’ve always looked at stuff like that as much more along the lines of performance art than anything else.
I thought I was missing something. JS is one of my main languages and I always just write the is-odd function myself since it’s like 10 characters. It boggles the mind that is-even has 176k weekly downloads
Also there are 40-something packages depending on it, so I guess it gets pulled automatically when they are used.
To be fair having a name can make things easier to read. I get that
i % 2 == 0
is a common pattern and most programmers will quickly recognize what is happening. ButisEven(i)
is just that much easier to grok and leaves that brainpower to work on something else.But I would never import a package for it. I would just create a local helper for something this trivial.
Exactly what I would do if I had to reuse it, especially now since I know that adding a package would actually add 2. It all just seems so…inefficient
Even if the code isn’t reused adding names to sub-expressions can be very valuable. Often times I introduce new functions or variables even if they are only used once so that I can give them a descriptive name which helps the reader more quickly understand what is happening.
Yeah, I do that with pretty much every separate operation in c# since our solutions are pretty big. Most of my JS scripts are just done in ServiceNow which are separated and named appropriately.
If youre lazy/busy enough, doing basic checks on the input is enough boilerplate to package out.
This must be a “hold my beer” kind of joke and someone wanting to see how far they can take it.
Oh boy, this actually made me laugh out loud
- it’s easy to make fun of
- it makes every other programming language look better in comparison
- Duck typing
- Typescript
!!isAdvantage
We have forced it, quite hamfistedly, to do anything. The organic hell-evolution of web browsers turned them into do-anything sandboxed mini-OS. It meant whatever hellish code you used to write your corporate mandated web app could now become a perfectly bloated standalone application. And the demonic language that would enable it was called Javascript. It does the backend and it does the frontend. You could consider those advantages over other devices, like toasters and those handheld electronic games from the 80s.
JIT compilation