Learning Typescript
L**Y
Boy did I learn a lot - and had fun doing it
Definitely recommend this book especially if you're a javascript efficienado with no knowledge or very little of type script and even if you have a lot of knowledge its still a good book to have. The book was filled with great examples and an easy to follow guide on how to incorporate types into ur javascript repos and libraries. Great book!
K**R
A very complete book
I bought this book to enhance my knowledge about Typescript and I found what I wanted. 5/5Easy to understand and no useless explications.
S**V
Recommended for anyone want to learn Typescript
I have been using Typescript since 2017, but the book was really helpful to understand the littlet details about the Typescript.Using as Const narrows the types, this was an amazing trick which I learned from the book.Josh is a great teacher, book is recommended for anyone who wants to learn Typescript.
B**S
Very nice book
Very nice book
J**Y
The Best Book for JS Devs New to Static Types (but Offers Plenty for Pros, Too)
This is a great book overall, for both JS developer brand new to TypeScript, or even TS pros.I've read most of the TypeScript books currently on the market, and I believe this is the best one currently out (circa Fall, '22) for a strong JS developer who has never used a statically typed language before (Goldberg assumes you know JS/ES6 well - so if you don't, learn that first!). This book starts from the ground level with the core primitives, and explains the mechanics of TypeScript in a clear methodical way throughout the book. The first 2 chapters will put pros to sleep (skip 'em if that's you), but newbies will get the solid foundation they need to understand the mechanics of using static types at the simplest level.From there, the book quickly moves into more advanced territory - but everything continues to build on the things explained before. I think Goldberg did an excellent job teaching how the language itself works, with no assumptions about his readers' experience beyond strong command of JavaScript (ES6+).That said, this book offers plenty of value for pros as well. Each chapter includes solid best-practice tips, gotchas, and detailed explanations about aspects of TS I haven't read in any other book. Granted, you need to dig thru a lot of stuff you may already know to find those nuggets - but just read it as a refresher of all the basics while you hunt for those little golden details.I should call out the last chapter in particular, for pros - as Goldberg goes over some of the most advanced aspects of the language (conditional types, mapped types, template literal types, etc.). If pros are asleep for the first few chapters, newbies be warned: the last couple chapters may make your brain hurt (and don't worry, you're not alone).Unfortunately, I do have a few major complaints - which prevent me from giving this book a full 5 stars.1) There are too many sloppy technical errors to ignore (mostly in the code examples). A good developer should spot most of them - but the technical editor absolutely should have, too. I expect much better from O'Reilly, and they missed the mark this time.2) Across the board the code examples are just too contrived and minimal (you could call them 'academic'). This isn't unusual for a programming language book - but what this book really lacks is almost any code examples that relate to a real-world use case (i.e. code that builds towards a working demo app or larger project context).3) As with #2, overall I think this book is simply too short. At 271 pages it covers almost everything it takes on "well enough" – but Goldberg should have added another 100+ pages to offer more examples and context in almost every chapter. It just moves too fast, without going as far/deep as it could have. I'm not saying it's skimpy or not worth the price - I just wish he'd added more.Final word: This is the best book I've read to learn TypeScript (as the title suggests) for any mid-level+ JS developer who is brand new to a statically typed language. It also offers plenty of great tips and tricks for pros along the way. Sadly, it's a little too short and sloppy to get the full 5 stars - but if you know that going in, you won't be disappointed!
TrustPilot
1 周前
2 个月前