Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by foobarian on Tuesday March 02, 2021 @01:33PM
(#26318648)
The issue that broke the camel's back for me was when I saw "cstomerName is not defined" in production. I just could not accept that it is OK to live with tools that let that happen.
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by elwell on Tuesday March 02, 2021 @02:22PM
(#26319242)
> broke the camel's back for me was when I saw "cstomerName
Truly the camelcase's back...
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by tvphan on Tuesday March 02, 2021 @04:21PM
(#26320948)
Did you go back to using JS?
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by boredpandas777 on Tuesday March 02, 2021 @01:27PM
(#26318576)
It takes a lot of mental and emotional capital in the creative process to produce something that is truly wonderful. Microsoft is systemically incapable of approaching creative perfection. Very few are.
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by mdoms on Tuesday March 02, 2021 @01:49PM
(#26318857)
This is extremely unfair and rude. The TS language designer and lead developer is Anders Hejlsberg, who is also the chief architect of C# and Delphi. C# has been tremendously successful and, in my opinion, is truly wonderful as a general purpose language.
In the case of Typescript the team were working under very difficult constraints - the language must maintain strict compatibility with Javascript, and the output must be executable by a web browser that has never even heard of the language.
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by hc-taway on Tuesday March 02, 2021 @03:17PM
(#26320020)
That the output is (or can be, with the right settings, anyway) very reasonable looking JS that would be easy to navigate and work on for anyone who'd been working on the same project in TS is a huge selling point. It's a nearly-instant, high-quality escape hatch if you decide you hate TypeScript, even if you're deeply into your project and have a ton of TS code already written. It's why comparisons to things like CoffeeScript don't hold up well, and (part of) why it's easier to sell to technical management than something like PureScript. Switching from TS to JS is very low-cost.
It's not just that the output is well-formed and sensible JS, it's that it's structured so similarly to the TS. With a recent EcmaScript version as your output, it's practically just the TypeScript with the type-related keywords & blocks stripped out.
As much as it could provide more and better features by breaking that guarantee, I think it's a brilliant decision & guideline, at least until WebAssembly is far more mature and the space starts to open up.
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by Kinrany on Tuesday March 02, 2021 @05:08PM
(#26321690)
It could provide a separate but official and supported parsing library. Going back to JS would not be a problem.
Re:How an Anti-TypeScript “JavaScript developer” like me bec...
by boredpandas777 on Wednesday March 03, 2021 @01:09AM
(#26325321)
ClojureScript is a far better designed language IMO. It's all relative to one's opinion, isn't it?
Typescript feels like every one of its features has some catch, and it's very irritating.