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.

top 50 comments

sorted by: hot top controversial new old
[–] 4 points 36 minutes ago (1 child)

Cloud computing is the biggest breach of privacy out there that we've adopted whole hearted.

  • source
  • hideshow 1 child comment
  • [–] 2 points 38 minutes ago

    Node.js TS is great

  • source
  • [–] 8 points 1 hour ago

    OOP dogma isn't just bad, it's actively harmful. OOP leads to unnecessary boilerplate. Any boilerplate that is not absolutely necessary is noise and bad. Full stop.

    Private (Getters/setters): Strictly not a necessity in any sense of the word.

    Short functions everywhere.

    Short files everywhere.

    I prefer to see the steps of execution that are actually happening in the real world on hardware. Not an ivory tower of code that happens to execute.

  • source
  • [–] 2 points 38 minutes ago

    PHP is not only for the web/short lived scripts

  • source
  • [–] 7 points 2 hours ago

    If you are getting paid for engineering software, your labour should be licenced in an appropriate jurisdiction, and you should be liable to losing said licence if you do shit job.

  • source
  • [–] 16 points 3 hours ago (5 children)

    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.

  • source
  • hideshow 5 child comments
  • [–] 5 points 2 hours ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 hour ago (1 child)

    This is my argument. Do init. Don't pull in literally everything else because you think you know better, like system logging.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 26 minutes ago

    Init needs to do system logging when you want to collect it from the daemons stdout, which is the logical place to collect it from. Havin apps handle their own log files is a bad time at best and dangerous at worst.

  • source
  • parent
  • [–] 10 points 3 hours ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 2 hours ago*

    APIs generally don’t need many alternatives, only implementations do. There’s no reason devs should be trying to provide init files in multiple formats. If the systemd team actually did something bad, then people could just make a different implementation of systemd without requiring a different format for init files. Arguing for more init systems is like saying we need more APIs to compete with both Wayland and X11, instead of just talking about implementations of those protocols.

  • source
  • parent
  • [–] 5 points 2 hours ago

    React is a plague. useState and all the other use hooks.

  • source
  • [–] 3 points 2 hours ago

    If there are spelling mistakes in your codebase, that’s a huge smell

  • source
  • [–] 0 points 1 hour ago (2 children)

    It's funny how both anti-AI and pro-AI folks think they're the one in the middle. But the anti-AI crowd is proclaiming that any use is the devil!, and one drop means the whole project is forever worthless, and ten minutes will make your brain dribble out your ears... while the pro-AI crowd just says it's probably fine. Not miraculous. Flawed and suspect. Local would be better. Basically would you please just relax about the chatbot, and condemn companies doing mass layoffs for any reason?

    When even Cory Doctorow is going 'LLMs have problems, but here's how I use them,' pack it in. This fight is over.

  • source
  • hideshow 2 child comments
  • [–] 3 points 1 hour ago (1 child)

    It sounds like you’re comparing the most reasonable views of the pro-AI crowd to the most reactionary views of the anti-AI crowd

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 52 seconds ago

    Because that's all the Fediverse contains.

    In this thread, there's people reposting "never slop" doodles, performing ingroup loyalty over thought-terminating cliches. All my efforts to engage with that have made clear they mean never use any AI for anything ever, and then they repeat their chants as empty signalling, or use one of their made-up slurs for anyone who's not virulently against all forms of spicy autocomplete.

    There's entire communities for that attitude. Entire instances. It's immediately the dominant tone in any discussion of companies using AI for literally anything. Even if the AI content was removed before a game launched, the fact it was there has indelibly stained the publisher's whole catalog, past and future.

    Meanwhile the opposition to that is just... would you relax, please? There's no "boosters" on this service. Nobody's snorting a line and raving about basilisks. Vanishingly few dinguses have sneered 'the future is now, old man!' and they find zero support. Even measured responses to shrill absolutes begin 'now I hate AI as much as the next person, buuut.'

    Pro-AI, on Lemmy, means having anything short of an absolute negative assertion, on questions like 'can generated images ever be art.' Everyone suddenly developed a crystal clear philosophy on the nature of beauty. Those philosophies don't agree, but the people do, which is... indicative. Especially when you discuss those claims seriously, and any illustrative counterexamples are treated as a personal attack.

    Recently someone repeated claims that LLMs cause instant cognitive impairment, and I pointed to the people behind the study begging people to stop saying that. Do you want to guess how that went? It wasn't a rational exchange of comparably reasonable positions... and the little numbers showed the crowd was not on my side. Or the researchers' side. They were perfectly happy with their tabloid narrative, thank you very much.

  • source
  • parent
  • [–] 37 points 7 hours ago* (5 children)

    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

  • source
  • hideshow 5 child comments
  • [–] 6 points 3 hours 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.

  • source
  • parent
  • [–] 6 points 5 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.

  • source
  • parent
  • load more comments (1 reply)
    [–] 12 points 6 hours ago (4 children)

    Functional is better than object orientated programming

  • source
  • hideshow 4 child comments
  • [–] 5 points 4 hours ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 hours ago

    Not Op but..

    OO languages have classes with inheritance based polymorphism. I don't see struts + methods as enough to qualify.

    Functional languages have functions which can take functions as arguments and function composition as first class features.

  • source
  • parent
  • load more comments (1 reply)
    load more comments
    view more: next ›