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.

  • philipp_@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    37 minutes 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.

    • Allero@lemmy.today
      link
      fedilink
      arrow-up
      2
      ·
      30 minutes 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.

    • ThirdConsul@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      2 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.

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

  • Chloé 🥕@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    26
    ·
    edit-2
    5 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

    • ArsonButCute@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      12 minutes 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.

    • Allero@lemmy.today
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      24 minutes 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
      2
      ·
      20 minutes 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.

    • ChogChog@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      3 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.

  • melsaskca@lemmy.ca
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    3 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
    13
    ·
    5 hours ago

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

  • MonkderVierte@lemmy.zip
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    3 hours ago

    That putting more and more cutting edge technology in our daily computing, that can only be manufactured by a few multi-trillion-dollar-fabs, is a good thing. Not in a politically unstable world like we currently have. And this will not get better the next 50 years, with climate change. Our computing is good enough, we should focus on making it more accessible.

  • abc@suppo.fi
    link
    fedilink
    arrow-up
    22
    arrow-down
    3
    ·
    edit-2
    6 hours ago

    PHP sucks and every attempt at defending it is pathetic.

    I get warm and fuzzy feelings that people here are not even talking about it. Perhaps I should follow that trend.

    • menas@lemmy.wtf
      link
      fedilink
      arrow-up
      9
      ·
      5 hours ago

      PHP is the best web language, not because it’s a good language, but because the other are worst

    • ThunderComplex@lemmy.today
      link
      fedilink
      arrow-up
      7
      arrow-down
      2
      ·
      5 hours ago

      I am with you all the way. For a high level programming language it’s incredible how close to C it is at times AND how many footguns the entire language has.
      And you always hear the “a poor craftsman blames his tools” analogy when someone says PHP bad. But PHP is a hammer that’ll blow your arm clean off when you hit a nail at a slightly off angle.
      There is no defending it, and it should have been replaced with better languages several times over.

      Ok I need to stop myself now I can rant about this language for hours

  • mcv@lemmy.zip
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    5 hours ago

    useState worse than useEffect? I’m not much of a React expert, but I understand useState. useEffect mostly seems to be an excuse for the most horrific spaghetti code since before the abolition of goto.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 hours ago

      I actually really like C#, it’s my favourite. But don’t know how much of that is Stockholm syndrome at this point haha. But whenever I’m writing in other languages i always end up missing something i do regularly in c#, especially from it’s latest versions (which i also deeply miss when forced to work on legacy software that is still using shit like version 4 or 5 of C# (ASP.NET 4.8 / .NET standard) whereas I feel like C# really got good and fun to use from C# 8 onwards (I think this was .NET Core 3.0 or .NET 5 - we’re on C#14 now with .NET 10, with 15 on the horizon).

        • ThirdConsul@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

          Not the oc, but honestly just random shit, like:

          Linq.

          Async and await are both in python or rust, but still via anexternal provider afaik (like Tokio).

          Explicit interface implementation (default trait implementation for the Rust fans)?

          Nice source generators and what you can fo with them (kinda like aspect programming).

          Idk if python or js support pattern matching or proper low level or no GC coding.

          I also enjoy my langauges to have an end of statement character like ; instead of the horrible visual mess python is.

          Type safety of compile and runtime type checks lol. In C# if you say your module requires int parameter, noone will be able to call it passing None/null/string/date.

    • Denys Nykula@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      Learned multiple languages to contribute to different projects and keep up with the times, but JS remains my favorite, something about it just clicks with how I think. Specifically JS, not TS or another dialect, even if I find them helpful.

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 hours ago

    clang format only serves to make code unreadable.

    Looks like this person hasn’t seen how badly some people will format their additions to a codebase.

    But yeah, it does serve as a good way to get rid of multiple break-times every time an update is required.

  • SapphironZA@sh.itjust.works
    link
    fedilink
    arrow-up
    41
    arrow-down
    17
    ·
    edit-2
    8 hours 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.

    • orca@orcas.enjoying.yachts
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      edit-2
      3 hours ago

      Work has forced us all to adopt it, so everyone did. It was either that or suddenly be the slowest person at work, which eventually gets you canned. People will evangelize all day long about how they refuse to use AI, how it’s dog shit, etc. Meanwhile I’ve managed to dial in my AI workflow so that it never deviates from our code standards, it never tries to invent its own components or styles, and I still manage to review it with experienced human eyes. It’s the reason I can start my work day at 10:30am, walk away from my desk at 4:30pm and still be well ahead of schedule. I’ve malicious-compliance’d the fuck out of my job, it has made my life easier, and I don’t give a fuck what some nerd still devoted to the “art of code” says. We live in a capitalist hellscape and I’m a survivalist.

      With all of that said, I’d still wipe this capitalist shithole fever dream of a tool off the planet because I’m tired of data centers and AI companies fucking up the entire industry, the planet, and people’s lives. I’ve already witnessed firsthand what it did to my industry and I’m lucky to even still have a job (especially one that pays as well as it does—it helps to be in the industry just shy of 20 years).

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      22
      arrow-down
      1
      ·
      edit-2
      7 hours ago

      I am anti commercial capitalistic LLMs which, coincidentally is ALL of them.
      “B-But Axo the open weigh—!” They are NOT open, it’s the equivalent of giving you the executable of M$ Edge or a Windows ISO and calling it open, fuck this shit

      • SapphironZA@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        6 minutes ago

        If I was king of the world, I would rule that all AI models were based on stealing from all the knowledge of humanity. Since it cannot be un-stolen, I would decree that all copyright is unenforceable and all current proprietary data must be public domain forever as restitution for the abuse.

    • Ooops@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      but only for people who are willing to adjust their workflows and guide it to give good quality output

      … and competent enough to actually evaluate the output properly.

      Instead they spend a lot of money to push the fairy tale how anyone can now code without having a clue.

    • Avicenna@programming.dev
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      8 hours 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.

    • snugglesthefalse@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      7 hours ago

      Yeah on one hand the field of evolutionary algorithms is fascinating and I can see potential. But on the other hand it’s being run into the ground by people forcing it into everything. It’s also not human-readable so people might think they know what they’re getting but really don’t because of the black box nature of it.

  • ducktumn@lemmy.zip
    link
    fedilink
    arrow-up
    77
    arrow-down
    8
    ·
    edit-2
    2 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. nvm just tried zed with AI disabled

    • AI bad

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

      I wouldn’t say that vscode is awful. It’s not good though. Even while being the best.

      To add: jetbrains IDEs are awful

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

      Linus is just some guy with good programming skills and not an authority over anything tech.

      Isn’t he the authority that approves what gets into the kernel? Or used to be at least.

    • im_fine_sandy@nord.pub
      link
      fedilink
      English
      arrow-up
      15
      ·
      7 hours ago

      Linus is just some guy with good programming skills

      I somewhat agree. Most celebrated personalities in tech aren’t programming geniuses - they were in the right area at the right time and had some luck. Zuckerberg is a good example.

      I think kernel maintainers and rendering engines (browsers and others) have a higher base skill level. Like some web developers are clever and some are stupid, but I don’t think there are stupid kernel maintainers.

      The thing with Linus is that he’s been involved, and at the pointy end, for decades. You or I may not agree with him on every issue, but you can acknowledge that he has experience and he has connections.

      • ducktumn@lemmy.zip
        link
        fedilink
        arrow-up
        6
        arrow-down
        5
        ·
        7 hours ago

        I have massive respect for the guy. He did so much for the open source community. But for some reason everything he says is interpreted as inarguable truth by most tech guys.

        For example his opinions on AI are pure trash and bootlickery. Which is fine anyone can think anything. We just have to think for ourselves a little.

        • im_fine_sandy@nord.pub
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          2
          ·
          6 hours ago

          I agree that everyone needs to think for themselves, absolutely.

          However, I struggle with this and it’s kind of what I’m getting at:

          his opinions on AI are pure trash and bootlickery

          Firstly, you’ll be hard pressed to find someone who hate’s AI more than me. It literally keeps me awake at night. I hate the environmental impact. I hate the people it’s enriching. I hate the work it’s stealing. I don’t often use the word “hate” but it really does apply here.

          That said, I always try to defer to the opinions of people with more experience than me, and as regards kernel maintenance and Linus, that’s certainly true.

          You’ve probably heard of the Dunning-Kruger effect. I know a bit about code, a bit about FOSS, a bit about linux, AI, and communities. So it’s easy to underestimate the yawning chasm of experience and knowledge between myself and Linus.

          That doesn’t mean we have to blindly accept the opinions of others (I honestly haven’t accepted Linus’ opinion myself), but I’m aware of the profound discrepancy between my opinion and his and it concerns me.

          All that aside, is it possible to acknowledge that something is the correct course of action even if it’s not the ideal? I haven’t been following the Linus / AI thing, but as I understand it a project like that kinda has to allow AI bug reports because threat actors will certainly be using AI to find exploitable bugs.

    • tomjuggler@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      7 hours ago

      That information about text editors is out of date - we now have Zed. Just ignore the “AI integration” bs, it’s entirely optional

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

        Do they collect data though? This is important. If not I might give it a shot.

        And also when you don’t use AI, can you disable all AI UI features.

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

          Zed is totally open source, and the AI “features” are optional. When you set it up - at least when I did - it’s one checkbox to disable. I don’t remember about the telemetry you will have to have a look, I’m usually ok with that myself.

          I came from VSCode and haven’t found anything I miss. I especially don’t miss the poor performance of VSCode, Zed is extremely lightweight!

    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      6
      ·
      10 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.

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

        Embedded programmer here: C/C++ is not going away any time soon. Rust just isn’t ready yet (on microcontrollers anyway)

      • ducktumn@lemmy.zip
        link
        fedilink
        arrow-up
        13
        ·
        9 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
          3
          arrow-down
          6
          ·
          9 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.