Albin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agoShould have run slower.suppo.fiimagemessage-square40fedilinkarrow-up1975arrow-down137
arrow-up1938arrow-down1imageShould have run slower.suppo.fiAlbin Jose@suppo.fi to Programmer Humor@lemmy.ml · 1 year agomessage-square40fedilink
minus-squarePhen@lemmy.eco.brlinkfedilinkarrow-up64·1 year 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-squarePhoenix3875@lemmy.worldlinkfedilinkarrow-up36·1 year agodo { explain } while ( !they.understand )
minus-squarexthexder@l.sw0.comlinkfedilinkarrow-up55·1 year agodo { say("I use Arch btw"); } while ( they.interested ); This loop never runs twice.
minus-squareSquare Singer@feddit.delinkfedilinkarrow-up12·1 year agoFinally a correct application for the do-while meme!
minus-squareSynthead@lemmy.worldlinkfedilinkarrow-up7·1 year 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 🙃