this post was submitted on 20 Sep 2024
92 points (90.4% liked)

Showerthoughts

29358 readers
1191 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS
 

According to syntax postfix increment returns copy of unmodified variable (C++ == C), while prefix increment returns incremented variable (++C == C + 1).

you are viewing a single comment's thread
view the rest of the comments
[–] j4k3@lemmy.world 32 points 2 weeks ago (15 children)

Cpp

++C would make the language totally irrelevant in alphanumeric listings of languages

After simply managing a point of sale system for a retail chain, I hate you for even suggesting this./s It is almost as bad as all the insane ideas about date notation. The only correct notation is YYYY/MM/DD.

[–] Aatube@kbin.melroy.org 23 points 2 weeks ago (5 children)
[–] someguy3@lemmy.world 7 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Why not invent even more notations? We did YYYY.MM.DD at work.

[–] dingdongmetacarples@lemmy.world 4 points 2 weeks ago

Just please don't do yyyyMMdd with each field being optional and possibly one or two characters.

load more comments (1 replies)
load more comments (3 replies)
load more comments (12 replies)