I’ve been slowly working on a new JavaScript book that covers many of the specifics behind how and why JavaScript libraries are designed they way that they are – titled Secrets of the JavaScript Ninja. I’m still working on the book – I have four chapters left to write – and am hoping to have it completed this year.

Incidentally Manning Publishing is running a special (today only!) offering the ebook version of Secrets of the JavaScript Ninja for 50% off the normal price, if you use the coupon code pop0901 . (Note: I’ve heard that it may also work for the ebook + paperback version of the book.)

A number of excerpts from the book can be found in the site archive. My Learning Advanced JavaScript interactive tutorial is also based upon the contents of the book.

Note: The book is not yet complete, nor has it gone through any proofreading or technical editing – there will be mistakes. Also, yes, I’m aware that the cover of the book has a samurai on it, not a ninja – I’m working with the publisher to rectify this.

I’ve also been asked if people should buy Pro JavaScript Techniques (my Apress book from 2006) or my upcoming one. I should note that the upcoming one is much more advanced than my previous one – covering much more complicated topics and more about cross-browser development. If you’re looking for a good introductory book to JavaScript and the DOM I strongly recommend Nicholas Zakas’ Professional JavaScript Developers book.