this post was submitted on 09 May 2024
453 points (92.3% liked)

Programmer Humor

31224 readers
70 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 39 points 1 month ago (22 children)

I didn't know why, but *++p bugs me

[–] [email protected] 8 points 1 month ago* (last edited 1 month ago) (3 children)

That *++ operator from C is indeed confusing.

Reminds me of the goes-to operator: --> that you can use as:

while(i --> 0) {
[–] [email protected] 15 points 1 month ago (2 children)

That's not a real operator. You've put a space in "i--" and removed the space in "-- >". The statement is "while i-- is greater than zero". Inventing an unnecessary "goes to" operator just confuses beginners and adds something else to think about while debugging.

And yes I have seen beginners try to use <-- and --<. Just stop it.

[–] [email protected] 1 points 1 month ago

The sheer number of people that do not expect a joke on this community... (Really, if you are trying to learn how to program pay attention to the one without the Humor on the name, not here.)

Well, I guess nobody expects.

load more comments (1 replies)
load more comments (1 replies)
load more comments (19 replies)