This post is by Noel Rappin
from Rails Test Prescriptions Blog
Click here to view on the original site: Original Post
I have a new book, Master Space and Time With JavaSript. You can buy it.
Here’s the secret origin.
This all started over a year ago. Rails Test Prescriptions had been complete for a few months, and I was getting a little antsy to take on a new project.
But what? I wanted it to be a project where I would learn something, and I wanted it to be something where I had a particular perspective to offer.
Which is what I set about to write. My original proposal for this book may well be one of the best pages of text I’ve ever written.
And yadda, yadda, yadda, here we are.
And I was off…
Here’s what you get in the books.
Book 1 is largely concerned with a particular simple-seeming request: add a show/hide toggle link to each trip on the home page. Although this is simple, it actually winds up touching a fair amount of jQuery — using selectors to find elements, binding events, and manipulating element pieces.
Then we go back with two more chapters that go more in-depth on first Jasmine, then jQuery. In these chapters, we don’t add new features as much as describe the library features that supported what we did and explore related functionality.
And that’s Book 1. It’s available for the low, low price of zero dollars and zero cents. Worth every penny.
Book 2 is mostly about apply and extend. The first chapter is about building up an widget that combines an autocomplete text input with a list of currently chosen items. Test-first, of course. The we throw some Ajax in the mix, extending our already gold-plated toggler with the ability to get data from a server. This also gives us an excuse to talk about Jasmine spies. Finally, we build up a rating widget, with the clickable stars and a histogram and stuff, which lets us talk about JSON and Mustache. There’s also a small, slightly out of date bit on the Chrome developer tools. I’ll catch up on that at some point.
Book 2 is a mere $7.
Or you can get Books 1 & 2, Plus books 3 & 4 when they come out for $15. That $15 is a temporary price, and will go up when Book 3 gets closer to completion.
Book 3 is going to be about Backbone. I know the structure of most of it — first, we’ll recreate the front page using a Backbone structure. Next, we’ll build a buy page that allows you to make several calculations about differing trip purchase options on the client. Not sure about the last part, it will definitely include communicating back to the server, probably something else.
Book 3 is going to start appearing on the site in a couple of weeks, and will probably be draft complete by the end of September.
Book 4 will cover Ember.js. I’m not sure yet what we’ll build, though I want it to be a new part of the site, and not a recreation of the same things we do in Backbone. I’m hoping that Book 4 will be out by the end of 2012.
The cover, by the way, is my own design, and I like it considerably more than many of the other things I’ve designed. (I’m also pretty happy with the PDF layout…) I think the cover particularly works well at thumbnail size, so you can see the difference between the individual books easily.
That’s the story. Hope you like it. Buy it!, or tell all your friends (Twitter hashtag