Introduction
Thanks for downloading this book sample. I’ve tried to keep the sample interesting by giving you the first three chapters plus one of the closing chapters and I certainly hope this works. If you would like to buy this book, you can choose any price between currently a little over 8 USD and any amount you find suitable. And I mean this: Please choose what ever price you think this is worth and you can afford!
In any case I am very grateful for your support.
If you’re done reading the samples (or even the whole book), I would like to ask you for your honest feedback. The easiest way of doing that is simply write to me at feedback@thesinglepageapp.com. I am also currently working on better ways of sharing your feedback while the book progresses, so watch @singlepageapp on twitter, the google+ page or the facebook page or the web page for updates.
Thanks,
Jan
About the code samples
Having a lot of code samples in a book (especially in an eBook) is not unproblematic. Currently the book contains quite a lot of code and since I am publishing this with LeanPub, I don’t have a whole lot of control over the formatting. Still I think it is important to be able to read the book without having to peek at a different source every few lines. I would love to hear from you if this assumption is actually correct.
Nevertheless, you can find all the code examples in running form and as a zip file to download at code.thesinglepageapp.com. At the end of each chapter, I’ll provide a link to the full result of the chapters discussions.
If you are following the chapters and the associated code examples with a critical mind you will find that the code evolves quite naturally with some stupid mistakes built in in the first chapters. This is by design: First of all this book is a work in progress and so is the code. And as usual as when I’m developing code, I’m learning things on the way. And second all of these little “mistakes” I make on the way are mistakes you might make as well and so they give me a good place to explain how to do things better, although they sometimes seem to make the author look stupid.