this post was submitted on 16 Aug 2023
25 points (90.3% liked)
Programmer Humor
32380 readers
976 users here now
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.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Laughs in just removing all semicolons because it's not necessary in JS.
It is recommended. But in TS it is not necessary with rare exceptions.
That's what's really irks me be about JS--you can do just about whatever but you're not supposed to.
It's an imperative language, but best practices are to use it functionally.
You can omit semicolons, but best practices are to use them.
You can use sloppy equality, but best practices are to always use strict.
JavaScript reminds me of an older brother who happens to be the most laid back stoner you could meet. "Like yea man, you should probably use semicolons, but I ain't gonna narc"