this post was submitted on 06 Mar 2024
323 points (93.3% liked)

Programmer Humor

32469 readers
536 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 14 comments
sorted by: hot top controversial new old
[–] [email protected] 42 points 8 months ago

Should've at least added some output to the loop, now the brain can just optimize and jump straight to the end.

[–] [email protected] 6 points 8 months ago (1 children)

I have no idea what any of this means. Plz hlp

[–] [email protected] 32 points 8 months ago* (last edited 8 months ago) (1 children)

The actual joke is that they were trying to play dumb/fun nerd computer games. The cool fish basically just told them to count to 1000 instead

for that little bit of program there x is set to 1 and x++ is just another way to say "add one to this number". The loop runs until x is 1000 thus all the x values when they are "running" the program manually

[–] [email protected] 3 points 8 months ago

Thx, got it :D

[–] [email protected] 6 points 8 months ago

Your a wizard Harry

[–] [email protected] 19 points 8 months ago (1 children)
[–] [email protected] 17 points 8 months ago (1 children)

it's the techno-mage of the open clan and his student

[–] [email protected] 4 points 8 months ago (1 children)

Is anyone in this reality content to be alive? Happy even?

[–] [email protected] 1 points 8 months ago

sure, the CEO-president of the GovCorp.

[–] [email protected] 2 points 8 months ago

Couldve flipped the sign every operation to make it even longer, just make sure you're not off by one or change it while x <= 1000

[–] [email protected] 53 points 8 months ago (3 children)

Some time ago I had a fever dream confusing reality thing and when I woke up I had reason with myself that "no, I can't run a program in my brain". I couldn't decide if it was a disappointment or a relief.

[–] [email protected] 1 points 6 months ago

Wait 'til you learn what tracing is

[–] [email protected] 5 points 8 months ago

How do we know that the thoughts which occur in dreaming are false rather than those others which we experience when awake, since the former are often not less vivid and distinct than the latter?

[–] [email protected] 17 points 8 months ago

that is kind of the premise of the techno-mage's story 🤔 [email protected]