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

Programmer Humor

32396 readers
641 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
[โ€“] whaleross@lemmy.world 51 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.

[โ€“] pmjv@lemmy.sdf.org 17 points 8 months ago

that is kind of the premise of the techno-mage's story ๐Ÿค” !unix_surrealism@lemmy.sdf.org

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?

[โ€“] CCF_100@sh.itjust.works 1 points 6 months ago

Wait 'til you learn what tracing is

[โ€“] caoimhinr@lemmy.world 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.

[โ€“] ryannathans@aussie.zone 19 points 8 months ago (1 children)
[โ€“] pmjv@lemmy.sdf.org 17 points 8 months ago (1 children)

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

[โ€“] scrion@lemmy.world 4 points 8 months ago (1 children)

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

[โ€“] pmjv@lemmy.sdf.org 1 points 8 months ago

sure, the CEO-president of the GovCorp.

[โ€“] troyunrau@lemmy.ca 5 points 8 months ago

Your a wizard Harry

[โ€“] LeFrog@discuss.tchncs.de 5 points 8 months ago (1 children)

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

[โ€“] _lilith@lemmy.world 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

[โ€“] LeFrog@discuss.tchncs.de 3 points 8 months ago

Thx, got it :D

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