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
    0
    ·
    17 days 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.

    • Bazoogle@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      16 days ago

      Bitlocker enabling by default without user input is horrible.

      I disagree

      Hosting the keys online is also horrible.

      I agree

      It shouldn’t require a loophole to use Windows without a Microsoft account. Cloud hosting the bitlocker key does remove a lot of the security benefit in the first place. But I also recognize if you’re going to enable it by default, you have to automatically store it somewhere since most people will not save it themselves. But Microsoft should not be able to access the keys either, they should be fully encrypted without the users password.

  • ducktumn@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    17 days 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

  • abc@suppo.fi
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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.

  • BilboBargains@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    17 days ago

    About ten years ago I said that aircraft carriers are becoming increasingly irrelevant as missile and drone technology proliferates and develop.

      • teolan@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        6 days ago

        I’m not fully sure, but it looks very much the type of image that would be AI generated. On the bottom right the people look like they have faces in the back.

        No signature (might have been cropped), but generally Artists sign their art. The poster has a slop profile picture, and this is a very low-effort post.

        • The Ramen Dutchman@ttrpg.network
          link
          fedilink
          arrow-up
          0
          ·
          5 days ago

          I thought the image looked quickly-drawn, which is understandable for such a Wally-sized picture, but now that you mention the backwards faces in the bottom-right… And I should be on the lookout for signatures, indeed. That’s a good tip, thanks!

          • teolan@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            5 days ago

            Generally one thing that gives AI slop away is that it looks from first look to be high-effort, but the main content itself (here the meme text), is extremely low-effort.

            Since this is a repost of a repost, and I remember seeing this image in the past I did a bit more digging, Google reverse image search cannot find an original source, all all images found date from after 2024, so GenAI images were there.

            If this was from a real artist I’d expect to be able to find some original source and not just Reddit/Instagram posts from clickfarms with it.

  • WappleFF27@feddit.online
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    Using LLMs are not the same as using intellisense or compilers and there are a myriad number of reasons not to use it that could fill an entire book and I will look down on any company or freelance developer that uses it.

    Yes I’ll fight Linus over this and yes I’ll be right.

  • philipp_@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    17 days 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
      0
      ·
      17 days 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.

  • jonathan7luke@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    Care to elaborate on this? Not saying you’re wrong necessarily, that’s just a pretty bold claim and I’m curious why.

    • danhab99@programming.devOP
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      React works by maintaining a virtual representation of the DOM. When you dispatch state changes into the virtual DOM react can determine which components depend on the change and which side useEffects run.

      My gripe is that YouTube tutorials teach that the useState is the equivalent of a variable. This encourages average developers to problem solve solutions that end up using React’s Virtual DOM for business logic. The YouTube tutorials have react devs planting 100s of useStates - some of which don’t directly induce a visible-on-screen rerender - and then ⅒ as many useEffects to bind these states together. This means that for the Virtual DOM to come to the conclusion as to what html elements need to be changed and how it has already mutated 20-50-100s of times and the CTO tells me the react app is slow and they’re mad.

      If 2 states have the opportunity to mutate each other back and forth then the truth is that you have 2 perspectives of the same state. And React gives you solutions for that - proper solutions - the useReducer hook is for defining these complex state mutations and the Context API for communicating that state to any component.

      And this has me quintuple pissed off because these same tutorial grade react devs install REDUX as compulsively as a pack-a-day smoker (that’s #3). They use Redux to file variables in JavaScript memory (that’s #4) like it’s a global variable and rarely if ever use it for the complex state mutations they need instead I’ve seen react devs write components pull state out of redux into a component just so it can mount useEffect and process the state and dispatch the result back into redux. Let’s not even bring up how the react-redux binding library literally uses the React Context API (that’s #5).

  • kionay@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    17 days 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

      • KubeRoot@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        17 days ago

        There’s niche WebKit browsers too, like Epiphany. Also Ladybird in development, but that went full AI slop AFAIK.

      • sunbeam60@feddit.uk
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        14 days ago

        You know what, I’ve been a Firefox user since the days of beta Phoenix. I’ve expressed your view for years now - Firefox was great, but held back by a commercial org that wanted fancy SF offices, fancy SF compensation etc.

        But I tried out Helium a little while ago and in truth, I’m not sure Firefox is all that good these days. Helium is basically ungoogled-chromium + extension support + super lean UI.

        The upside is that you no longer have to contend with sites that have given up on Firefox testing. The downside is manifest v3. But all in all, I find it a better browser. Firefox is so busy telling its story, and finding revenue, that it just seems to have left behind product market fit.

    • SaharaMaleikuhm@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      17 days ago

      If a browser does not support unlock origin it is worthless. So Firefox wins by all opponents willfully exiting the race