DEV Community

Discussion on: JavaScript is DEAD πŸ’€

technoglot profile image
Amelia Vieira Rosado 🐣✨ Author

Awesome! Thanks for pitching in @jenbutondevto ! 😁

That plus typescript gets it closer to the language I love.

Fun fact: a friend once told me that he heard a YouTuber say he finds TypeScript, I quote, "an obstacle". What do you think of that statement? Do you find TS an obstacle in any way? πŸ€”

jenbutondevto profile image

It depends! For small projects and small scripts, having strict typescript rules and having to compile and adjust your project settings can be a hindrance.

There are lots of boilerplate projects that have ts baked in and all set up to worth with jest and whichever framework you like.

I guess types aren’t a hindrance to me, since I’m very used to it coming from swift. If you aren’t used to it, sure it might be slower and feel like a chore writing types. You really start to feel the benefit when you’re working in bigger teams or projects. There’s a lot less you have to worry about since the static analysis takes care of that.

Thread Thread
technoglot profile image
Amelia Vieira Rosado 🐣✨ Author

Very good points raised here! πŸ‘ŒπŸ» Size and complexity of a project are key indeed. Not all tools are well-suited for all use cases.

I guess types aren’t a hindrance to me, since I’m very used to it coming from swift.

Makes sense πŸ˜… Types don't bother me either, after all, the first programming language I learned was Java (yeah, the one for masochists). Java's a tough one to please I must say 😞

Thanks so much for allowing me to pick your brains a little, hehe. 😁

manonbox profile image

When I first started using TS, I DID find it as an obstacle - because I was writing code that I knew would work, but TS was putting on the breaks with those squiggly red lines .

I realise now that it was my lack of understanding TS AND JS that was making life difficult for me. I had got used to bad practices that didn't play well with TS.

Fast forward 2 years and I can say TS has had a big part to play in making me a better developer. Also, whenever I go back to vanilla JS, it strikes me as crazy that I can do whatever I want, with no errors (until runtime)! Use a variable that hasn't been defined? Sure! Call a function with whatever params? Sure! Don't get any intellisense or autocompletes, and have to refer to the documentation every 5 mins? Sure!

Oh how I love TS <3