Re:JavaScript libraries should be written in TypeScript
by gopz on Wednesday March 16, 2016 @08:53AM
(#11296864)
Regardless, it's difficult to think of any situation where a All _______ should use _______ is really justified.
[ Parent
| on HN ]
Re:JavaScript libraries should be written in TypeScript
by amelius on Wednesday March 16, 2016 @08:57AM
(#11296888)
It works for "people" and "common sense".
Re:JavaScript libraries should be written in TypeScript
by talmand on Wednesday March 16, 2016 @10:14AM
(#11297444)
Depends on what you define common sense as and the context you are using it in.
Re:JavaScript libraries should be written in TypeScript
by alimbada on Wednesday March 16, 2016 @09:11AM
(#11296964)
All APIs need good documentation to be good APIs. If you're not providing good documentation with your API you're doing your users/consumers a disservice. Using a tool (TypeScript/Flow/whatever) to ease the pain of providing that documentation is in the best interests of an API developer since it reduces the friction of having to write the documentation by hand. Also, in this case, good documentation is not just documentation for the programmer that is consuming the API, but also the IDE within which the API is being consumed.
I'd say in this situation the title is justified.
Re:JavaScript libraries should be written in TypeScript
by kevingadd on Wednesday March 16, 2016 @09:15AM
(#11296980)
All libraries should use input validation to avoid RCE and other attacks
All software that handles sensitive data should use transport encryption & encryption at rest
All software that uses encryption should use thoroughly vetted professional crypto
All computer users should use backup software