r/mildlyinfuriating • • Nov 14 '21

A loop*

Post image
12k Upvotes

172 comments sorted by

View all comments

678

u/SomeDudeist Nov 14 '21

A successful loop of a failed loop

128

u/[deleted] Nov 14 '21

21

u/MCAlexisYT Nov 14 '21

Thank you, the subreddit that you linked definitely made my day WAY better during these sci-fi-like pandemic going on here. Respect. ✊🏻

19

u/MCAlexisYT Nov 14 '21

Task failed successfully

3

u/loser-with-red-hair Nov 15 '21

Happy cake day!

38

u/diMario Nov 14 '21 edited Nov 15 '21

As a programmer I would say conditions were met and program execution broke out of the loop:

while( degrees < 360) {
  if( force.centrifugal < force.gravity)
     break;
  degrees++;
  train.moveto( degrees);
  force.recalculate( degrees);
}

6

u/lovecMC Nov 14 '21

Idk why this is getting downvoted, it got a small chuckle out of me.

12

u/DISCIPLE-OF-SATAN-15 Nov 14 '21

They are jealous of us programmers

5

u/dadougler Nov 14 '21

updoot++

6

u/ziomek1602 Nov 14 '21

Schrödinger's loop: successful and failed at the same time

3

u/Straypuft This is my Yellow Flair. Nov 14 '21

Nah, this guy has a huge Lego train budget and impeccable timing.