5
jlysd
4y

Fear of big, bad, scary javascript is ruining frontend.

Comments
  • 5
    If you take some time to get to know your monsters, they tend to turn out less monstruous and you can usually get them to work for you instead of keeping you back...
  • 3
    Switch to TypeScript. Way better
  • 1
    @yehaaw that's exactly my point. People are so scared of JS that they think TS is better, but it's not.
  • 2
    TypeScript can't be better as it can't do anything JavaScript can't do, but it can certainly ease the pain of the developers by adding convenience and certainty to the mix...
  • 6
    @jlysd Depends how you use TS. I would never switch back to JS. Not going to argue if it is better or not.
  • 3
    Whining without trying?
  • 3
    loose typing gang
  • 2
    I'm okay with "JavaScript is bad, deal with it. Don't try to run away from it with frameworks" but not of "JavaScript is so cool why would anyone want to modify it?!"
  • 4
    @Flygger
    I am a PHP dev - and no, knowing him personally didn't make C'thulhu any less monstrous...
    But you are right with the getting to work part.
  • 2
    @Oktokolo I've been doing PHP for over 20 years and though the beast has been tamed quite a bit, just knowing how the different parts work and what they _actually_ do helped a lot to not be scared of it — and not developing for things like WordPress help to see the beast rather than the monster it can become ;)
  • 2
    @Flygger
    Yes, the fear faded away as i became compatible with the monster. Not sure whether that was the right decision though.
    Anyway, it is too late now. I have to live on with the consequences of decisions made by my younger unexperienced self. At least it isn't Perl...
  • 4
    When I first tried JS, I was thinking: It’s so popular. It must be ok enough. But it turned out to be horrible in so many ways and I wonder how anyone can like it.

    Ok maybe I can explain it: People are assuming that JS is simple and good for prototyping because of it's lack of strict typing. And compared to most mainstream languages like c++, Java or C#, it is true. So people have developed this wrong casual connection between weak typing and simplicity.
    But there is so much more crap in JS that is fundamental to it and can’t even be fixed with TS, that I get back to "how can you like this shit?". It’s not just the weak typing. I could live with that in other languages.
    So... I don't know.
  • 3
    @theabbie oh I've tried.. I've been a js dev for a long time and I had several projects now in ts. Just miss it man.
  • 2
    @Lensflare I guess if you came up with the old web and used it a ton and got very used to it, you aren't bothered by JS.. maybe I'm becoming a dinosaur like my mom. I never wanted to learn cobol/assembly.
  • 2
    @jlysd it is ! By ANY metric.

    At least in TypeScript I can do refactoring and I'm notr afraid to change a variable name
Add Comment