How Typescript saved me hours of debugging webpack
1–8 of 8 posts
Re: How Typescript saved me hours of debugging webpack
#2Re: How Typescript saved me hours of debugging webpack
#3Re: How Typescript saved me hours of debugging webpack
#4I'm honestly at a loss as to why typescript is not the industry standard now. JavaScript is a mess, and I'm continually surprised to encounter anyone who prefers it.
JavaScript developers weren't aware of what adding static typing could bring them and there was so much other stuff happening. Also, because JavaScript grew substantially in these years, many new devs joined and they had enough to do with learning JS.
Then CoffeeScript and later ES2015 came.
Many statically typed languages are able to compile to JS: Scala, Nim, Rust, Kotlin, Clojoure, Dart, OCaml/Reason.
Facebook even tries to add typing directly into JavaScript with Flow, which can even work with comments, so you aren't forced to run it through a special compiler before bundling.
Re: How Typescript saved me hours of debugging webpack
#5I'm honestly at a loss as to why typescript is not the industry standard now. JavaScript is a mess, and I'm continually surprised to encounter anyone who prefers it.
Re: How Typescript saved me hours of debugging webpack
#6I'm honestly at a loss as to why typescript is not the industry standard now. JavaScript is a mess, and I'm continually surprised to encounter anyone who prefers it.
Re: How Typescript saved me hours of debugging webpack
#7I'm honestly at a loss as to why typescript is not the industry standard now. JavaScript is a mess, and I'm continually surprised to encounter anyone who prefers it.
It's a decent amount of cruft that you need to put in and it's not always smooth sailing.
TypeScript sometimes needs hinting and if you're doing it server-side. I once had to fix something in my node_modules because they were doing something wrong and TypeScript wouldn't compile unless I fixed that too.
I'm not saying that it's not worth it.
However, my team were severely turned off when we first started running with this.
Re: How Typescript saved me hours of debugging webpack
#8I'm honestly at a loss as to why typescript is not the industry standard now. JavaScript is a mess, and I'm continually surprised to encounter anyone who prefers it.
JavaScript is a mess, but the TypeScript benefits are a full "buy in". Like implicit or type inference only works when you use 'imports'. It's a decent amount of cruft that you need to put in and it's not always smooth sailing. TypeScript sometimes needs hinting and if you're doing it server-side. I once had to fix something in my node_modules because they were doing something wrong and TypeScript wouldn't compile un…