Some middle-aged guy on the Internet. Seen a lot of it, occasionally regurgitates it, trying to be amusing and informative.

Lurked Digg until v4. Commented on Reddit (same username) until it went full Musk.

Is on kbin.social but created this profile on kbin.run during a week-long outage.

Other Adjectives: Neurodivergent; Nerd; Broken; British; Ally; Leftish

  • 0 Posts
  • 54 Comments
Joined 28 days ago
cake
Cake day: June 4th, 2024

help-circle


  • It’s complex I guess. There’s a stereotype that doing a good deed in China usually ends up backfiring on the doer of the deed.

    Here she died and was praised, but then, the backfire had already taken effect.

    We could conclude from this that the only correct way for a Chinese citizen to do a good deed is to die in the process.

    Then note that the praise could be not for doing the deed but for saving whatever other forces are at play from having to provide the backfire.

    The hard part is determining the shades of truth of all the various aspects here.



  • anaemic* (Sorry, that bothered me for some reason.)

    As for capture groups, you’ll have to find another way. Perversely, perhaps BusyBox continues to be included on certain systems because they know that the extra space is required for the code that works around BB’s shortcomings. That sounds asinine until you realise that “solving the problem properly” most likely leads to that one XKCD comic about the proliferation of competing standards.

    At worst, multiple sizes of BusyBox itself.



  • I’ve said this before and I’ll say it again: There are better things to attack Trump for than how he looks, what physical conditions he has or how he smells.

    At face value, those sorts of things have little effect on the ability to run a country well.

    Even his hair is a better target because how he wears it would appear to show vanity, a quality that might actually interfere with stable management. That’s still a relatively big stretch without other evidence (of which there would appear to be plenty) though.

    Attack his ideas, his intents, his politics. He makes this easy enough, right? Start there.

    “LOL u smel” is something you expect in the playground. Something Trump himself might use, perhaps.

    We have to be better than that.







  • JavaScript, like some other languages of the time, was designed with the Robustness Principle in mind. Arguably the wrong end of the Robustness Principle, but still.

    That is, it was designed to accept anything that wasn’t a syntax error (if not a few other things besides) and not generate run-time errors unless absolutely necessary. The thinking was that the last thing the user of something written in JavaScript wants is for their browser to crash or lock up because something divided by zero or couldn’t find an object property.

    Also it was originally written in about five minutes by one guy who hadn’t had enough sleep. (I may have misremembered this part, but I get the feeling I’m not too far off.)



  • An analogy:

    My Swiss Army knife has a screwdriver on it. It’s nice to have, and I even used it recently.

    It juts out perpendicular to the middle of the knife’s body though, making a literal " |- " shape, so for many applications it’s too awkward for the job.

    I also have a more traditional screwdriver. As and when I come to build a new PC, I don’t think I’ll be using the one on the knife.


  • xterm is a terminal emulator, not a shell. Anything that produces a terminal-compatible text stream can be started as the first program.

    e.g. xterm -e nano, assuming you have the nano editor installed, has no instance of a traditional shell (e.g. bash, zsh) running between the xterm and the editor, but the editor still works.

    You could argue that makes the editor itself a shell of sorts, because it’s interactive and you can do things with it, but it’s still not the xterm that inherits that title.



  • Would some variant of “snauk(t)” or “snaught” work for you? Your brain might be expecting ablaut in the style of “teach” / “taught” or “catch” / “caught” rather than that of “sing” / “sung”.

    How do you feel about “(p)reached”? “Snaked”?

    A fun fact about “caught” is that it’s a relative neologism. It uh, caught on after people decided they didn’t like “catched” for whatever reason. (I guess it has something to do with tangibility / concreteness. Most other -atch words are used for objects.)


  • I’d say it’s more like setting up a handler for a callback, signal, interrupt or something along those lines.

    Function declarations by themselves don’t usually do that. Something else has to tell the system to run that function whenever the correct state occurs.

    That doesn’t account for unconditional come-froms.¸but I expect there’d have to be a label at the end of some code somewhere that would give a hint about shenanigans yet to occur. Frankly that’d be worse than a goto, but then, we knew that already.