- it's easy to make fun of
- it makes every other programming language look better in comparison
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
- You can call it "Java" to enrage other programmers
- You can compare numbers against strings without wasting time converting them
- It runs in browsers
- If you hate your co-workers, then they will also feel your pain.
It leads to typescript
You get surprises from npm
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.
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)
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.
- It's not PHP.
- I don't know. I didn't think I'd get this far.
1 - Easiest way to run a script in your browser
2 - Always finds its way if inputs are bad
Nan - undefined
Easiest? More like... The only way.