Post B69eiZkXF5BlPaAVpQ by rl_dane@polymaths.social
 (DIR) More posts by rl_dane@polymaths.social
 (DIR) Post #B69axkAGP09OExBDiC by arrjay@tacobelllabs.net
       1 likes, 0 repeats
       
       @SnoopJ big 2 energy
       
 (DIR) Post #B69ayIA608DbgHMZAe by NanoRaptor@bitbang.social
       0 likes, 0 repeats
       
       The universe accidentally gives you dev tools access.Which slider are you stabbing your grubby little fingers at first, just to see?Gravity? Speed of light? Boltzmann’s constant? SNF? Entropy? Hell, maybe even the dimensionality of spacetime?
       
 (DIR) Post #B69ayIaKQbCazddW3k by a@pdx.social
       1 likes, 0 repeats
       
       @NanoRaptor Speed of light goes way up; I want to talk to the neighbors.
       
 (DIR) Post #B69b24ON8eg28JqGuW by ricci@discuss.systems
       1 likes, 0 repeats
       
       @SnoopJ @arrjay  Costco pack of 2
       
 (DIR) Post #B69b2MAV2yH9GVURmq by arrjay@tacobelllabs.net
       1 likes, 0 repeats
       
       @ricci @SnoopJ look if 2 is so good why isn't there a 2...2
       
 (DIR) Post #B69bGqLXdsgSunYwfg by emily@fedi.uni.horse
       1 likes, 1 repeats
       
       @NanoRaptor leave the universal constants aloneswitch to the object inspector tabscale pluto up to just big enough to qualify as a planet
       
 (DIR) Post #B69bIZrTu4oIMqKSoK by timixretroplays@digipres.club
       1 likes, 0 repeats
       
       @NanoRaptor simple. Everybody's bisexual now. We'd be so much further ahead as a species if we just got the fuck over some folks being different from some other folks.I mean, there's plenty of other settings that would have similar results, but I don't dare so much as look at the religion control panel without at least a doctorate in playing god
       
 (DIR) Post #B69eiZY7zDGQn6MbUO by europlus@social.europlus.zone
       0 likes, 0 repeats
       
       @NanoRaptor neurotypicals aren’t.
       
 (DIR) Post #B69eiZkXF5BlPaAVpQ by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @europlus @NanoRaptorTook me a second pass to parse that. 😄
       
 (DIR) Post #B69eiZvsYuGLylTZVg by europlus@social.europlus.zone
       0 likes, 0 repeats
       
       @rl_dane @NanoRaptor welcome to my brain 🫂
       
 (DIR) Post #B69eia560ddSRLmvsO by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @europlus @NanoRaptorReminds me of the time I did something clever in a shell script, then a few years later looked at it and said, "What the flipping hades is that?", figured out what it was doing, and then wrote like four long lines of comments explaining it, then looked at it again later and felt that it was completely self-explanatory, and removed the comments. 😅
       
 (DIR) Post #B69eiaDbV0ROrjlj8a by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @europlus @NanoRaptorOh yeah, it was just something like:textBrowser=for textBrowser in cha w3m links2 links elinks lynx curl; do    type $textBrowser &>/dev/null && breakdoneif [[ -z $textBrowser ]]; then    echo "Couldn't find a suitable terminal browser"    exit 1fiThe break means that the very first match is what the variable gets assigned to, so I could list programs by descending preference.Totally bewildered me the second time I saw it, and after that, it was just obvious. XD
       
 (DIR) Post #B69eiaPemC59T7PLvM by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor ah yes, standard construct
       
 (DIR) Post #B69iB8chTaKbXbob2G by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @mirabilos @europlus @NanoRaptorNot sure if you're being serious or snarky 😆
       
 (DIR) Post #B69iB8tiSJwUONmBYe by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor serious ;)
       
 (DIR) Post #B69jVmttXGg0ClGgE4 by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @mirabilos @europlus @NanoRaptorOh, ok. 😁I guess that's what you call "short-circuit evaluation," or something tangential to that?
       
 (DIR) Post #B69jVn2l0JlWeFPl2W by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @europlus @NanoRaptor @rl_dane short-circuit would be that in true || echo $(ls 2>&1) nothing of the part after the double-or is executed.Hm. It’s not quite an if loop, but… I underslept anyway and it’s hot and sunny and I need coffee.
       
 (DIR) Post #B69jusJAZDqcDS3K0e by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @mirabilos @europlus @NanoRaptorWhat's an if loop? I didn't know that was a possible thing. :?
       
 (DIR) Post #B69o3xopqaqtjKSAkq by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor two qualify, though I don’t know which one I mentally coined “if loop” and I haven’t drunken enough coffee yet.while true; dosomething that can fail || breaksomething elseanother something || break#[…]last somethingbreakdone(basically as error handling goto fail; way in languages without goto)for f in *.ext; dotest -e "$f" && somecommand *.extbreakdone(the loop is only used to expand the glob, if any matches exist, the whole thing is just passed to the program all at once, and the loop then terminated)
       
 (DIR) Post #B69qsla1JKkeRssNM0 by rl_dane@polymaths.social
       0 likes, 0 repeats
       
       @mirabilos @europlus @NanoRaptorThe second one makes sense, but the first one could just... not be in a while loop at all, since there's an always-evaluated break at the very end??
       
 (DIR) Post #B69qsm4rSfQBzXJ0QS by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor then you’d have to move it into a separate function
       
 (DIR) Post #B69qzRMWsTx3lvkRns by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor closest equivalent is probably try‥finally in Java/etc.
       
 (DIR) Post #B69rfdRyKGgdQMPjTk by mirabilos@toot.mirbsd.org
       0 likes, 0 repeats
       
       @rl_dane @europlus @NanoRaptor consider that this is part of the code (either in a function or main) and below the done execution continues