this post was submitted on 29 Aug 2023
65 points (72.7% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] Written2323@lemmy.ml 42 points 2 years ago (2 children)

Undefined property : lenght

[–] flashgnash@lemm.ee 3 points 2 years ago

Syntax error: expected >

[–] writeblankspace@lemm.ee 2 points 2 years ago

Yeah 💀 the for loop won't run then

[–] TDCN@feddit.dk 18 points 2 years ago

Syntax error: ? is not a valid operator

[–] pizzaiolo@slrpnk.net 18 points 2 years ago (1 children)
[–] Tolookah@discuss.tchncs.de 37 points 2 years ago (1 children)
[–] fred@lemmy.ml 13 points 2 years ago

Speak for yourself

[–] Vigge93@lemmy.world 3 points 2 years ago (1 children)

for(int i = 1; i > 0; i++)

[–] lemmy_see@lemmy.world 2 points 2 years ago* (last edited 2 years ago) (1 children)

-8 bytes

for (int i=1;;i++)

[–] Vigge93@lemmy.world 1 points 2 years ago (1 children)

Not quite the same, there's a subtle but significant difference

[–] lemmy_see@lemmy.world 1 points 2 years ago (1 children)
[–] Vigge93@lemmy.world 2 points 2 years ago

What happens on the next iteration when i = 2,147,483,647 for each of our loops?

[–] fubo@lemmy.world 1 points 2 years ago