Why does TypeScript have be the answer to anything?
hanselman.com
Why does TypeScript have be the answer to anything?
1–10 of 82 posts
Re: Why does TypeScript have be the answer to anything?
#21. TypeScript is an answer to the poor state of JavaScript development today and an attempt to get more structure into it. There are other answers as well, and it can be discussed on properties of each of them, but they are competing in the same domain.
2. Since state of JavaScript is as it is, it is obvious that there is a lot of potential benefit in being a leader of the technology in that domain. Regarding that, it is kind of answer to forces that are trying to ensure domination in that domain for the future.
Re: Why does TypeScript have be the answer to anything?
#3Re: Why does TypeScript have be the answer to anything?
#4Re: Why does TypeScript have be the answer to anything?
#5Re: Why does TypeScript have be the answer to anything?
#6I have to build my entire project every time I want to update my client side code? That is an enormous tax to charge the developer just to add static typing to your client side code. I can't see this doing anything but slowing a team down.
A build step is already a reality for many people writing JS today.
Re: Why does TypeScript have be the answer to anything?
#7I have to build my entire project every time I want to update my client side code? That is an enormous tax to charge the developer just to add static typing to your client side code. I can't see this doing anything but slowing a team down.
Edit: I'm currently using Chirpy to compress and unify all my JavaScript, anyway. So this isn't even really a concern.
Re: Why does TypeScript have be the answer to anything?
#8I have to build my entire project every time I want to update my client side code? That is an enormous tax to charge the developer just to add static typing to your client side code. I can't see this doing anything but slowing a team down.
And you can use plovr to recompile on every reload (takes 5-10s) if you need these warnings in your workflow at every step.
Re: Why does TypeScript have be the answer to anything?
#9I have to build my entire project every time I want to update my client side code? That is an enormous tax to charge the developer just to add static typing to your client side code. I can't see this doing anything but slowing a team down.
Re: Why does TypeScript have be the answer to anything?
#10What is meant by this? As far as I know, the only way that you can use Dart in any browser currently is by compiling it to JS, and when you do that it most certainly does use native JS numbers. In fact, the type check function it creates for numbers contains this line:
if (!(typeof value === 'number')) {