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:

founded 5 years ago
MODERATORS
 

TIL about the greek question mark

Tell me, can you tell the difference between these two characters?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

Laughs in just removing all semicolons because it's not necessary in JS.

[–] [email protected] 0 points 1 year ago (1 children)

It is recommended. But in TS it is not necessary with rare exceptions.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 2 points 1 year ago

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"