tags: Practices, Tooling, JavaScript

B10759

https://www.packtpub.com/application-development/hands-typescript-c-and-net-core-developers

Written by Francesco Abbruzzese and published by Packt publishing, this book has the subtitle 'Transition from C# to TypeScript 3.1 and build applications with ASP.NET Core 2'. Although the content has a risk of going out of date quick, the core concepts and programming idioms and structures explored in this book will still be relevant.

The first few chapters give a pretty good in-depth introduction to TypeScript language and introduces such things as classes and interfaces which some JavaScript developers may not be familiar with, but C# developers certainly would. After covering topics such as complex types and generics, the author shows us how patterns like the module pattern can be used to better organise your code. There are chapters on advanced ES6 such as iterators, generators, decorators and metadata. Later chapters cover technology specific subjects such as WebPack, which can be used to modularise and minify the resulting JavaScript code for better management as well as it's integration with ASP.Net Core. Angular also gets its own chapters which is fine, but with the advance of other frameworks such as React and Vue, this section could find itself skimmed over. There is a chapter dedicated to building TypeScript libraries which also includes sections on testing with Jasmine and packaging for NPM.

Code Samples

By accessing the website, you can download all the chapter code samples which is great to get up and running quickly if you want to copy samples into your project and great also if you want to follow along with what is being discussed in the book chapter.

Book Website

If you register on the Packt website at www.packtpub.com, you get access to all the code samples as a download and can read the book in the browser. One of the things I like about the website is its dark mode which makes it much easier on the eyes when reading at night. Also, as this is very much a hands-on book for practical use, you can copy and paste code samples into your own projects with ease. If you find learning code is easier when watching somebody else do it, there are also YouTube videos for each chapter that covers the main elements of the chapter. These videos are good to watch however, they do not have any sound so don't expect anybody to explain what is going on.

Conclusion

Personally, it is not often I purchase a book, with the preference to find what I want when I want and use tools such as Pluralsight and Stack Overflow as well as Microsoft Docs. However sometimes it is good to go through a more structured approach like what you would reading a university textbook. So, this book is very good and well written using language that although technical does not fill the pages with superfluous words but instead gets right to the nitty gritty which is exactly what you need in these time strapped days. With the bonus of the website, this book and many others from Packt are definitely worth the time.

Happy coding.