Mastering TypeScript - Fourth Edition: Build enterprise-ready, modular web applications using TypeScript 4 and modern frameworks
R**A
Fascinating Adaptation of Quirky Language
This book is so well written! Typescript is a fascinating adaptation of JavaScript, making the quirkiest computer language in the world s beautiful and normal way to program web pages.
A**S
Great book, highly recommended
I hadn’t had any experience with TypeScript before I bought this book. The book covers every aspect on TypeScript from basic to advance. Great examples and easy to understand. Highly recommended.
C**A
Excellent content and. Examples
One of the Best and useful books ever. I loved the whole testing chapter!
J**Y
A Good Methodical Intro to TypeScript, but Loses Focus in the 2nd Half
This is a good book - I've read several of the latest TS books (as of '22), and this is as good as any on the market right now. It walks through the essential language features methodically in detail, starting from the basic primitives and building up to classes, async features, etc. The writing is clear and approachable, and while it's not a book that will teach you how to program, any moderately experienced developer will have no problem understanding the writing, code, or most of what's covered.There's plenty to recommend this book, and I stand by my 4 star rating overall - that's the TL;DR. That said, I'll enumerate my complaints (just as a heads up):1) The author does a good job of including plenty of clear and simple code samples throughout the book, and explaining their structure and function in detail. However, he makes the same mistake so many programming books do (imho), which is that most of the code samples he uses during the first half of the book (which is where he actually explains the language itself) are basically pretty contrived. They're 'academic' in that they demonstrate what this feature or that keyword do, but not in a context of anything you'd ever actually write in a real world application. They're typical in that they make sense in a vacuum, but they don't do much to show you how you'd use the same features in your real-world code.2) Most of his explanations are quite clear and good overall, but he falls a bit short on the most complex aspects of TypeScript that he takes on - which are generics and decorators. It's not that his coverage of these features is bad, it's just that anyone who isn't already experienced with these ideas from other languages will probably still be confused after reading those chapters in this book.3) The React code is egregiously out of date for a book published in 2021. It's all component based, without even mentioning Hooks. The React chapter is little more than a minimal intro/overview tutorial, but it's out of date even for that purpose.4) He does implicitly expect the reader to have a solid foundation in JavaScript and web development as a prerequisite. He doesn't say it, but the writing makes a lot of assumptions. If you're brand new to web dev, I wouldn't recommend this as your first book!5) While the 1st half of the book focuses directly on the TypeScript language itself, the entire 2nd half of the book (ch. 9-16) totally switches gears – and is basically a more generic web development book which looks broadly (and quickly) at a collection of popular JS libraries. The topics are: Observables (RxJS), Testing (Jest), Angular, React, Vue, Express, AWS Serverless (Functions/SDK), and Micro frontends. These are all cool things that most any developer would be interested in, but none are covered with much depth or detail (drive-by training, if you will). The point, I think, is to give samples of TypeScript in various use cases. That's nice - but the author doesn't do much to focus on the TS aspects of it, either (i.e. very little to explain best-practices, gotchas, etc.). It's basically a generic web dev book that happens to use TypeScript, as of chapter 9.Last word: This is a good book, and if you want to learn TypeScript and have a basic foundation in web development already, this will serve you well. I just wish he'd spent the entire book focused on teaching TypeScript itself, because he could have gone a lot deeper into really living up to the "Mastering" book title than he does, in the end.
Trustpilot
1 month ago
1 month ago