Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've been working if JavaScript for a while and it has been brought to me that I should try to "migrate" to typescript.

The current project I'm working is a web app thing and there is one other front end developer.

I'm not really pro or against typed style programming, I thinnk it has very good use depending on the project, so here is my question: Should we migrate to typescript or is the current path that JS is taking more than enough to stick with pure javascript?

I know that at the end it's up yo me and the project. But I would like some opinions and experience on the subject.

What I have tried:

Read the typescript documentation
Checked the news for ES6 and what is on the TODO list for the next version
Posted
Updated 26-Nov-17 4:06am

Since Typescript is additive to javascript, using it is not obstructive to your development and you can use as little or as much as you like.

The typed nature helps a lot in refactoring and changing things in large projects.
 
Share this answer
 
Comments
Paulo Augusto Kunzel 26-Nov-17 14:07pm    
Have you worked/changed to with it in a project? What kind?
Are there any improvements or drawbacks worth mentioning?
Typescript is just a wrapper around Javascript. TS compiles down to Javascript. It exists to make it easier to write far more consistent code in Javascript. If having an easier time writing Javascript doesn't appeal to you, don't use Typescript.
 
Share this answer
 
Comments
Paulo Augusto Kunzel 26-Nov-17 14:08pm    
Have you worked/changed to with it in a project? What kind?
Are there any improvements or drawbacks worth mentioning?
Dave Kreskowiak 26-Nov-17 15:01pm    
I've only played with it, but it does make writing and understanding the code easier. The major problem with Javascript, IMHO, is the same as older BASIC, lack of type safety. This "freedom" instills bad coding habits and makes debugging harder. Typescript solves that problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900