• 0 Posts
  • 60 Comments
Joined 1 year ago
cake
Cake day: November 14th, 2023

help-circle


  • Those parents seem pretty rotten. Either dodge this bullet and tell her it’s a bad fit, or, if you care about her, let her know that you don’t appreciate her parents talking to or about you in that way.

    Her response to either one should be important to observe. She might reveal that she agrees with them, or that she thinks her parents are dumb for saying those things.

    It’s ultimately up to you. But know this: you are way more successful than I was at your age. Nice job! 👏💪🫸🫷




  • I don’t think I’d be able to have a full meal for breakfast. Some people just can’t bring themselves to eat a lot in the morning. I know people with diabetes who force-feed themselves in the morning for their life/doctor’s orders.

    But yeah, I don’t like cereal since a couple decades, really. That’s breakfast for kids.



  • Excellent write-up. People who complain about Haskell and purely functional languages just don’t understand it, I think. Take me for example. I tried learning Haskell many years ago, and while I learned so many new and incredibly useful concepts from my short adventure, that I use everyday in my career, I just couldn’t wrap my head around the more abstract concepts, like monads e.g. And the feeling I got was that Haskell is a difficult language, but probably it’s the terminology and abstract mathematical concepts which are the real issue for me here. Because the syntax isn’t really that complicated. Especially the way space is used to call functions. I’m really sick of all the parentheses in other languages.

    But, if you understand all about functional programming, for those that do, it seems to really enrich the way they write and maintain code from what I’ve seen. People who dog on it just don’t understand (including me). Of course it’s hard to maintain something you don’t understand. But if you do understand it, it’s easy to maintain. 🤷‍♂️ Seems logical.

    What next, where is the line drawn for what kind of code we can write? Why introduce more useful concepts in programming if we risk losing maintainability because some devs won’t learn the new concepts?

    Life means change. Adapt. Learn new things. Expand the mind. Learn how to do things in a good way, and then do the things in that good way. Why stagnate just because we don’t understand something. Better to learn a new thing to understand the better way, than to dumb it down to a worse state just so we understand it.

    Bah.


  • Victor@lemmy.worldtoProgrammer Humor@programming.devstop
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    17 days ago

    I dabbled in some Haskell a few years ago but quit trying when I got to the hard parts like monads and functors and stuff. All those mathematical concepts were a little too abstract for me.

    But what I did bring with me from the experience changed my way of programming forever. Especially function composition and tacit (point-free) style programming. It makes writing code so much faster and simpler and it’s easier to read and maintain.

    You can utilize some functional programming concepts without being too hardcore with it and get the best of both worlds in the process. 👍


  • Victor@lemmy.worldtoAsk Lemmy@lemmy.world*Permanently Deleted*
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    18 days ago

    Normal and common doesn’t really necessarily mean the same thing to everyone. Normal has more values attached sometimes. Normal sometimes carries some sense of a moral attachment.

    Polyamory is not something all humans think is acceptable, for themselves or others. Some animal species also don’t mate with more than one other individual, even if they would have time and opportunity to do so. Humans are a mix here, within our species.

    I think most people don’t have multiple partners at once. That’s probably the most common thing. But what’s considered “normal” depends on the community and culture.







  • Fish syntax is still fairly ugly compared to most programming languages in my opinion.

    subprocess.run(["fd", "-t", "d", "some_query"])
    

    vs

    fd -t d some_query
    

    Which is cleaner? Not to mention if you want to take the output from the command and pipe it into another one.

    It’s not about folks with weird opinions or otherwise, it’s about use cases. 🙂 I don’t think python is any more “natural” than most other imperative languages.

    Fish is probably even more natural, actually, due to it being more high level and the legibility of the script is basically dependent on the naming of the commands and options and variables used within it, rather than something else, just like python. They probably have similarly legible keywords. Fish I imagine has fewer, which is a good thing for legibility. A script does a lot more with a lot less, due to the commands themselves doing so much behind the scenes. There’s a lot more boilerplate to a “proper” programming language than a scripting language.

    But if you want to do something that python is better suited for, like advanced data processing or number crunching, or writing a whole application, then I would say that would be the better choice. It’s not about preference for me when it comes to python vs fish, it’s about the right tool for the job. But if we’re talking about bash vs fish, then I’m picking fish purely by preference. 👍