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)
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)
Array(16).join("wat" - 1) + " Batman!";
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
I am forced to try to get a JS certification.
I am reaching the end of my rope, and starting to think of maybe putting my neck into one.
Isaac Newton said that we see far because we stand on the shoulders of giants.
Javascript is like standing on the shoulders of dwarves with brittle bone disease.
1 - Easiest way to run a script in your browser
2 - Always finds its way if inputs are bad
Nan - undefined
NaN is of type number. because fuck me.
To be fair, this is actually reasonable. But it does look stupid on the face of it.
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.
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
It has a cup of coffee as logo
That’s Java, not Javascript. Java is to javascript as ham is to hamster.
The part that always gets me is when people choose Js for the backend. Like I get that it's the default thing that works on the frontend, so there's some rationale why you might not want to transpile to it from another language. On the backend though, there are so many far better option, why would you willingly go with Js, especially given that you're now forced to do all your IO async.
A lot of people are familiar with it and........um....hackers like it being in use?
God people it's getting old
Over what?
It runs in browsers. It… isn’t poop? I don’t know. I’m all out of ideas.
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.
.. ah right, it runs on any browser. Lame
You can make minecraft mods
that's java
Everyone know JavaSript is a Java, but you don't have to compile, so you script in it.
^/s^
top 50 comments