or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $9.44 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Secrets of the JavaScript Ninja [Paperback]

John Resig , Bear Bibeault
4.8 out of 5 stars  See all reviews (23 customer reviews)

List Price: $39.99
Price: $22.31 & FREE Shipping on orders over $25. Details
You Save: $17.68 (44%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Wednesday, May 29? Choose One-Day Shipping at checkout. Details
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

December 28, 2012

Summary

Secrets of the Javascript Ninja takes you on a journey towards mastering modern JavaScript development in three phases: design, construction, and maintenance. Written for JavaScript developers with intermediate-level skills, this book will give you the knowledge you need to create a cross-browser JavaScript library from the ground up.

About this Book

You can't always attack software head-on. Sometimes you come at it sideways or sneak up from behind. You need to master an arsenal of tools and know every stealthy trick. You have to be a ninja.

Secrets of the JavaScript Ninja leads you down the pathway to JavaScript enlightenment. This unique book starts with key concepts, like the relationships between functions, objects, and closures, taught from the master's perspective. You'll grow from apprentice to ninja as you soak up fresh insights on the techniques you use every day and discover features and capabilities you never knew about. When you reach the final chapters, you'll be ready to code brilliant JavaScript applications and maybe even write your own libraries and frameworks.

You don't have to be a ninja to read this book—just be willing to become one. Are you ready?

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

What's Inside

  • Functions, objects, closures, regular expressions, and more
  • Seeing applications and libraries from the right perspective
  • Dealing with the complexities of cross-browser development
  • Modern JavaScript design

About the Authors

John Resig is an acknowledged JavaScript authority and the creator of the jQuery library. Bear Bibeault is a web developer and coauthor of Ajax in Practice, Prototype and Scriptaculous in Action, and jQuery in Action from Manning.

Table of Contents

    PART 1 PREPARING FOR TRAINING
  1. Enter the ninja
  2. Arming with testing and debugging
  3. PART 2 APPRENTICE TRAINING
  4. Functions are fundamental
  5. Wielding functions
  6. Closing in on closures
  7. Object-orientation with prototypes
  8. Wrangling regular expressions
  9. Taming threads and timers
  10. PART 3 NINJA TRAINING
  11. Ninja alchemy: runtime code evaluation
  12. With statements
  13. Developing cross-browser strategies
  14. Cutting through attributes, properties, and CSS
  15. PART 4 MASTER TRAINING
  16. Surviving events
  17. Manipulating the DOM
  18. CSS selector engines

Best Value

Buy Node.js in Action and get Secrets of the JavaScript Ninja at an additional 5% off Amazon.com's everyday low price.

Node.js in Action + Secrets of the JavaScript Ninja
Buy together today: $46.72

One of these items ships sooner than the other. Show details

  • Node.js in Action

    This title has not yet been released.
    You may pre-order it now and we will deliver it to you when it arrives.
    Ships from and sold by Amazon.com.
    FREE Shipping. Details

  • This item: Secrets of the JavaScript Ninja

    In Stock.
    Ships from and sold by Amazon.com.
    FREE Shipping on orders over $25. Details



Editorial Reviews

About the Author

Bear Bibeault has been working in the area of web applications since the mid-nineties, getting started with beta versions of JSP and Servlets. He is a senior moderator at the popular JavaRanch site, and has contributed articles to the JavaRanch Journal as well as Dr Dobb's Journal online. He is a co-author of several Manning books including Ajax in Practice, Prototype and Scriptaculous in Action, jQuery in Action, and jQuery in Action, Second Edition. He works and resides in Austin, Texas.


Product Details

  • Paperback: 392 pages
  • Publisher: Manning Publications; Pap/Psc edition (December 28, 2012)
  • Language: English
  • ISBN-10: 193398869X
  • ISBN-13: 978-1933988696
  • Product Dimensions: 7.4 x 0.8 x 9.2 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (23 customer reviews)
  • Amazon Best Sellers Rank: #5,239 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.8 out of 5 stars
(23)
4.8 out of 5 stars
It really makes you feel like a javascript ninja. Carlos A. Brasileiro  |  5 reviewers made a similar statement
I am really thankful to both of them for this book. Pawan Chopra  |  4 reviewers made a similar statement
Most Helpful Customer Reviews
21 of 22 people found the following review helpful
Format:Paperback
Resig's earlier effort "Pro JavaScript Techniques" was a good read for its time but got spread thin by getting engrossed in the details of normalizing the DOM API which is something I already had quirksmode.org for as my go-to and that subject is now increasingly less complicated the closer you get to ditching IE8 support.

This is in my experience, the first book to really properly focus on all of the stuff that comes together to really make JavaScript unique and powerful as a language, which has in the past been an understanding you could really only come to by tinkering with JS and reading/borrowing from generous web contributions from Resig, (maybe) Crockford, and IMO, JS-superstar whose name is not sung enough (not for a lack of trying by Resig among others) Dean Edwards whose background in Scheme helped him help the rest of us understand JS for the true complexity-reducing and normalizing beast that it is.

JS didn't come out on top as the only client-side browser option worth pursuing by accident and the view-point that we're "stuck" with it is one that should hopefully be hastily remedied by reading about and understanding what a marvel JS really is when you stop blaming it for Microsoft's tomfoolery and get over the fact that Eich wrote the original version in ten days. That was 17 years ago. JS has evolved constantly since then and hasn't spread to the server, OS, and become the ultimate pan-mobile solution by accident either.

My general sense of the writing is that Resig as always is good at distilling the seemingly complex into bite sized pieces while Bear makes them go down much more easily.

On the "how to use this book" front I'd say keep browsing skimming David Flanagan's "Definitive Guide" to see what all your ingredients are but read this if you're interested in becoming a master chef. If you're intermediate level at JS or heavily experienced in another language to the point where you can compare its mechanics to other languages, this book's probably a good fit.

My only real gripe is (I assume) Resig's with-whiches, from-whiches and in-whiches, which I find semi-painful to read but this is a very minor thing.

Oh and it also took 'em long enough.

:P
Was this review helpful to you?
16 of 17 people found the following review helpful
5.0 out of 5 stars Great book for any js coder January 24, 2013
Format:Paperback
This book is a must-have for any serious js coder. It's almost guaranteed that you'll learn new tricks from this book. But more importantly your knowledge of the language will dramatically expand.

Bringing in a 'traditional' c/c++ background, js has been a 'pain' for me to deal with. I've been reading a few js books, tons of blogs and tuts, but very few expose the true nature of the language in a simple and pragmatic manner (way too many contrived examples out there, leading to greater confusion.) The kind of knowledge that keeps you from aiming at your foot... This book is it! I've been reading some of the chapters over and over to gain a deeper understanding of js. I then reviewed some of my previous code and realized that... shoot! I was gonna be limping soon.

Packed with information with an easy-read style, this book is already becoming a 'classic' for me. While not for beginners, if you're a programmer and learning js, I'd recommend you go through this book as you go. Most other js books focus on the syntax and usage but not so much on the language intricacies. For one, I tend to learn a language better if I also understand how it works.
Comment | 
Was this review helpful to you?
17 of 20 people found the following review helpful
5.0 out of 5 stars Excellent for becoming a javascript guru February 4, 2013
Format:Paperback
I know I'm mixing my ethnic metaphors, but this book will help you get to ninjahood, guruhood, or whatever other hood you desire to attain. I am not an inexperienced coder: I have 30 years of experience in coding, including 17 years of java and probably 5 doing semi-serious JavaScript. Still, this book opened my eyes to so many things about JavaScript. For example: I knew about functions and I knew about closures, but the exact relationship between functions, objects, and closures had always eluded me. Knowing what you are doing when you say "new Function()". So many other things.

Face it: most of us look at JavaScript as a toy language. But that is only because most of the scripts we've seen have been toy scripts. We've never really seen the guts of a serious JavaScript library like jQuery, require.js, or impactJS. Once you do, you start seeing constructs you can hardly fathom coming from a background in conventional programming languages like java. JavaScript is a serious programming language, and one that is deceptively similar in syntax to java, even though it could hardly be further in semantics. Add to that the fact that there are libraries that make JavaScript look object-oriented, you can easily transport your object-oriented lines of thought into your JavaScript programming.

This book really gives you the ins and outs of JavaScript. Within a few pages I was either learning things I had never known about the language, or realizing how things I had seen actually work. What's more, it presents it in a "unit test" environment. I had always doubted how testable JavaScript was, and I must not be alone, because the book starts out talking about unit tests and presents many of the features using a unit test environment to show how they really work. I consider anything that gets us to write more automated tests - and I am as guilty as any - a good thing.

I highly recommend this book.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Excellent book
I bought this and Crockford's "JavaScript: The Good Parts". The two books tend to cover the same material but this one goes into much deeper detail with more examples. Read more
Published 8 days ago by Richard Groot
5.0 out of 5 stars If you did not read it. You do not know Javascript!!
This is the best book I have ever read on JavaScript. Its not an easy topic to explain. But this books is wonder and special. Amazing explanation of concepts. Read more
Published 9 days ago by Pawan Chopra
5.0 out of 5 stars a book to read from end to end
I make javascript programs since years, and yet this book brings a lot of details of the language that a I didn't know about. It really makes you feel like a javascript ninja. Read more
Published 1 month ago by Carlos A. Brasileiro
5.0 out of 5 stars best ever
I am on page 45 (of 390+) and was compelled to write this review because of how much new information I have learnt already. More in the first 45 pages than most books. Read more
Published 1 month ago by Rahul
5.0 out of 5 stars Very insigtful and well written
Absolutely loved it - both content and style it's written in. Very clear and consistent. You can easily follow the author's thought flow and examples.
Published 1 month ago by Slava Zheltonogov
5.0 out of 5 stars Fun packed serious Javascript book
Let me tell you something, a secret of my own, I love the language of the book. It keeps me glued to it without frowning. Read more
Published 1 month ago by Amit The 1
5.0 out of 5 stars Excellent publication for the advanced JS developer
Covers all aspects of serious JS development. Just what I expected from John Resig. Excellent for the developer using JS in a ASP.NET MVC front-end environment as well.
Published 1 month ago by Philip G Lippard
5.0 out of 5 stars Excellent book
I now have this book in my javascript book lineup, next to JavaScript the Good parts and the Definitive Guide. Read more
Published 1 month ago by Christopher Brandsma
5.0 out of 5 stars An must read for javascript programmers.
John Resig always writes clearly with a unique and valuable perspective. So although I "knew" quite a bit of the content, I am greatly enjoying the book and learning quite... Read more
Published 1 month ago by John Foster
5.0 out of 5 stars It has the best explanation of Javscript closures I have read yet!
I'll revise my review after I read more of this book, but I jumped right to the chapter on closures (Chapter 5.1) after I saw it in the table of contents. Read more
Published 2 months ago by S. Tang
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

Search Customer Discussions
Search all Amazon discussions

Topic From this Discussion
Kindle edition
Absolutely. It's available now from the Manning site.
Jan 25, 2013 by Bear Bibeault |  See all 3 posts
Anyone receive their copy yet?
I ordered a copy through Amazon and it just arrived - but the site still says that everything is delayed, I have no idea why. Manning definitely has copies in stock, though.
Jan 24, 2013 by John Resig |  See all 11 posts
This book is vaporware
Wow... now the date has been pushed back again (this time to March 2012). Before that it was starting to look like the book would have been released this coming weekend. I guess the art of JavaScript Ninjitsu is more elusive than Pocket Sasquatch.
Aug 26, 2011 by Clint V Franklin, aka theraje |  See all 14 posts
Will this cover HTML5 JavaScript?
The book does not focus on specific APIs. Rather, it's focused on giving you a sound knowledge of JavaScript, and techniques for dealing with cross-browser issues and other complexities, making you the best of JavaScript developers. Which will, naturally, help you understand how to use the... Read more
Dec 20, 2012 by Bear Bibeault |  See all 6 posts
Start a new discussion
Topic:
First post:
Prompts for sign-in
 




So You'd Like to...

Create a guide


Look for Similar Items by Category