this post was submitted on 16 Aug 2023
636 points (90.3% liked)

Programmer Humor

38282 readers
86 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 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
[–] Andrew15_5@mander.xyz 5 points 2 years ago (28 children)

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

[–] platypode@sh.itjust.works 19 points 2 years ago* (last edited 2 years ago) (16 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.

load more comments (13 replies)
load more comments (24 replies)