• 1 Post
  • 273 Comments
Joined 1 year ago
cake
Cake day: December 9th, 2023

help-circle



  • bitcraftertoComic Strips@lemmy.worldBugs
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    16 hours ago

    I see no problem at all with lab-grown meat being the solution, but I would push back a bit on the notion that eating bugs is inherently unpalatable. The truth is that what makes eating bugs unpalatable is our current habits and inclinations think of this as being inherently “icky”, save for certain species that come from the sea. Changing these habits would not only switch us to consuming animal protein with fewer ethical and environmental issues, but also would open us up to new culinary experiences which we are currently depriving ourselves.

    Having said that, I have never tried hard to overcome my own habits and inclinations, even though I probably should, so I am not going to judge anyone else for not having done so; the above paragraph is a musing rather than me trying to dictate anything to other people.


  • bitcraftertoComic Strips@lemmy.worldBugs
    link
    fedilink
    arrow-up
    3
    ·
    16 hours ago

    I could not agree more that anyone who points out the negative ethical and environmental repercussions of eating meat and suggests that it would be better if we all switched to eating more bugs and/or lab-grown meat instead is really just trying to oppress the poor!

    (Just to be clear: I myself find it extremely hard to change my habits so I do not negatively judge anyone else for continuing to eat meat, but I do negatively judge people who derail the entire conversation about the best way to proceed given the reality of problems with eating as much meat as we do by accusing me of having bad intentions.)



  • bitcrafterOPtoProgrammer Humor) (Whew!)
    link
    fedilink
    arrow-up
    3
    ·
    21 hours ago

    Ah, but you see, JavaScript is not so straightforward. It tries to help you by automatically inserting missing semicolons, but the approach that it uses is that it will insert them in the first place where doing so would make the code parse. This, unfortunately, means that semicolons are often inserted in places where you were not expecting them, so the advice is to always include them manually yourself so that you are never unpleasantly surprised.






  • I would argue that everything is being named for what it is, it’s just that the mathematical definitions underlying the types are sufficiently subtle that it is not easy to look at them and immediately make the connection between what you are seeing and why it works. (I personally had to study them for a while before really understanding what was going on.) Additionally, the lens package is arguably not the best entry point because it makes you learn both the basic concepts and a full batteries-included library for working with them in every conceivably way at the same time, which can be so overwhelming that it becomes impossible to learn either of these things.

    The good news, though, is that the advantage of this style of lenses is that the types are inherently structural rather than nominal, which means that you can, for example, use the far simpler microlens package instead and still interoperate with code that uses the lens package.

    I find it interesting that you are so passionate about elm. The impression that I got when I last played with it a few years ago is that it is a good introduction to functional program because it shows just how nice things can get when everything is pure, but that eventually one outgrows it and its simplicity feels far more constraining than useful. So the good news is that you never have to learn about things like lenses, but the bad news is that if you run into a problem that would be solved really well by them, then too bad. How much one cares about this kind of thing is a genuine matter of personal preference, though.








    1. Fear of unfamiliar syntax. This is utterly bogus, but I can bet you that if rust used python style layout and haskell style type signatures, it would still be incredibly niche. Something can wipe the floor with the competition, be rock solid, stable and blazingly fast, but if it’s unfamiliar it will be niche. See elm for front end, for example.

    But the weird thing to me is that Rust’s syntax is also pretty familiar unfamiliar since it is (just to start) heavily inspired by ML. Does it really just come down to the fact that it has mandatory curly braces and semicolons? It just seems weird to me that this should be the sticking point for people.

    Edit: Oops, wrote “familiar” when I meant “unfamiliar”.