4 ms·
What is the most effective way to get into TypeScript for programmer with pretty solid Java background? Are there any canonical books, educational OSS projects
by vick18 8y ago
What is the most effective way to get into TypeScript for programmer with pretty solid Java background? Are there any canonical books, educational OSS projects or perhaps another references?
Thanks in advance!
- chaostheory 8y agoThe main documentation is a good place to start. Really all you need is that and Visual Code https://code.visualstudio.com/ https://code.visualstudio.com/ and you should be good to go.
- hamandcheese 8y agoAssuming you know JS already, TypeScript is quite easy, IMO, and the integration with VSCode is really nice. Just open up a .ts file and let the compiler teach you.
- pimterry 8y agoTypeScript's own docs are pretty friendly and in-depth for both reference or getting started: https://www.typescriptlang.org/docs/home.html https://www.typescriptlang.org/docs/home.html Alternatively, Basarat's guide is excellent, and works well as an intro followed by a detailed guide that you can work through step by step: https://basarat.gitbooks.io/typescript/docs/getting-started.html https://basarat.gitbooks.io/typescript/docs/getting-started....
- trampi 8y agoEx Java Developer Here, settled to full time Typescript now. For me it was the main documentation. Typescript will feel similar.
- mason55 8y agoStart with a project in vanilla JavaScript (try to write your code in an idiomatic JavaScript style). Keep building on it until it gets difficult to manage, then go add TypeScript to it. If you're not a JavaScript developer then that exercise will help you understand what a typical JavaScript project look like and where TypeScript adds value. I think that, as a Java dev, if you just start by writing TypeScript you're liable to write code that looks a lot like Java. Doing it this way helps you see TypeScript as "JavaScript with Types" instead of "Java in the browser"
- mercer 8y agoI'll second this approach provided you have some 'downtime' to work it all out. Things are much better now than when I started with TS, but it can still be a lot to take on all at once. Using TS from the start probably affects how you write your code, and it's definitely easier and less daunting to be faces with a ton of 'problems to fix'. But learning how to add TS to an existing project is a valuable skill to have.
- Shorn 8y agoDo try to remember that the Javascript build tooling mess is not Typescript's fault. If you just want to play with and learn Typescript, don't try to figure out the "right" way to build your project - just do whatever works for you while you're learning.