• 0 Posts
  • 8 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle





  • Well it’s what you’d want but not what it does, for one, but for another: comparing scalars is very easy, comparing complex structures is not. To compare one array with another you’d need to iterate over each element, recursively.

    That JavaScript handles arrays as objects is also not bad, that’s just a language feature that you may like or not, not much can go wrong there. The reassignment of “this” or how JS handlesnumber comparison, yeah, that is infuriatingly bad


  • JavaScript sucks but I’ll give it this one

    Arrays are complex structures with multiple values. Just because one looks like the other doesn’t make them the same object. It’s like taking two new objects form the same class, they look the same but work independently from eachother. I can add a value to one and the other would be unaffected, they’d both still be the same class



  • Phoenixz@lemmy.catoProgrammer Humor@programming.devNode Modules
    link
    fedilink
    arrow-up
    12
    arrow-down
    3
    ·
    2 months ago

    Oh Hells no.

    JavaScript is NOT fine, it’s … I’m really trying to think of a word that will convey the shit that it is without triggering half the people on Lemmy into an aneurysm, but I can’t find it.

    JavaScript is by far the worst. I’ve been working with JavaScript for the past 6 days and I want to hang myself, it’d be a better fate than continuing