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.

  • WappleFF27@feddit.online
    link
    fedilink
    English
    arrow-up
    150
    ·
    23 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.

      • db2@lemmy.world
        link
        fedilink
        arrow-up
        52
        ·
        23 days ago

        It’s also the opinion of people who don’t make a habit of drinking the special koolaid.

      • WappleFF27@feddit.online
        link
        fedilink
        English
        arrow-up
        21
        ·
        23 days ago

        It’s the most common internet opinion, but IRL people use it without a second thought, and will get annoyed if you call them out on it.

        EDIT: I don’t think this post was talking about laymen to begin with.

    • razen@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      22 days ago

      Fight me (Not literally) LLMs used to give garbage output but nowadays they are actually good and if given in the hands of right person, it can increase the productivity.

      You might say productivity increases but salary dosent but that is a mangement issue and does not make LLMs bad.

      • WappleFF27@feddit.online
        link
        fedilink
        English
        arrow-up
        3
        ·
        21 days ago

        Every issue I have with the tech has nothing to do with how “useful” it is.

        I’d even argue it’s only useful in the short term, and extremely harmful in the long term. Not just because of it’s fascist origins, but because developing it further is accelerating climate change unnecessarily when we direly need to do the opposite. Climate change will rapidly undo any of the good LLMs manage to accomplish.

      • AVincentInSpace@pawb.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        14 days ago

        “LLMs are non-deterministic and often create bugs that weren’t there before with no accountability, and are therefore different from compilers.”

        “Well, they used to do that a lot, but they hardly ever do it anymore. And besides, the bugs aren’t hard to spot.”

        “That doesn’t change what I – whatever. LLMs cause your skills to atrophy.”

        “Not if you use them smartly. Like I do. I’m proud to say I haven’t written a single line of code in over a year. In fact, I barely even read it anymore. But I make all the architectural decisions, and therefore, even though I haven’t even verified that the code does what the LLM says it does and blindly trust the unit tests it writes to catch any bugs, I understand the code perfectly and have not lost any skill. I could stop using it tomorrow if I wanted to. But why would I, when it’s so useful?”

        “Datacenters burn natural gas and pollute the environment! OpenAI and Anthropic both give their technology to the military to make self guided bombs! The number of suicides directly attributable to LLM interactions is climbing by the day and none of the LLM companies care!”

        “You really can’t accurately speak on whether LLMs are good or bad unless you’ve used one in the last six months.”

        “…”

        “They’re really useful now.”

      • psud@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        17 days ago

        No one’s salary went up when we obsoleted all the people calculating stuff. Actually I’m pretty sure salaries go down when work is automated

        They have to go down, it increases the supply of workers, reduces the bargaining strength of people seeking work

      • Venator@lemmy.nz
        link
        fedilink
        arrow-up
        2
        ·
        23 days ago

        Most likely LLMs. Most people only warn against intellisense for initially learning coding, or if they work in academia.

    • gastroglizzy@piefed.social
      link
      fedilink
      English
      arrow-up
      67
      ·
      23 days ago

      I don’t like working with them any more than you do, but they’re necessary to enforce read/write-level security. Without them, there’d be no differentiation between reading a variable and writing variable from an external class, which kinda defeats the point.

      From a development standpoint, they’re an extra hurdle to clear. From a security standpoint, they’re a necessary evil.

      • Ephera@lemmy.ml
        link
        fedilink
        arrow-up
        33
        ·
        23 days ago

        Moreso correctness, not security. In the end, your user is shooting themselves in their foot, if they mutate a variable that they shouldn’t, and by making the variable private and only offering a getter, we document that.

        Having said that, there’s also big differences between languages and paradigms, though.
        In object-oriented / garbage-collected languages, you often pass around references to an object into so many places that you need to code defensively versus your own codebase. That’s why getters/setters were taught religiously during the height of OOP.

        In other paradigms, you often just have one place that uses an object and then you can …simply not shoot yourself in the foot there. When you control both the definition and the access, you don’t need to protect yourself from yourself. In particular, you would probably think twice before mutating an object anyways.

        • klankin@piefed.ca
          link
          fedilink
          English
          arrow-up
          4
          ·
          23 days ago

          Damn, I was gonna disagree but you bring up some good points.

          I really need to get into functional programming.

          • Ephera@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            22 days ago

            Functional programming is definitely worth a look in this regard as well, but what really drove this home for me is Rust.

            Its ownership+borrowing concept is exactly that, it enforces that you’ve got one place where an object is managed and in particular mutating can only be done in at most one place.
            Obviously, there’s also ways to get out of that, in case you do want some memory managed centrally, but it just isn’t the default.

    • UnfortunateShort@lemmy.world
      link
      fedilink
      English
      arrow-up
      37
      ·
      23 days ago

      That’s why people invented properties / auto generated getter/setter - in at least 95% of cases they are just busywork.

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

        • Pomal@sh.itjust.works
          link
          fedilink
          arrow-up
          9
          ·
          23 days ago

          Not a slop fork, they wrote their own rust graphics compositor, 10/10 will shill until they go shit heel

          • UnfortunateShort@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            22 days ago

            It really is remarkably better than Code. Single-window, multi-repo, multi-worktree support? Not a problem. Want a closer look at the diff? Why stop there, you can maximize every single panel. The Git integration is also so much better, no extensions required. Lots more stuff is integrated, yet less setup is required and somehow it is still much faster than Code.

            You can really tell that a ton of thought went into this IDE

            • Pomal@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              22 days ago

              I’ve not even gone that deep with it, just writing code to keep my trash can purring along. It’s smoooth, responsive, everything is intuitive, and the language server support is 🤌

      • sudoer777@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 days ago

        I just tried out Zed and the way it does extensions and services is so awful from both a security and configurability standpoint I ended up immediately switching back to Helix. At least Gram is an option if you want one that’s GUI-first and it doesn’t automatically download random shit.

    • tomjuggler@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      23 days 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
        4
        ·
        23 days 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
          6
          ·
          23 days 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!

      • sudoer777@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        22 days ago

        Right now I use Helix and I’m trying to decide whether to switch to Zed. Because it almost looks like a better editor at this point, except its configuration is not as declarative as I’d like and its AI service uses a bunch of closed providers.

    • onlinepersona@programming.dev
      link
      fedilink
      arrow-up
      7
      ·
      23 days 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
        16
        ·
        23 days 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
          5
          ·
          23 days 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.

      • tomjuggler@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        23 days ago

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

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      23 days ago

      Zed sucks in many of the ways that modern editors suck.

      Autocompleting on characters that appear in code, and autocompleting in a way that overwrites the code you have already written are two incredibly stupid decisions that put a mark over any tool that adopts any one of them.

      But then, Zed almost working, but in a way that still sucks was enough to motivate me into setting my Emacs properly, in a way that doesn’t suck. So Zed gave me a good editor.

      • iusemybrain@sh.itjust.works
        link
        fedilink
        arrow-up
        3
        ·
        22 days ago

        The intention of C++ was to be C’s replacement by adding objects into the programming language while also maintaining the fast compilation and runtime that came with C. In the end it resulted in longer compilation and runtime times (from the millisecond scale to seconds scale), which made it generally unappealing for embedded systems.

        On a production code standpoint, if were comparing it to something like python, it is debatable, but there’s just a large learning curve associated with the language that could otherwise be avoided with a different OOP language. By trying to accomplish everything, it fails to implement everything well to compete with other languages.

      • IEatDaFeesh@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        22 days ago

        It’s painful to learn and set up. Looking at other people’s code is horrifying. I looked at a portion of Godot code and the amount of headers defined is actually retarded. A lot of the c++ function names are a remnant of not well thought out ideas. It’s also normal to have thousands of lines of code for a small portion of a small project?? The only way I see it being used is through vibe coding. You can’t tell me it’s easier to look at someone’s C++ than their Python project.

    • surewhynotlem@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      23 days 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.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      23 days 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

    • explodicle@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 days ago

      All authorities are just some guy with good programming skills. The giants on whose shoulders we stand were mostly rich guys who had the privilege of screwing around. I prefer the original definition of genius - not a quality that a person possesses, but an external spirit that comes and visits you.

    • SaharaMaleikuhm@feddit.org
      link
      fedilink
      arrow-up
      54
      ·
      23 days ago

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

      • sunbeam60@feddit.uk
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        20 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.

        • Ethan@programming.dev
          link
          fedilink
          English
          arrow-up
          14
          ·
          23 days ago

          Mozilla has totally lost their way. But using any chromium-based browser is still bowing down to Google’s near monopolistic control over web ‘standards’.

      • AgentRocket@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        23 days ago

        Well, there are forks of firefox like floorp, zen, waterfox, etc. but i guess they might still count as firefox, because they are forks and not built from the ground up, only using the gecko engine from firefox.

    • psud@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      17 days ago

      I do have to put up with an unsupported browser banner on government websites (which work perfectly)

  • Chloé 🥕@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    80
    ·
    23 days 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

    • save_the_humans@leminal.space
      link
      fedilink
      English
      arrow-up
      7
      ·
      23 days ago

      Do other editors let you save multiple sessions? Where you can open up any large project exactly where you left off, every tab, split, window, layout, and file already in your buffer for all of your projects or just the last one you were working on?

      If not, this feature has saved me a lot of set up time. It’s been a long time since I used anything else.

      • jtrek@startrek.website
        link
        fedilink
        arrow-up
        24
        ·
        23 days ago

        I feel like vscode and pycharm both do that out of the box?

        Before my big monitor broke I had pycharm split into four panes for the backend project and 3 for the frontend. It was nice.

    • MousePotatoDoesStuff@piefed.social
      link
      fedilink
      English
      arrow-up
      7
      ·
      23 days ago

      It’s pretty useful for text editing, but for any more serious code work I prefer to use an actual IDE.

      As far as software development, Vim seems to me like an excellent solution for an irrelevant problem (typing speed).

      Also, it’s great that it’s lightweight, but I bought the entire RAM and I’m going to use the entire RAM :P

    • hayvan@piefed.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      23 days ago

      It does but not because it’s vim or about any features really. It does for me personally only because I’m so used to it, most of the tasks like search, highlight, open diff, list compile errors, follow function calls etc work without mental load. Any editor will do that for you if you customize/memorize common hotkeys for your use case.

    • jjj@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      3
      ·
      23 days ago

      People (such as myself) make the argument that it does a better job because it’s focused more on reading code than writing it since you don’t start in the “write” mode like in most editors.

      I would say the choice of text editor shouldn’t make a difference in productivity so long as it doesn’t actively get in your way too often (looking at you, poorly implemented autopairs) and it supports the relevant LSP and debugging protocols.

    • unglueclass23@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      23 days ago

      It really doesn’t. The time you spend learning it and setting your config will never pay off and even after you do these things the time it saves you is negligible. I can use Zed and have 90% what Neovim offers me, it even has really good vim motions. Picking them up for productivity is a bad reason to do it.

      I really liked a talk by TJ titled (Neo)Vim Made Me a Better Software Developer. The reason he uses it - is because it was basically a playground where he could play around with his code and get instant feedback as he’s the “customer”.

      I can relate to this. Neovim is really extensible and minimal by default. This encourages 2 things:

      1. To live close to your code. You really get an understanding of all of the underlying tools related to your development environment and it gives you control to make it as minimal as you want it. There’s wayy less abstractions on top to simplify stuff for you. When I was a beginner using Webstorm or whatever I had no clue what a LSP was. Git? Just use built in GUI why bother learning commands? Terminal? Why would I need that? Ripgrep? Treesitter?
      2. To play around, customize, build stuff. There’s lots of API’s and you can change a lot in the editor. I made Neovim my main markdown editor with a few tweaks in my config. It’s minimal and I like it. Wayyy better than Obsidian.

      And at the end of the day it’s kinda fun. It makes writing code more more enjoyable as you always end up learning how to navigate your code base more efficiently. Like a game almost :)

    • OddMinus1@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      22 days ago

      I use VIM keybindings in intellij, and have done so for 10 years. There is no reason for me to be quicker or more productive than anyone without VIM. It’s just a preference.

  • SapphironZA@sh.itjust.works
    link
    fedilink
    arrow-up
    58
    ·
    23 days 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.

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      32
      ·
      23 days 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
      21
      ·
      edit-2
      23 days 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.

  • mlg@lemmy.world
    link
    fedilink
    English
    arrow-up
    39
    ·
    22 days ago

    The entire modern web tech stack should be thrown in a dumpster, ignited with gasoline, and blown up with a nuke for good measure.

  • abc@suppo.fi
    link
    fedilink
    arrow-up
    38
    ·
    23 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.

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

    • Quetzalcutlass@lemmy.world
      link
      fedilink
      English
      arrow-up
      40
      ·
      23 days 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.

      • kionay@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        23 days ago

        I can concede that in games programming (which I’m not a game dev so I often forget about) x, y, and z coordinates are a valid exception.

        I would disagree about w and h for width and height, typing them out feels like i for index

        I worry about the phrase, “you’ll immediately know what the variable is for at a glance even though it’s a single character”

        how often have you heard developers say that something is simple and it’s just because they wrote it? maybe it is obvious, but if it were more verbose it would be just as obvious but without any possibility of misunderstanding

        and even if it’s obvious now there’s no guarantee a future developer doesn’t pull that variable out and mutate it or do something else with it, and maybe they should change it at that point but the effort to have it verbosely named from the start is miniscule

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      23 days ago

      I do really disagree here. Name lengths should be proportional to the size of their scope.

      If your function has 1 line, your local variables should almost all have 1 letter.

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

    • Equinox1289@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      22 days ago

      I’ll only agree for advanced for loops and not the basic C style ones. Also if you are iterating over coords like XYZ or UV you can use those variables as single letters too.

  • randombullet@programming.dev
    link
    fedilink
    arrow-up
    26
    ·
    22 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.