Angular 2 By Example (+)

This book seem to be from an for me unknown publisher: Packt. It is written by two persons and have at least one proofreader.

My first impression of this book was good, but that however changed. The book requires you as the reader to have a computer with the book code checked out from Github and have it available as you are reading. There are references to the github code that are not in the book, so you need both to be able to follow. I accepted that, and sat with my laptop in my knee while I read.

After a while however I came to the conclusion that the structure of the book made it more or less impossible to use as a reference. On top of that I made the huge misstake of bying it from Amazon for the Kindle. At least the Kindle app is not made for such technical books. When you want to go back and forth it is annoyingly difficult with Kindle. I can however not blame the book authors for this.

I however discovered a lot of errors, spelling mistakes, and pure typos. After a while the book felt like it had been pushed out quickly and not proofread by anyone.

The structure of the example app the book used as example was also a bit messy in my opinion, and the book/examples did not show the optimal setup for developing. When transpiling (TypeScript –> JavaScript) there were tons of error messages, so many that the scrollback buffer of the terminal got full. In the end the examples did work, but all those error messages bothered me.

In the end I gave upp and went looking at

Angular 2 Development with TypeScript (++++)

I apparenlty did forget that all technical books should be purchased from Manning directly, not from Amazon (not sure if Amazon sells Manning books either), since when shopping at Manning you get the books in EPub, Kindle, and PDF formats. And after comparing EPub to PDF, PDF wins large since PDF seems flexible enough to handle both text and symbols, arrows, etc in a page anywhere on the page. For the EPub version of the book, most code examples hade been converted to images that when sized to fit the page got fuzzy. EPub apparently does not handle text and graphics in a flexible way on a page. Manning has also been briliant in handling the PDF format. It was not encrypted, and I was not sent a password by SMS :-). At the bottom of every page they have added “Licensed to Tommy Svensson”. That makes sure I don’t share the PDF with anyone :-).

Anyhow this book I really liked from the start, and I still like it! It has a much better structure of the book, it is usable as a reference, and the example code on github does transpile and run without any errors what so ever! At least so far. I still have a few chapters left to read, but I’m about to jump in and start coding a bit before I continue. The book explains differences in ES5, ES6, and TypeScript and shows example of the same code in all 3 variants early in the book. Otherwise it is only TypeScript that is used in the book.

This book is easy to read, the example code in the book (and the github code) is very clear and easy to read. They provide arrows to different code lines with text explaining that part of the code. Also in places where code lines are to long to fit on a page line, they clearly show that the next line is a wrap from the previous and is thus part of the same line. The authors really know and understand that they are teaching! This book has 2 authors and 10+ reviewers! There were some small misstakes in the start of the book in some code examples. I started reading the EPub version but then switched to PDF. I suspect that the image-ified code examples in the EPub version were done before the final reviews, and some code were updated without updating the image variants. I’m failing to find the code errors early in the book in the the EPub, in the PDF.

The book also provide a development setup where the transpiling from TypeScript into JavaScript is automatic so that you can just code in TypeScript, and run. This is very nice for development, but of course the code should be transpiled manually before release version.

The authors seem very experienced and seems to know what they are talking about. I did not get that impression with the first book.

I can really recommend this book. Note that if you are like me and wants to make annotations and highlights in the book, then you need a good PDF tool. On Mac for example, Preview is not good enough! This will cost you more than the book did even if you avoid Adobe! This is the only catch with PDF.