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.

  • randombullet@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    37 minutes ago

    I remember on Reddit several years ago I said that automatic bitlocker is the curse of installing W11 on a laptop.

    I got down voted so hard. One comment even said you should be thankful because encrypting by default should be the norm.

    But yet if I add any thunderbolt device to my windows before I boot it, it requires me to input my 25 character bitlocker key… that’s hosted online within my Microsoft account.

    Bitlocker enabling by default without user input is horrible. Hosting the keys online is also horrible. It could be so easy to socal engineer into your Microsoft account.

  • Bo7a@piefed.ca
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    52 minutes ago

    Choosing cattle over pets is often a mistake. Yes, even cloud-based cattle.

  • jason@discuss.online
    link
    fedilink
    English
    arrow-up
    13
    ·
    4 hours 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
    26
    arrow-down
    4
    ·
    5 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.

  • Hundun@beehaw.org
    link
    fedilink
    arrow-up
    9
    ·
    5 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.

  • Chloé 🥕@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    50
    ·
    10 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
      9
      ·
      5 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
      6
      ·
      5 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
      3
      ·
      5 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
      6
      ·
      7 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
      ·
      5 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
      ·
      6 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.

      • PortNull@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        No classes, no mutable types, pure functions where possible (I/O functions exist). I like elixir myself. I use for loops or recursion depending on which is suitable and most understandable. I like the pipe operator because I’ve gotten used to chaining inputs and outputs like that from Linux CLI.

        I prefer functional programming, but also use OO, each their own, but i prefer functional and find it better to write and read

    • NoLemurs@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 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.

      • PortNull@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        Nah, no language is “perfect” once you’ve used it enough I write python for money and elixir in my own time. I borrow implementation approaches from functional when it’s appropriate. Avoid using complex classes, especially if the encapsulate state. But they have their uses and people should chose which works best for their use case

        I wouldn’t write cli tools in elixir for example.

  • melsaskca@lemmy.ca
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    8 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”.

  • ThePuy@feddit.nl
    link
    fedilink
    arrow-up
    17
    ·
    10 hours ago

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