A CodeRanch Book Promotion was held on the week of Dec 18, 2012.
Peruse John Resig's description of the book
The following diagram is from chapter 5, explaining how closures affect variable scope.
Figure 5.5 Hiding the variable inside the constructor keeps it invisible to the outer scope, but where it counts, the variable is alive and well inside the closure
And will there be turtles?
- X 2
Here's an excerpt from the front matter on that subject:
You should also have a working knowledge of HTML and CSS. Again, nothing too advanced, but you should know the basics of putting a web page together.
No turtles. But an iguana did make its way into the text.
Sounds like a plan - I might as well aim a little high, anyway. Best of luck with the book!
chris webster wrote:
Sounds like a plan - I might as well aim a little high, anyway.
The nice thing about the way that book is structured, is that you can aim as high or low as you like by reading successive chapters and stopping when you've had enough.
Part 3 is more advanced, but if you groked everything in part 2, you should be OK.
Part 4 is even more advanced. It's for those that really want to see how some of the esoteric things that libraries like jQuery and Prototype do are done.
You can stop when you think you've reached your personal zenith.
Best of luck with the book!
* The two chapters of Part 1 are just an intro, and a discussion about the state of debugging and testing tools. The only real "meat" is the development of an assert() function that we use throughout the rest of the book.
So if you want to snatch up the Ninja book at a bargain, use code dotd1210au at checkout.
Today (Dec 10, 2012) only!
Also, you can learn more about Manning's Countdown to 2013 at http://deals.manningpublications.com/countdown2013.html, including how to get a shot at an iPad Mini!
Karim Kiswarday wrote:somebody knows if is possible to write on the the pdf version?
Do you mean with annotation tools like Acrobat or Preview? I would assume so, but I don't have a final copy yet.
The book is a MEAP version but I presume it's complete now.
It is! The print copies are being manufactured as we speak and should be in warehouses by the weekend. The eBook should be published during the coming week.
Vishal Hegde wrote:is it suitable for beginners
This has been already answered. Read this.
Chris Disilva wrote:However, amazon.com states deliver is 1 to 2 months!
It's likely to be less than that. The print book is shipping from the bindery, so Amazon has either received inventory or is about to soon.
I just got 12 copies in the mail last week see above), so it does exist!
This may be a dumb question, but does "pbook" mean printed book?
Then I think you will like the book -- especially Part 2 which explains the fundamentals.
So I believe that page 161 has an error in the regex.
(parseFloat(filter.match(/opacity=([^)]+/)) / 100) + "" :
The closing parans for the capture group should be inside the closing regex literal forward slash. For example, I've isolated just the pertinent part and in chrome console:
filter.match(/opacity=([^)]+/) / 100
SyntaxError: Invalid regular expression: /opacity=([^)]+/: Unterminated group
filter.match(/opacity=([^)]+)/) / 100
If I run the full code example in chrome the ternary will be bypassed. I would think this would throw an error in IE but I haven't tested.
P.S. Please advise where readers should post errata errors for the book ... thanks ;)
That particular error has already been caught and is listed at the book's errata page (http://manning.com/resig/excerpt_errata.html).
You can report errata by posting in the HTML forum here, or by posting at the Manning book forum (http://www.manning-sandbox.com/forum.jspa?forumID=431).
You can get the book for half off by using code dotd0607au at checkout.