Update (2010-02-25): This contest is now closed.
Last year, Yahoo! engineer and all-around JavaScript badass Nicholas Zakas asked if I was interested in writing a chapter for a new book on JavaScript performance that he was working on. I agreed, and that book, High Performance JavaScript, is now available for preorder at Amazon and other fine book retailers.
In addition to the wide-ranging content by Nicholas and a chapter on string and regular expression performance by yours truly, chapters were also contributed by an awesome lineup of JavaScript performance gurus: Ross Harmes, Julien Lecomte, Stoyan Stefanov, and Matt Sweeney. This book is unique in its laser-focus on optimizing the performance of your JavaScript applications, and covers many advanced topics in the process. The chapter on strings and regular expressions provides what I think is easily the most in-depth coverage of cross-browser JavaScript regex performance currently available.
Here's the list of chapters:
- Loading and Execution
- Data Access
- DOM Scripting (Stoyan Stefanov)
- Algorithms and Flow Control
- Strings and Regular Expressions (Steven Levithan)
- Responsive Interfaces
- Ajax (Ross Harmes)
- Programming Practices
- Build and Deployment (Julien Lecomte)
- Tools (Matt Sweeney)
To celebrate the completion of this book, I'm giving away three copies. O'Reilly Media increased the offer to five books! All you need to do is comment on this post by February 24th, and I'll pick five people to send a copy to as soon as it's released (Amazon says March 15th). If you prefer, I'd be happy to send you a copy of Regular Expressions Cookbook instead (please note which book you want in your comment). Four winners will be chosen at random from the pool of unique commenters (I'll be tracking IPs), and the fifth based on the reason given for why you want a copy.
Make sure to include your email address in the comment form, since I'll need it to contact you if you're selected (your email address won't be used for any other purpose). Good luck, and congratulations to Nicholas Zakas and all the other authors on completing a fantastic new book!
Edit (2010-02-05): My blog has been offline more often than not for the first two days after posting this, and many people have reported that they were unable to post a comment. I apologize for the screw-up—my blog is now on a different server, and the problems should be resolved. Please try again!
Edit (2010-02-08): O'Reilly Media kindly offered to pick up the tab for this giveaway, and increased the winnings to five books!
Edit (2010-02-09): Nicholas Zakas posted more information about High Performance JavaScript on his blog: Announcing High Performance JavaScript.
Edit (2010-02-25): This contest is now closed. Winners will be announced here shortly.
Edit (2010-03-03): Following are the winners of this giveaway (the first four were chosen randomly):
No. 5 Adam Crabtree, who wants to review the book and share it with members of the DallasJS Meetup Group, wins the nonrandom drawing for the best reason to win a copy. Runners up for this selection were Yoav, who promised to donate the book to a high school library after he's done with it; Nick Carter, who threatened me with his wrath if he doesn't win (I'll have to endure); Paul Irish, who kindly offered to have my last name corrected (to that of a sea monster) in exchange for winning; Alexei, a technical editor of a couple of Nicholas Zakas's previous books who'd like to know how many errors this one contains; and Marcel Korpel, who wants to improve his users' health by reducing the "headaches, general stress and insomnia" they suffer while waiting on his websites. š
The winners have been informed by email about how to collect their prize. Thanks to everyone for playing!
What ? Accelerating our JS code ? But… you want MSIE back ??????? (mwhahaha, this is a stupid comment)
yeah, count me in.
Congratulations to the authors. Looking forward to learn many new things by reading this book.
Have never won a lottery but I really want that book.
I’d love a copy of the book. I’d also love it if you posted more on this blog. I got a ruch of excitement when I saw this appear in my Google Reader, and all you have to offer is free stuff, how disappointing š
<3 JavaScript
I’d love to get this book for free – I promise to donate it to a high school library when I’m done with it
Having recently moved I can provide an excellent home for either of these fine O’Reilly titles; a dry dust-free environment in which a book can enjoy a long and fulfilling life full of owner love and appreciation.
I ♥
print
Looks like a cool book. Count me in š
Rock on. I’ve enjoyed your writing thus far, can’t wait to get if a read. I’ll pick it up even if luck passes me by. Keep up with the good work.
Iām all in for the Regular Expressions Cookbook š
My girlfriend thinks I’m nuts when she lies in bed reading a romance novel and I’m reading a new programming book, I can’t help it, my thirst for knowledge is unstoppable… gimme gimme š
This one surely looks good. Count me in on this lottery !
Congratulations.
Both of these books are some of the very few books I actually want to own. Your regex-fu is indeed more powerful than my own.
eBook is the only format I want. iPad compatible ideally š
Any clue if either of these books is going to be available in iBooks?
Congrats on finishing this book.
I am interested in the high performance javascript book. O’reilly books are my bread and butter in the programming world. This book would be a fantastic addition to that collection.
Thanks!
Sweet, count me in for HPJ.
Excellent, looks like a great title, looking forward to picking it up. And hey, a free copy would be even better, thanks. š
Yet another O’Reilly book I definitely want to own.
I’d love to improve my Javascript skills; so I’m in for HPJ.
Sounds like a great book, will make a great complement to Javascript; the Definitive Guide. Looking forward to reading the book. If selected I prefer the High Performance Javascript book either way I plan on adding this book to my library. Thanks
Steve
Would love a copy of High Performance JavaScript. Congrats on completion of the book.
Many congratulations. Javascript is becoming a language which every webdeveloper
needs to master. Please count me in for the javascript book.
@lennym, thanks. š I know, I know, I’ve been neglecting my blog for too long…
@Thomas Aylott, I might be able to get a PDF eBook to people, if that’s what they want. I don’t know what O’Reilly’s plans are for iBooks, but they’re currently selling some of their books for Kindle.
And thanks, everyone else, for the congrats and kind words!
Would love to win a copy of ‘High Performance JavaScript’. Well, I wouldn’t mind the ‘Regular Expressions Cookbook’ either, but I have more need in improving my knowledge about JavaScript performance at the moment.
I’m in !
Hopefully i’ll be able to inject inline asm into my templates !
If random algorithm choice my, definitely i want “Regular Expressions Cookbook”.
Regards.
Look forward to this book. I really hope there’s a chapter outlining the performance benefits of using alert().
Sounds like a great book, will make a great complement to Javascript; the Good Parts. Looking forward to reading the book. If selected I prefer the High Performance Javascript book either way I plan on adding this book to my library. Thanks.
I look forward to reading your new book. Its always good to see how you can improve on an the cookbook. I have used it in a number of my classes. Its very good resource to support the concepts of just what javascript can accomplish.
i want one! weee!
The books sounds awesome. I hope it’s a success! š
Got a copy of the Regex Cookbook in December — nice tome! looking forward to HPJ, as well.
Time to pimp our JavaScript!
I would love a copy of your book when it comes out. I’ve read Crockford’s “Javascript: The Good Parts” and Souders’ “High Performance Websites,” and this sounds like the perfect complement to the knowledge contained therein.
Congratulations on completing your book!
Woo! JavaScript FTW!
Congratulations š
I want a copy for our office so I can convince them that books are worthwhile after all!
Well, I think that your book would be a great read based on the table of content. However, you only mentioned amazon, that may limit it’s spread.
Don’t have a creative/unique comment, so, I’m hoping for a chance at that random drawing š Btw, HPJS!
I look forward to improving my Javascript skills.
Being a full time web developer and with more of my work moving into web applications I would love a (signed?) copy of ‘High performance Javascript’.
Nothing better for a commute than a good book in hand to get excited about work for the day.
I’ll definitely be buying it but if I win it that’s even better…
JavaScript is easily the most enjoyable language that I work with. Back before the turn of the millennium, I started working with JavaScript hard core; doing AJAX long before the term was coined and realizing just how much easier my life was now that IE5 had XHR (the last time I ever said I loved Explorer).
Getting some high performance techniques will definitely be helpful.
And I’m of Dutch descent so, you know, a free book is always a good thing. If you have one on collecting coffee spoons or grooming corgies for a day at Wimbledon, I’d take one of those too as a matter of principal. š
Fingers crossed
I’m always looking for solid publications which allow me to chastise my colleagues for their inefficient JavaScript.
This will make a nice addition to my burgeoning JavaScript book collection; currently at one title.
sweet, count me in for the High Performance Javascript, two of my favorite topics
Hope to read this book soon!
š
Hey. Is it valid for Brazil? š
i’d like to have this HPJ book š
That’s quite a tempting offer. I’m creating a “web-2.0-ey” portal framework in JS at work right now and a tome on performance tuning would be most helpful. š
Thanks for the great job on javascript.