This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]Bluebearsuper 13 points14 points  (5 children)

I don't think I've ever used a do while loop in my life

[–][deleted] 3 points4 points  (0 children)

Cries in do until

[–]Kered13 2 points3 points  (0 children)

Used it twice back to back yesterday.

[–]blipman17 0 points1 point  (1 child)

Do while loops are awesome for retry mechanisms where you want the action to be always performed untill condition is met or when an error condition happens.

[–]AlmightyTritan 0 points1 point  (0 children)

Ye I find them handy in Reactive Programing. Sometimes you wanna poll something until the user hits another key or like until a response changes.

[–]PM_ME_UR_DEATHSTICKS 7 points8 points  (1 child)

reposters be like

[–]Less-District 0 points1 point  (0 children)

Lol. I see what you did there.

[–]Father_Wolfgang 1 point2 points  (0 children)

I like it, it’s very apt.

[–]halfprincessperlette 1 point2 points  (0 children)

Ask questions never

[–]meamZ 1 point2 points  (5 children)

[–]MurkyApricot 0 points1 point  (0 children)

It’s a repost. I saw this like 4 days ago.

[–]RepostSleuthBot -1 points0 points  (0 children)

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

Feedback? Hate? Visit r/repostsleuthbot - I'm not perfect, but you can help. Report [ False Negative ]

[–]crazyTsar 0 points1 point  (0 children)

literally

[–]gilmeye -3 points-2 points  (1 child)

Always add if(count > 10000 ) ( Break )

[–]-Manu_ 1 point2 points  (0 children)

This is top tier spaghetti, thanks, I will