this post was submitted on 30 Sep 2023
914 points (96.3% liked)

Programmer Humor

32042 readers
1229 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] KTVX94@lemmy.myserv.one 5 points 11 months ago (6 children)

I literally use this meme in a slide when teaching while and do while.

[–] xmunk@sh.itjust.works 11 points 11 months ago (1 children)

Please switch over to something that actually has a condition that needs to logically be evaluated on each step and not as an end condition - yes this meme is technically correct for the case where they both start adjacent to the cliff and programmers should always consider (cliff) edge cases... but the visual strongly implies they've been running for a while.

[–] KTVX94@lemmy.myserv.one 2 points 11 months ago

I mean yeah, it does have that problem, but even if it's not entirely accurate it's good enough to illustrate an otherwise abstract concept that's not exactly easy to understand for someone who's just getting started with programming and may not really be interested in it, rather looking to be an artist or game designer. Also humor really helps when it comes to learning. It does way more good than bad in my experience so far.

load more comments (4 replies)