Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

  • jason@discuss.online
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 hour ago

    OOP dogma isn’t just bad, it’s actively harmful. OOP leads to unnecessary boilerplate. Any boilerplate that is not absolutely necessary is noise and bad. Full stop.

    Private (Getters/setters): Strictly not a necessity in any sense of the word.

    Short functions everywhere.

    Short files everywhere.

    I prefer to see the steps of execution that are actually happening in the real world on hardware. Not an ivory tower of code that happens to execute.

  • philipp_@discuss.tchncs.de
    link
    fedilink
    arrow-up
    18
    arrow-down
    3
    ·
    3 hours ago

    systemd does a lot of things very right and a mayor reason that linux is in a way better place than 15 years ago. 27 unmaintained tools are not better than one that is professionally developed.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 hours ago

      Systemd solves a very important problem that was defined extremely well.

      It also solves it badly, and solved a whole lot of other badly defined problems that it shouldn’t.

      • kalpol@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        1 hour ago

        This is my argument. Do init. Don’t pull in literally everything else because you think you know better, like system logging.

        • philipp_@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          4 minutes ago

          Init needs to do system logging when you want to collect it from the daemons stdout, which is the logical place to collect it from. Havin apps handle their own log files is a bad time at best and dangerous at worst.

    • Allero@lemmy.today
      link
      fedilink
      arrow-up
      9
      ·
      3 hours ago

      systemd has me in two places. Like, on one side, it’s just SO much better and easier than the rest - at least to me, someone who doesn’t work in IT and just wants his stuff to work. On the other, init freedom is essential, and we need the alternatives to stay alive.

      • Excel@lemming.megumin.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 hours ago

        APIs generally don’t need many alternatives, only implementations do. There’s no reason devs should be trying to provide init files in multiple formats. If the systemd team actually did something bad, then people could just make a different implementation of systemd without requiring a different format for init files. Arguing for more init systems is like saying we need more APIs to compete with both Wayland and X11, instead of just talking about implementations of those protocols.

  • Hundun@beehaw.org
    link
    fedilink
    arrow-up
    6
    ·
    2 hours ago

    If you are getting paid for engineering software, your labour should be licenced in an appropriate jurisdiction, and you should be liable to losing said licence if you do shit job.

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    1 hour ago

    It’s funny how both anti-AI and pro-AI folks think they’re the one in the middle. But the anti-AI crowd is proclaiming that any use is the devil!, and one drop means the whole project is forever worthless, and ten minutes will make your brain dribble out your ears… while the pro-AI crowd just says it’s probably fine. Not miraculous. Flawed and suspect. Local would be better. Basically would you please just relax about the chatbot, and condemn companies doing mass layoffs for any reason?

    When even Cory Doctorow is going ‘LLMs have problems, but here’s how I use them,’ pack it in. This fight is over.

    • charokol@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      45 minutes ago

      It sounds like you’re comparing the most reasonable views of the pro-AI crowd to the most reactionary views of the anti-AI crowd

  • Chloé 🥕@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    35
    ·
    7 hours ago

    if you’re making a user-facing program, you should always design with the possibility that it will be run on some truly dogshit hardware and you should make sure that they still have a good experience. good computer hardware is a luxury on the world scale, even before the rampocalypse

    related, but the answer to the question “who still uses {x} these days?” is almost always way, wayyyy more people than you think

    • Allero@lemmy.today
      link
      fedilink
      arrow-up
      5
      ·
      3 hours ago

      Me when I got my commercial NAS with 7 years of support, I was thinking: “who even keeps hardware for this long?”

      Me, 7 years later: “What do you mean EOL?!”

      I certainly learned to care for and appreciate the hardware these years.

    • hansolo@lemmy.today
      link
      fedilink
      arrow-up
      3
      ·
      3 hours ago

      There’s about 0.2% of people still using internet explorer, per one market share site I found.

      Which works out to potentially millions of people.

    • ArsonButCute@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      3 hours ago

      I do my web development on a 2005 era windows XP machine without the unofficial SP4 because if it will run there (without silverlight) I know for damn sure it will run well on anything made today.

    • ChogChog@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      5 hours ago

      That’s so why a lot of artists I know of when mixing, like to test their songs on stock/sub-par monitors. Not everyone has reference quality equipment and you want to make sure your song works just as well thumping with the windows down as with your hi-fi system.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 hours ago

      There’s nothing in Functional Programming that stops you from writing in an Object Oriented idiom…

    • ThirdConsul@lemmy.zip
      link
      fedilink
      arrow-up
      5
      ·
      4 hours ago

      Could you define what you mean by functional and ooo in practice, because to many people in pracitce functionsl is a garbage monad wrapper over anything with unreadable, undebugable code whose only purpose is to hide if else statements… and it doesn’t even do that; while ooo is java factory of factoties mixed with aspect programming and 20 levels of inheritance.

      • wewbull@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 hours ago

        Not Op but…

        OO languages have classes with inheritance based polymorphism. I don’t see struts + methods as enough to qualify.

        Functional languages have functions which can take functions as arguments and function composition as first class features.

    • NoLemurs@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      100% agreed, though I’m in the “neither is ideal” camp. My favorite language, by a long way at this point is Rust.

      It’s not functional, but borrows a lot of functional idioms while avoiding the pain points functional language usually hit in exchange for losing the purity of functional languages.

  • ThePuy@feddit.nl
    link
    fedilink
    arrow-up
    15
    ·
    7 hours ago

    Java Is actually good for what it does, maintain long term systems that only need updating every once in a while

  • melsaskca@lemmy.ca
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    6 hours ago

    The billionaire tech bros are making money hand over fist without the need for advertisers subsidizing them, and interrupting users all over the world. Little secret…the users know products exist and will go out and seek those products when it is necessary to do so. This activity leads to learning about more products through the ancient art of “browsing”.