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

Programmer Humor

32721 readers
387 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] 54 points 9 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] 17 points 9 months ago

that is kind of the premise of the techno-mage's story ๐Ÿค” [email protected]

[โ€“] [email protected] 5 points 9 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] 1 points 7 months ago

Wait 'til you learn what tracing is

[โ€“] [email protected] 42 points 9 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] 19 points 9 months ago (1 children)
[โ€“] [email protected] 17 points 9 months ago (1 children)

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

[โ€“] [email protected] 4 points 9 months ago (1 children)

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

[โ€“] [email protected] 1 points 9 months ago

sure, the CEO-president of the GovCorp.

[โ€“] [email protected] 6 points 9 months ago

Your a wizard Harry

[โ€“] [email protected] 6 points 9 months ago (1 children)

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

[โ€“] [email protected] 32 points 9 months ago* (last edited 9 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 9 months ago

Thx, got it :D

[โ€“] [email protected] 2 points 9 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