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.

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

  • ThePuy@feddit.nl
    link
    fedilink
    arrow-up
    10
    ·
    2 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
    1
    ·
    edit-2
    45 minutes ago

    That putting more and more cutting edge technology in our daily computing, that can only be manufactured by a few multi-trilion-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.

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

  • ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    26 minutes 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.

  • melsaskca@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    31 minutes 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”.

  • abc@suppo.fi
    link
    fedilink
    arrow-up
    16
    arrow-down
    2
    ·
    edit-2
    3 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
      5
      ·
      2 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
      5
      arrow-down
      2
      ·
      2 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

    • Denys Nykula@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 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.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 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).

  • SapphironZA@sh.itjust.works
    link
    fedilink
    arrow-up
    34
    arrow-down
    12
    ·
    edit-2
    5 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
      1
      ·
      edit-2
      2 minutes 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 pays to be in the industry just shy of 20 years).

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      18
      arrow-down
      1
      ·
      edit-2
      4 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

    • Avicenna@programming.dev
      link
      fedilink
      arrow-up
      11
      ·
      edit-2
      5 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
      1
      arrow-down
      1
      ·
      4 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.

  • HexesofVexes@lemmy.world
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    4 hours ago

    It is not viable to expect 80s/90s level code optimisation in 10’s/20’s software.

    Yes you could in theory, but with deadlines and security requirements you realistically cannot!