Mastering TypeScript: Build enterprise-ready, modular web applications using TypeScript 4 and modern frameworks, 4th Edition
E**D
A good title that will prep you for real world TS projects
Chances are you already know what typescript is, if you don’t it’s a superset of JavaScript that adds additional type safety allowing you to find bugs at compile time rather than at runtime saving your blushes.Like most introductory books this title takes you from configuration and setup of the toolchain, through the language specific features and into real word scenarios such as using it with the major Javascript libs and frameworks such as Vue, React and of course Angular.We are now on major version 4 of TS so it would be difficult for any title to present the very basics differently to a lot of other titles out there. I liked the very early introduction of inferred typing as I have seen other titles avoid inference early for the purpose of hammering home types. Here you start of building CLI apps and using 3rd parties such as inquirer and making use of TS basics such as type aliases and enums as well as helping you to firm up code with optional chaining and nullish coalescing. The early sections alone will unlock the ability to read simple TS projects online and understand what is happening.The title goes on to provide ample coverage of all the major language features, depending on the real world projects you are exposed to you will bump into many if not most, but it’s entirely possible to write poor TS and type a lot of things as “any” and avoiding these bad code practices is visited and revisited repeatedly.The complexity jumps a little by chapters 4-9 as we move on to non-trivial subjects like generics. It does a fair job of explaining them, but it is possible those who have never encountered them will have to re-read the section and work on it slowly. This book section expands out to async await syntax and decorators then on to observable and RxJS. This takes us through intermediate and advanced concepts you will encounter in more complex TS projects in the real world.Personally I would have liked to see the introduction of TDD far earlier than chapter 10, but testing and mocking aren’t trivial subjects so I can see where the decision was made to introduce it later. Ideally I would have liked to see it testing ethics and practice bundled as part of each chapter but that’s a bias on my side.You then embark on a journey of using TS with the popular frameworks, all are quite basic intros with a sample app as the output. I would have loved to see Svelte here given the meteoric rise in popularity but I can understand why these chapters were limited to the big three. In the backend section we focus on Node and express, here I’d like to have seen NestJS given the default option is to use TS for the framework but the ubiquity of Express cannot be overlooked.In summary this would make for a good supplementary training and self study guide for my junior engineers who are transitioning from JS skills to learning and using TS. I would have no issue approving this as an expense request and therefore I would give it 4.5+ stars. An enjoyable enough, consistent read that won’t baby you too much nor leap to assumptions that make for a difficult ride for a learner. Worth your time if you’re looking to learn TS and move beyond basics.
R**A
Great book to learn from scratch or improve your Typescript knowledge
Either you're new to Typescript or looking to learn about the latest additions to this awesome language, this is the book for you.The book follows a structure from basics to advanced providing examples that you can use to code along as you progress through the book to consolidate your learning experience.From setting up your environment and the basics of Typescript to primitive types, best practices, object-oriented principles, generics, and asynchronous techniques such as callbacks, promises, and async-await, decorators, integration with Javascript, which may be useful if you're planning to migrate your javascript project to typescript, and other scenarios, and strict and no compiler options, this books provides you a solid base to help you learn and know how to apply the best practices and techniques to make your project type-safe with typescript.One nice surprise was a chapter dedicated to RxJs, where the author provides an explanation of what it is and why it's so important such as examples of some of the most used operators and the Chapter about TDD using Jest, where you can learn more about this technique to build quality from the ground up to your project using one of the best testing frameworks, Protractor and Selenium are also covered if you're looking for an end-to-end testing solution.The author then takes you to an intro to Angular, React, and Vue, building parts of a solution that later you'll be able to put together as a whole using on micro-front-end technique.There's a chapter also about Node and Express and AWS Serverless API.Definitely, a book to keep around and check every now and then when you find a case you might want to improve, especially when you find the `any` type in your codebase and you want to improve it.
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.
K**I
Terrible. Don't bother.
If you are a disciplined engineer who likes to code clean just don't bother. This book will spoil your ethics and you will cringe looking at the code examples and the utterly terrible illustration of concepts.Here is a super pragmatic sample from the book:type abc_ab_a<T> = T extends IAbc ? [number, string, boolean] : T extends IAb ? [number, string] : T extends IA ? [number] : never;a, b, c, abc, abc_ab_a, IA, IAb, IAbc. If you could understand and relate such "synthetic" illustration of a concept to a real world application you are a genius!
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!
ترست بايلوت
منذ يوم واحد
منذ 3 أسابيع