God people it’s getting old
Bro, I’d prefer C# or go for the http sever
Web assembly!!!1
!!!111!1!1!1111!!!
How many people are out here raw dogging JS without strict TS or even unit tests
They’re not I’m sure, they just wanna bitch about a language without caring about why it is how it is.
- It has the simplest multi-threaded implementation: no threads!
- You can goof off while your build system takes 20 minutes to rebuild a non-compiled language
node_modules size of a Linux distro
- Is available to be used in website scripting.
- Not quite as full of footguns as PHP (although it is close).
PHP is actually quite footgun free these days.
await
andasync
Write down any NaN advantages of JavaScript
- It’s not PHP.
- I don’t know. I didn’t think I’d get this far.
PHP has gotten really good over the past few versions, actually. Lots of really great stuff has been added, it feels like it resembles rust more every release lol
PHP10: We now allow interop with Rust!
PHP11: We now allow writing code directly in a .php file and compile it with rustc.
It’s not Malboge.
- It’s not PHP
- It’s already implemented in browsers
It leads to typescript
You get surprises from npm
I spent way too long today figuring out why my app was doing something that it’s NOT supposed to do on weekends.
I read Luxon’s docs (pretty cool lib tbh) again and again, and tried everything I could think of to get isWeekend to return a sane result.
Turns out I was pulling a somewhat older version of Luxon, where isWeekend didn’t exist. In any sane language, I expect I’d get a huge warning about a property that doesn’t exist, but alas…
Typescript helps me keep my sanity, but juuuuust barely.
Weren’t you getting runtime errors for the function not being found?
I don’t know how luxon works, but isWeekend could be a property instead of a function
It is. It also happens to be undefined, and checking that for truth is how I was bitten.
No, they were probably getting false every time
Falsy* because it was undefined
However, their IDE should have highlighted it as an unknown property. Guess this guy is coding in notepad or vi.
Yep, thanks for correcting me. In fact, if they write something like
if (day.isWeekend) {...}
The block will never be executed with the old version of library
Yeah that’s exactly what I think happened to him. He needs a better IDE and/or needs to stop copy/pasting code from stackoverflow or documentation that doesn’t match his library version.
My dude, you need to understand that all that anger and resentment, it is not you. It’s the years of JavaScript poisoning your mind.
In any case, that goes to my point. I would have to be saved by my IDE, when any sane language will blow up in your face as soon as you try to run it.
If isWeekend doesn’t exist, then the weekend doesn’t exist, so it’s naturally false.
That’s why JavaScript gets pushed so hard - it’s part of the capitalist agenda to keep us working 7 days a week
That’s fair. Typescript has to cook with the existing js ecosystem.
You get suprises from npm
Damn this is hard. I keep java script disabled by default so its hard to say anything good. I begrudgingly have to whitelist websites i need that cant run without it.
I feel like that’s more because you don’t want websites you visit running code than because you dislike this particular programming language
Thats true. It is more to do with code execution than the language itself.
-
Stackoverflow codes on behalf of you
-
Can code browser extensions
-
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
It runs in browsers. It… isn’t poop? I don’t know. I’m all out of ideas.
Half marks
It… isn’t poop?
It runs on mobile also. Hell it runs everywhere nowadays
3 billion devices worldwide?
Over what?
Death by wasps
Can I please pick the wasps?
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
Totally understandable choice.
- It runs in browsers
- If you hate your co-workers, then they will also feel your pain.
-
Ajax.
-
Uhhh…
-
- Ubiquity
- Easy adoption for those familiar with C family of languages