• 5 Posts
  • 938 Comments
Joined 6 years ago
cake
Cake day: May 31st, 2020

help-circle
  • That is definitely not right. That sounds like you don’t have a shebang or it isn’t defined correctly. The shebang has to be the very first thing in the script, with no whitespace before it. It gets read out by the kernel, which very dumbly checks the first few bytes.

    And well, such a shebang should also work for Python or the like. If you copy the first script in this link into a file script.py, then run chmod +x script.py and finally run ./script.py, does that print Hello, World! ?



  • Yeah, modern computers often feel like a scam. Obviously, some things are faster and obviously, we can calculate more complex problems.
    But so often, programs are only optimized until they reach a level of “acceptable” pain. And especially with monopolistic, commercial software that level is close to infinity, because well, it’s acceptable so long as customers don’t switch to competitors.

    Either way, the slowness that was acceptable twenty years ago is generally still acceptable today, so you get much of the same slowness despite being on a beefier PC.





  • I mean, yeah, I studied computer science. Presumably, I’ve been taught the majority of these at some point. I just absolutely fucking hate mathematical notation.

    Due to your comment, I’m guessing, top-left is multiplication then, even though I was also taught in school to use × for multiplication.
    Top-center might be logical AND? Top-right might be function composition? Center-left and center-right might be ranges, unless those dots indicate multiplication, then no fucking clue. Bottom left is set intersection. And one of these circles or crosses is probably the Cartesian product.

    So, I mean, I do know some of this shit. In truth, I was just deriding mathematical notation with that meme, because well, “Set” is the only actual word in all that mathematical notation… 😵‍💫






  • I think it was that back when it was relevant (but replace data scientists with web devs)

    Sure, but if programs from that era are still around, chances are the maintainer is quite experienced by now and has fixed all the funky behaviour. 🙃

    I never got interested in the ecosystem myself, but I’ve run into it every now and then. I feel like it’s in the same place as PHP today: still used a lot for legacy reasons, but you’ll get weird looks if you start a new project with it and you’re under the age of 40

    Ten years ago, a university buddy of mine discovered Ruby and you might’ve thought a miracle happened from how excited he was for it. But yeah, that was also the last time I met someone in real life who was excited about Ruby. 😅



  • Man, I haven’t done structural inheritance in years and by now, this reads like the ramblings of a mad person.

    Like, I recently had a use-case, where I actually wanted to define multiple types with the same fields and for various reasons ended up using a macro for that.
    And that still felt simpler than whatever is going on in this article, because there were no cross-relationships between the types at runtime. The macro templated the type definitions as if I had copy-pasted them, except there’s no actual code duplication, which is ultimately all I wanted.




  • Ephera@lemmy.mltoComic Strips@lemmy.worldHealthy Snacks
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    6 days ago

    A few years ago, I learned that the stomach rumble when you’re hungry, is part of a process that’s actually kind of important health-wise: https://en.wikipedia.org/wiki/Migrating_motor_complex

    So, it’s good when your stomach and small intestine empty out on a regular basis. It’s good when you’re hungry on a regular basis.
    Just yet another luxury problem of modern times, that we have food available at all times and need to stop ourselves from snacking.

    Side-note: It’s also good to go hungry, because then when you do eat, the food tastes so much better. This also means you can go for healthier food and still have it hit the spot.


  • The thing to me is always that, yeah, you need a huge commit for a breaking change in an internal library inside a monorepo, but you will still need to do the same work in a polyrepo eventually, too.

    Especially since “eventually” really means “ASAP” here. Without going through the breaking change, you can’t benefit from non-breaking changes either and the complexity of your codebase increases the longer you defer the upgrade, because different parts of your application have different behavior then. So, even in a polyrepo, you ideally upgrade all library consumers right away, like you’re forced to in a monorepo.


  • Good question. My best guess is that the buttons have become less important, because:

    • they try to auto-detect where a signal comes,
    • they have better defaults, so you don’t really need to change settings, and
    • even monitor brightness can partially be controlled by the OS.

    But yeah, I got a new monitor at work, and instead of buttons, it has a joystick on the backside. Now the monitor’s menu pops up every so often, I’m guessing because something shook the joystick just enough to trigger it.
    When I saw that joystick for the first time, I wondered how long it’ll take before it breaks, but it’s broken on day 1, so that’s great. 🫠


  • Ephera@lemmy.mltoScience Memes@mander.xyzPeas plz
    link
    fedilink
    English
    arrow-up
    7
    ·
    9 days ago

    I believe, the problem is mainly white bread, which is what people typically have in mind for feeding ducks.

    As opposed to wholegrain, it only retains the endosperm, which is mostly just carbohydrates without many nutrients:

    I think, the lack of fiber is also particularly problematic. At least, I’ve heard that it gives them diarrhea, which probably means their guts don’t have time to extract the few remaining nutrients.