This fairy tale started a long time ago. Often, you make a bet on the wrong horse in life, but, unfortunately, you cannot do anything about it. You...
For further actions, you may consider blocking this person and/or reporting abuse
I made the same design of moving all the projects to TypeScript when I joined, and I'm glad I made that decision. Although some of the developers still has a tendency to use
any
which makes TS no use 🙁And whats the problem with a small amount of any's in project?
We had big problem.
cannot desctructure X from undefined
But the typescript type system is not Ocaml, Haskell, or Rust like; it doesn't give you any 100% that you don't get any runtime errors or null pointer errors :d
Yes, it prevents a huge surface of errors, but not as much as it looks in theory.
agreed 💯
Good point, but It's not so true, the development is not about black and white and good or bad, you always have semitones - tradeoffs. For us, it was an appropriate decision to make a sharp migration and start to check type coverage to reduce the amount of any's iteratively
Sometimes our legacy prejudices blind us. For Javascripters, they rejected TypeScript from the start. That's why newfound issues were solved using various Javascript libraries none of which used the same dependencies or coding patterns. Alas NPM became a virtual cesspool as a result.
TypeScript has its roots in over 35 years of other languages such as C#, Java and even Pascal. Many Javascripters and large companies see the value now. Demand is only going to grow. Being a part of that need is a great place to be right now.
Thank you for your comment. But what do you mean by demand right here?
TypeScript is becoming very popular in large companies.
de facto standard :d
Thanks God it was not Dart. Canonical still doesn’t have strength to admit that they bet on the wrong horse…
Using Dart on a flutter project at work. So much disappointment, so much boilerplate, so much having to give up on doing things because the type system is too basic.
Interesting point. What do you mean by too basic?
Nowadays most people die of a sort of creeping common sense, and discover when it is too late that the only things one never regrets are one's mistakes :d
Thx, get some insights for my current project!
appreciate it
Great stuff! This will save us a lot of time for the future migration
Thank you mate
Great article, found some interesting ideas for me
My pleasure