| I recently did the exact same job as the author of this post. Migrating 15K LoC from JS to TS. The author of Vue.JS also migrated Vue completely to Typescript. At first I had major apprehension because of how much Microsoft generally enforces things on developers. It's well know that if you start using C# , your entire stack will generally be MS based...(SQL Server, Azure etc... ) But after I did the migration , I was blown away by how confident and how much flexibility I had when i was writing my code. Even if I have been writing code with Java / C# for nearly a decade , nothing has come close to Typescript in terms of productivity,flexibility and confidence. Having used Javascript since before Node.JS , I think the whole idea of having to "transpile" my code to something or to respect some "rules" define by a company with a reputation that wasn't really "all in open source" . But after using Typescript on multiples projects , you just can't go back , it's incredible how well it's scale without enforcing anything on the developers. Hopefully , one day bootcamps will include Typescript in their trainings to demonstrate how typings can solve maintainability issues... |
Same here.
Isn't this truly amazing?
Take a jangly language like JS, and add some typing for the compiler, which forces you to write cleaner code in addition to all the compiler advantages ... combined with some really cool features and bang a magical, pragmatic language.
Aside for some script things for which Python is still a blessing, I'd chose TS for everything else, at least to start.
It just has the right mix of flexibility and expressivity etc..
Though TS is an MS project, I suggest it really is quite different, it's 'open from the start' kind of thing, you can have a loot at TSC internals. The team seems to be fairly dynamic and responsive.
Typscript is my #1 favorite 'invention' of the last few years, I think it will be around for a while, and I hope to see many more JS API's 'properly documented' with the help of TS.