@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agoShould have run slower.suppo.fiimagemessage-square40fedilinkarrow-up1958arrow-down136
arrow-up1922arrow-down1imageShould have run slower.suppo.fi@Albin7326@suppo.fi to Programmer Humor@lemmy.ml • 2 years agomessage-square40fedilink
minus-square@Phen@lemmy.eco.brlinkfedilink62•2 years agoYears ago when this meme first came my way I tried to explain this and nobody agreed with me, it was driving me mad.
minus-square@Phoenix3875@lemmy.worldlinkfedilink36•2 years agodo { explain } while ( !they.understand )
minus-square@xthexder@l.sw0.comlinkfedilink54•2 years agodo { say("I use Arch btw"); } while ( they.interested ); This loop never runs twice.
minus-squareSquare Singerlinkfedilink12•2 years agoFinally a correct application for the do-while meme!
minus-square@Synthead@lemmy.worldlinkfedilink7•2 years agoRuby has a fun until for refuted conditionals! until(they.understand) { explain } Reads like English 🙃
Years ago when this meme first came my way I tried to explain this and nobody agreed with me, it was driving me mad.
do { explain } while ( !they.understand )
do { say("I use Arch btw"); } while ( they.interested );
This loop never runs twice.
Finally a correct application for the do-while meme!
Ruby has a fun
until
for refuted conditionals!until(they.understand) { explain }
Reads like English 🙃