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

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

Was on kbin.social (dying/dead) and kbin.run (mysteriously vanished). Now here on fedia.io.

Really hoping he hasn’t brought the jinx with him.

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

  • 0 Posts
  • 626 Comments
Joined 10 months ago
cake
Cake day: August 13th, 2024

help-circle





  • Yeah. They took benefits from working age people with physical and/or mental health problems to pay for it. I’m kind of glad I got rejected in the first place for the one they’ve cut, because that probably means I would have been one of those to lose it and it would have severely messed me up.

    Am I annoyed anyway? Yes. But I try to remind myself that the current administration inherited a financial black hole.

    Keeping the old folks onside might prevent them from voting for the fascists the next time around. Assuming they’re willing to forgive the slight, anyway.




  • reset is your friend. Less so these days with GUIs where it’s often quicker to close the window and open a new terminal emulator, but still good to know about in a pinch. That rare occasion where you’re actually on a console and Ctrl-Alt-F# isn’t available, or attached to a remote session where disconnection might mean you can’t get back on, etc.

    The man page suggests Control-JresetControl-J as the correct sequence to run it, because the Enter key might have had its behaviour altered. And if things are still slightly weird after the reset, run its parent tset.




  • At the time JS was created, Perl didn’t have a this. A lot of the docs and books suggested using $self but a reference to the object would be passed as the first parameter to all class methods and you assign that to any name you wanted.

    It’s only very recently (as in the last year or so) with a new class system that Perl has hard-coded $self for that purpose.






  • Urban Dictionary is your friend. The people described by those words tend to be the underprivileged if not also poorly educated people who turn to certain expensive fashion (and sports) brands along with a hard man (or woman) attitude to enhance their apparent status.

    Frankly, I’d rather they spend their money and time on that than the other things similar groups also turn to, like drugs or nationalism. (Although in many cases it goes hand-in-hand, unfortunately, which only serves to amplify the hate from the rest of society.)


  • Not strictly true.

    Perl’s default bitwise operators do differentiate between numbers and strings that look like numbers in a way that addition doesn’t*, and the readline/glob operator <> does different things depending on what (if anything) is between the signs.

    There’s also the whole overload pragma for objects, which doesn’t affect default data types, but if you’re sufficiently perverse, you can define a String class that uses ‘+’ like JavaScript.

    * in 2015, they added new operators so that those and the original operators don’t overload and have only one specific purpose if the bitwise pragma Edit: feature is turned on. You might know all this already though.



  • You’re right. I’ve got too much Perl on the brain and forgot my roots. There is a language that does what you’re talking about with the ‘+’ operator: BASIC

    Good luck getting the same thing retrofitted into JavaScript though. I can imagine a large number of websites would break or develop mysterious problems if this (mis)behaviour was fixed.