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.

  • SapphironZA@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    arrow-down
    3
    ·
    edit-2
    45 minutes ago

    Current AI tools are excellent productivity and quality enhancers, but only for people who are willing to adjust their workflows and guide it to give good quality output.

    The damage is done by Capitalism running the AI industry and the over financialization of the market.

    Don’t be anti AI, be anti unregulated Capitalism.

    • Avicenna@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      6 minutes ago

      I agree on their usefulness but as long as you don’t use local and open LLMs you are unfortunately part of the ecosystem that does the damage. Luckily open models are catching on and hopefully some reliable companies take up on this business model.

  • itkovian@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    33 minutes ago

    Only hill I am going to die on has nothing to do with programming. “Everyone in modern society needs therapy, the kind that heals, not the one that lays you on a couch and you get to vent and than you pay.”

    • Appoxo@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      13 minutes ago

      For some venting can be the help because they have no one they can pass those words to in a confidential setting.

  • ducktumn@lemmy.zip
    link
    fedilink
    arrow-up
    31
    arrow-down
    1
    ·
    3 hours ago
    • C++ is an awful language overall.
    • Linus is just some guy with good programming skills and not an authority over anything tech.
    • There aren’t any good text editors in the wild. VSCode is awful apart from extension support. Kate is close to being perfect but lack of extensions are pulling it back. Vim, Helix, Emacs, NeoVim are all flex toys.
    • AI bad
    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 hours ago

      Agree with half of that. C++ is last century stuff and should be replaced. Any new code in C and C++ is immediately a vulnerability.

      • ducktumn@lemmy.zip
        link
        fedilink
        arrow-up
        6
        ·
        2 hours ago

        Atleast C is easy to understand which makes it easier to find and fix vulnerabilities. C++ feels like it’s duct tape holding it together.

        • onlinepersona@programming.dev
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          2 hours ago

          C is easy to understand and find vulns? AI is uncovering decades of vulns in C code that humans hadn’t seen since the code’s inception. And they aren’t logic errors but memory management errors. Not a single day goes by without a CVE in a C/C++ project about memory management.

          Both languages are walking vulnerabilities.

    • Bourff@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 hour ago

      That’s not controversial in the slightest. Everyone agrees with these except maybe a few neckbeards living in the woods.

    • creation7758@lemmy.ml
      link
      fedilink
      arrow-up
      2
      arrow-down
      2
      ·
      39 minutes ago

      Alright. Let’s see you defend the opinion wayland is not good without asking an llm

      • littleomid@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        30 minutes ago

        I would tell you, if you didn’t directly go on the offensive and berate me for what? You thinking I’ll be using LLMs? No thank you. Go ask an LLM yourself.

  • One2many@lemmy.world
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    2 hours ago

    Printers and fax machines are completely outmoded and should be removed from every environment.

    • Baggie@lemmy.zip
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      2 hours ago

      I definitely agree with fax machines, do you not feel that physical copies of things have value?

      • some_random_nick@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        1 hour ago

        I disagree even with fax machines being removed. It’s a redundancy that doesn’t use the internet, but telephone lines, and as such has value.

        • rbn@sopuli.xyz
          link
          fedilink
          arrow-up
          5
          ·
          49 minutes ago

          Is there still an independent phone infrastructure though? In Germany at least, it’s all VoIP as far as I know, so Fax machines add very little redundance…

  • kionay@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 hours ago

    No single letter variable names. Yes I also mean the i in for loops you see in tutorials. Write out “index” or give it a more descriptive name. Doing the typing isn’t the hard part of programming, nor the most time consuming, so making it take a teeny tiny bit longer by having longer variable names is more than worth the value of variables the effortlessly describe themselves.

    line length is not that big of a problem anymore, we’re not on CRTs, people are regularly developing with 4k monitors, we don’t need to limit to 40 character lines but even still if you can’t possibly think of a way to break up that long of a line and the only thing you can think of to make it shorter is using over-acronymized variable names then you’ve already lost the plot somewhere

    • Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      2 hours ago

      I disagree when it comes to standardized single-letter variable names. They’re invaluable when writing dense code for games or other math-heavy applications and you learn to recognize them very quickly.

      So i for index in loops (and j, k for nested loops, but you’re almost always doing something wrong if you need them); x, y, z for position and h, w for size; r, g, b, a for color data, etc - you’ll immediately know what the variable is for at a glance even though it’s a single character.

      Another benefit is that having related variables be the same character width keeps code visually aligned, which helps with readability.

    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      I agree. Short, nonsensical, meaningless, artificial variable names make me think the person writing the code is a dinosaur from when they still had punch cards. Get with the times.

  • Alavi@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    2 hours ago

    Java is overall a good language for getting things done, although not enjoyable to work with (thank god we have Clojure)

    • bort@sopuli.xyz
      link
      fedilink
      arrow-up
      5
      ·
      1 hour ago

      the language itself is good. The main issue is that the ecosystem and the designpatterns are so broken (i am looking at you, Robert “clean code” Martin).

      My advice for anyone working with java: look at any other ecosystem how to work with designpatterns, and then come back to java and ignore everything the java community tells you about “good practices”.

  • Alavi@programming.dev
    link
    fedilink
    arrow-up
    5
    arrow-down
    3
    ·
    2 hours ago

    People in FOSS community (including users) nitpick way too much about eachother’s ethics and are mostly dictators so they expect everybody’s views to align with themselves and each sub-community/individual see themselves as the source of moral balance.

    “oh no one of project XYZ maintainers doesn’t like trans people we should boycott the project and fork it into LibreLGBTQXYZ”

    be professional ffs. See the project as the software and it’s technicality, art, science and engineering. we can’t be too picky about individual people’s beliefs and ethics especially in current situations.

    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      7
      arrow-down
      3
      ·
      2 hours ago

      “I will happily promote the project of a person who openly says people like me should be shot. What’s the problem?”