Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)SN
Posts
0
Comments
915
Joined
2 yr. ago

  • I mean you're coming across like more of an old man than I am and that's saying a lot more than you know. For the first 2 years people shit talked jQuery I didn't agree with them. And then I got the opportunity to work without it and it seriously took like 3 days to completely change my mind. And all my pages were I believe about 100KB lighter.

    jQuery is trash. And that doesn't mean it wasn't a great tool for its time. It's truly obsolete now though. If you hate the native JavaScript stuff so much.. I dunno maybe go work with Java or something?

  • What's the difference

    Your code reads like it's from 1992 mainly, which makes sense I guess, given that you still find jQuery better than modern vanilla js. jQuery was created as a way to account for browser support challenges but is now obsolete. Anyhow, if I read "getElementById" in recent js code I would assume something was weird about that code. It's old hat and there is rarely a reason to use it.

    What is the right way is context dependent

    Precisely my point. Which is why I think it's opinionated in a bad way to arbitrarily pick one of them as the defacto. I often had trouble with jQuery's .hide() method because while it felt natural to use it, it often conflicted with what actually needed to happen for good UX.

    What you're missing is that the hidden class can contain anything you want. Animations or whatever else. In other words, the idea that there is a "right" or "most common" way to hide an element is flawed at its core.

  • That's actually a great example of the shortcomings of jQuery. There are multiple ways to hide an element yet they standardized on one that often wouldn't work.

    Also you're using an ancient method getElementById... I think visuals should still be controlled with css. So what is the right way to do that in modern js? document.querySelector('.some-name').classList.add('hidden') with that class defined in the css, with whatever makes sense, including maybe a css transition.

  • Confidently incorrect I see. How many people died from tomatoes / peppers since written history began? I'm guessing approximately zero.

    "Theoretically, one could eat enough really hot chiles to kill you," he says. "A research study in 1980 calculated that three pounds of extreme chilies in powder form — of something like the Bhut Jolokia — eaten all at once could kill a 150-pound person."

    So yeah probably the same number of people who died of a weed overdose. Another thing that is technically possible.

  • Not sure what any of this has to do with the fact that some people would prefer not to see this shithead's face. He's probably wrong about most things but that's not really what this meme is about. This meme is about whether we want to see his face constantly or not. Many would prefer not to see it.

    What this meme is not about? Saying Hitler is wrong because he's Hitler...