Earlier quoted context omitted.
What's a "big" JavaScript library? How do you know how widely adopted your JavaScript library will be?
Regardless, it's difficult to think of any situation where a All _______ should use _______ is really justified.
JavaScript libraries should be written in TypeScript
11–20 of 285 posts
Re: JavaScript libraries should be written in TypeScript
#12I've recently started using Flow alongside Nuclide IDE (a Facebook-developed suite of Atom extensions), which allows me to easily see the type of a given variable. What's nice is how much types can be inferred from just a handle of type annotations. My editor can start pointing out potential bugs at the cost of relatively little effort on my part, and that's a good place to be.
How are you finding Nuclide? When I tried it a few months ago it seemed pretty slow and unstable, and eventually ended up consistently using all my CPU after a while. There wasn't a great deal of documentation/help setting it up available (true of Flow as well to a lesser extent), which was why I chose TS at the time, but am definitely interested in seeing how Flow is progressing.
Re: JavaScript libraries should be written in TypeScript
#13Javascript libraries should be written in Javascript. Worship the one true God!
Re: JavaScript libraries should be written in TypeScript
#14> Typed vs dynamic is a rather controversial topic, so I’m not trying to spark that discussion all over again.
Goes on to explain that typed is betterer...
The article doesn't really offer up any real arguments as to why you should specifically use TypeScript, but really just says typed is nice and everyone lints anyway (not true) so the step up to a type system really isn't that big of a deal (also not true.)
Not really sure what point the author is trying to make.
Re: JavaScript libraries should be written in TypeScript
#15And then new transpiler language appears, with "real" type system, not java-grade. And everyone stops using typescript, treating it as outdated technology.
Re: JavaScript libraries should be written in TypeScript
#16And then new transpiler language appears, with "real" type system, not java-grade. And everyone stops using typescript, treating it as outdated technology.
Re: JavaScript libraries should be written in TypeScript
#17Re: JavaScript libraries should be written in TypeScript
#18Re: JavaScript libraries should be written in TypeScript
#19Or at the very least, library documentation really needs to clearly specify the types of parameters and return values. I'm positively surprised when I come across a JavaScript API whose documentation actually specifies this very basic information. Coming from the static typing world, it's astounding...
Documentation in the web development world is usually very good with the introduction, getting you excited; but terrible when it comes to reference, the day-to-day type docs.
Re: JavaScript libraries should be written in TypeScript
#20Title just reinforces my belief that people have this feeling towards strongly typed languages like it's some kind of religious saviour and will try to preach it everywhere