Head First JavaScript

Head First JavaScript
by Michael Morrison

Head First JavaScript
List Price: $39.99
Our Price: $22.49
You Save: $17.50 (44%)
Availability: Usually ships in 1-2 business days
Buy Used: from $12.50 (click here)
Category: Book
See more book details and other editions


or

Book Summary Information

Author: Michael Morrison
Edition: Paperback
Audio: English (Unknown); English (Original Language); English (Published)
Published: 2008-01-11
ISBN: 0596527748
Number of pages: 656
Publisher: O'Reilly Media

Book Reviews of Head First JavaScript

Book Review: Head First HTML/CSS Fans Beware
Summary: 1 Stars

I thought the J Phillips review said it all. My difference with Phillips is that I do appreciate the approach (as stated by Head First), annoying as it can be. As a satisfied customer of HF HTML/CSS, and after some frustrating attempts to learn PHP, I took what I thought was a logical step and ordered Head First Javascript and pre-ordered the soon to be released HF PHP/MYSQL. I found the first chapter fair, not good, but what might be expected with the HF method. In then I got to chapter two.

Phillips wrote:

"Another hugely important element of learning to program from a book is the act of following and typing examples on your own computer. You simply cannot expect to absorb the syntax, style and structure of programming without feeling it "under your own fingers" so to speak. This seems like a no-brainer. The problem with this book is, you're never actually sure when you're supposed to be entering code yourself, and the author gives you no clear indication of a hands-on "plot" to follow."

You know, it's almost understated. I went through chapter 2 several times wondering what the author wanted me to do. I started asking myself if I was some kind of idiot for not knowing what to do in a Head First book.

I'm sure you are looking beyond this sentence and thinking obsessive-compulsive. I can't stop myself.

Please, allow me to elaborate:

page 33: intro paragraph on storing data + funny picture
page 34: message = scripts store data + obnoxious Brain Power question
page 35: message = there are three data types
page 36-37: exercise / identify the data types
page 38-39: answers to exercise
page 40: message = constants stay the same, variables change
page 41: exercise / identify the constants and variables
page 42: answers to exercise
page 43: Fireside Chat /Variable's message = I vary; Constant's message = I'm consistent
page 44: message = a variable is a storage location with a unique name; create a variable with 'var'
page 45: message = initialize a variable with '='
page 46: message = create a constant with 'const'
page 47: message = you can change a constant where it is created + exercise "Identify the Constants and Variables!" (see page 41)
page 48: answers to exercise
page 49: There are no Dumb Questions (He does try) + Bullet Points
page 50: message = variable names are called identifiers
page 51: naming identifiers
page 52: naming variables (camelcase)

by the way we are at 20 pages)


page 53: exercise / more about naming variables
page 54: exercise answers
page 55: (think Etta James "At last...." what appears to be a terminal objective; could it be that we are going to learn how to create this script/form on page 55?
page 56: not yet..let's take a closer look at the actual form
page 57: okay, let's break down what calculations our script will need to perform
page 58: let's take a look at the form again....what! We are getting $NaN in our totals?? That's bad...very bad. Uhm...What's $NaN?
page 59: okay we got $NaN, that's bad. So, let's look at the code. My god! It's truncated. Anyway, our mission is to find out what is wrong with the code. why are we getting the mysterious $NaN? You could be like me at this point and:

(you'll have to open a beer to be really like me)

1. notice the blindingly obvious un-initialized constants
2. wonder if you are supposed to write out the code to experience the error for yourself
3. drift off for a few minutes
3. wonder if after doing Head First HTML/CSS and chapter 1 of Javascript if you should be expected to easily create the page
3. gaze upon other more interesting code: ie. What's that document.getElementbyId thing do?
4. try to create the code yourself, but ultimately say "f*ck it", download then open donuts.html, and initialize the constants
5. move onto page 60 with a real bad feeling about the book

page 60: ah...the answers to the exercise (the constants weren't initialized!)
page 61: uhmm once more with feeling 'Initialize' those constants
page 62: (Etta James 'At laaaast...') $Nan is not a number (thanks) + There are no dumb Questions
page 63: the form that you probably didn't create is not working properly. This is an odd problem. The customer ordered 9 donuts, but got "more". Why? While, Morrison doesn't tell you to go back and look at the code, I will do that anyway. I will try to answer the fuzzy problem. OK, while I know now, I couldn't for the life of me know then. Why should I have known?

page 64: oooohhh! Strings of text!!!
page 65: a quick and dirty guide to parseInt() and parseFloat() + message = relax
page 66: the question - Why are extra donuts being ordered? My answer: What was that document.getElementbyId thingy.
Page 67: exercise / fill in the missing code (wow! there are those document.getElementbyId thingies again) and make the number of donuts add up correctly
page 68: the answers and perhaps the real eye opener to this text. We are expected to use what we learned on page 65 to fill in the missing code which was -parselInt(document.getElementbyId("cakeDonuts").value-

Not only that, the answer to the problem is actually on page 67 between the directions and the cloze passage. So if you think the missing code is actually really missing and therefore not sitting before your face and you go looking elsewhere in the universe of your mind for the answer, you are wrong. And if you are thinking what is the point, what is document.getElementbyId, what is .value, relax, OK, think of Matt Damon ... got his image in your mind? It's not your fault. It's not your fault.

page 69: Bullet Points + Congratulations....for doing what?
page 70: new problem statement
page 71: well, what do you know! document.getElementbyId poorly explained in all its out-of-context glory. While I have been disappointed with and wondered what the point of the preceding 37 pages were, this is the first time I actually went huh?
page 72: validation; document.getElementbyId further explained; isNaN thrown in for good measure

(40 pages and still counting...written any code lately?)


page 73: JavaScript Magnets exercise: if/else, tossed into the picture
page 74: JavaScript Magnets exercise solution
page 75: message: You are great
page 76: There are no dumb questions (they keep getting stranger and stranger because dumb questions are supposed to be rather dumb, but now they are appearing complex due to the immense conceptual void created by the text)
page 77: problem statement (you need to allow users to use either 12 or 1 dozen; back to parseInt
page 78: p77 cont.
page 79: more of the last two pages, but you discover you have ADS
page 80: there's the crossword puzzle on page 81 (I wept, the end is near!)
page 81: crossword puzzle
page 82: answers to crossword puzzle
page 83: go ahead bend the page you retard.
page 84: I have to say that page 84 perfectly sums up Chapter 2 of Head First Javascript.

Morrison does not seem to have an understanding of enabling objectives. HF asks if you prefer a dinner conversation to a dry presentation of facts. OK, think 'My Dinner With Andre', and cut it with the dinner scene from 'Eraserhead'. Imagine how many times you will say, "What is this?" then double it. By the way, if you need a companion guide to this book try 4 short videos from an 18-year-old, for free, from uTube's JavaScriptTeacher. He will put HF Javascript to shame and its babble into some context.

I'm limited to one star.

Summary of Head First JavaScript

So you're ready to make the leap from writing HTML and CSS web pages to creating dynamic web applications. You want to take your web skills to the next level. And you're finally ready to add "programmer" to the resume. It sounds like you're ready to learn the Web's hottest programming language: JavaScript. Head First JavaScript is your ticket to going beyond copying and pasting the code from someone else's web site, and writing your own interactive web pages.

With Head First JavaScript, you learn:

  • The basics of programming, from variables to types to looping
  • How the web browser runs your code, and how you can talk to the browser with your code
  • Why you'll never have to worry about casting, overloading, or polymorphism when you're writing JavaScript code
  • How to use the Document Object Model to change your web pages without making your users click buttons
If you've ever read a Head First book, you know what to expect -- a visually rich format designed for the way your brain works. Head First JavaScript is no exception. It starts where HTML and CSS leave off, and takes you through your first program into more complex programming concepts -- like working directly with the web browser's object model and writing code that works on all modern browsers.

Don't be intimidated if you've never written a line of code before! In typical Head First style, Head First JavaScript doesn't skip steps, and we're not interested in having you cut and paste code. You'll learn JavaScript, understand it, and have a blast along the way. So get ready... dynamic and exciting web pages are just pages away.

Internet Books

Book Subjects
Most talked about in Internet Books
PHP and MySQL by Example ImagePHP and MySQL by Example
by Ellie Quigley, Marko Gargenta
Prentice Hall; Published: 2006-12-02; Paperback; Book
Best price: $25.99
Price in other shops: $54.99
Navigate the Net: A Comprehensive Learning Experience for Travel Professionals ImageNavigate the Net: A Comprehensive Learning Experience for Travel Professionals
by Shelly M. Houser
Prentice Hall; Published: 2002-05-24; Paperback; Book
Best price: $12.50
Price in other shops: $61.60
Elijah Lovejoy's ASP Training Course (Complete Video Course) ImageElijah Lovejoy's ASP Training Course (Complete Video Course)
by Elijah Lovejoy
Prentice Hall PTR; Published: 2001-12-18; Hardcover; Book
Best price: $66.49
Price in other shops: $69.99
Weaving a Website: Programming in HTML, Java Script, Perl and Java ImageWeaving a Website: Programming in HTML, Java Script, Perl and Java
by Susan Anderson-Freed
Prentice Hall; Published: 2001-08-16; Paperback; Book
Best price: $19.93
Price in other shops: $110.00
Online Resource Guide for Law Enforcement ImageOnline Resource Guide for Law Enforcement
by Timothy M. Dees
Prentice Hall; Published: 2001-06-30; Paperback; Book
Best price: $1.99
Price in other shops: $44.80
Core Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition) ImageCore Servlets and Javaserver Pages: Core Technologies, Vol. 1 (2nd Edition)
by Marty Hall, Larry Brown
Prentice Hall; Published: 2003-09-05; Paperback; Book
Best price: $27.75
Price in other shops: $64.99
Publish it on the Web! Windows, Second Edition ImagePublish it on the Web! Windows, Second Edition
by Bryan Pfaffenberger
Academic Press; Published: 1997-08-13; Paperback; Book
Best price: $9.00
Price in other shops: $37.95
Big Book of FYI RFCs (Big Books) ImageBig Book of FYI RFCs (Big Books)
Morgan Kaufmann; Published: 2000-08-15; Paperback; Book
Best price: $8.50
Price in other shops: $34.95
HITTESDORF CORBA/IIOP CLEARLY EXPLAINED (Clearly Explained) ImageHITTESDORF CORBA/ IIOP CLEARLY EXPLAINED (Clearly Explained)
by Michael Hittesdorf
AP Professional; Published: 2000-03-01; Paperback; Book
The Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites ImageThe Internet Outdoor Family Fun Yellow Pages: The Online Guide to the Best Outdoor Family Sites
by Jack Sanders
International Marine Publishing; Published: 1999-05-25; Paperback; Book
Best price: $15.56
Price in other shops: $19.95
Similar Books and other products
Head First C#, 2E: A Learner's Guide to Real-World Programming with Visual C# and .NET (Head First Guides) ImageHead First C#, 2E: A Learner's Guide to Real-World Programming with Visual C# and .NET (Head First Guides)
by Andrew Stellman, Jennifer Greene
O'Reilly Media; Published: 2010-05-28; Paperback; Book
Best price: $25.98
Price in other shops: $49.99
Head First Java, 2nd Edition ImageHead First Java, 2nd Edition
by Kathy Sierra, Bert Bates, Bert Bates
O'Reilly Media; Published: 2005-02-16; Paperback; Book
Best price: $24.50
Price in other shops: $44.95
Head First SQL: Your Brain on SQL -- A Learner's Guide ImageHead First SQL: Your Brain on SQL -- A Learner's Guide
by Lynn Beighley
O'Reilly Media; Published: 2007-09-01; Paperback; Book
Best price: $21.99
Price in other shops: $44.99
Head First Web Design ImageHead First Web Design
by Ethan Watrall, Jeff Siarto
O'Reilly Media; Published: 2008-12-30; Paperback; Book
Best price: $20.00
Price in other shops: $49.99
Head First Ajax ImageHead First Ajax
by Rebecca M. Riordan
O'Reilly Media; Published: 2008-09-02; Paperback; Book
Best price: $22.99
Price in other shops: $44.99
Head First jQuery ImageHead First jQuery
by Ryan Benedetti, Ronan Cranley
O'Reilly Media; Published: 2011-09-29; Paperback; Book
Best price: $22.73
Price in other shops: $39.99
JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) ImageJavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides)
by David Flanagan
O'Reilly Media; Published: 2011-05-10; Paperback; Book
Best price: $30.00
Price in other shops: $49.99
Head First PHP & MySQL ImageHead First PHP & MySQL
by Lynn Beighley, Michael Morrison
O'Reilly Media; Published: 2008-12-29; Paperback; Book
Best price: $24.39
Price in other shops: $44.99
Head First HTML5 Programming: Building Web Apps with JavaScript ImageHead First HTML5 Programming: Building Web Apps with JavaScript
by Eric Freeman, Elisabeth Robson
O'Reilly Media; Published: 2011-10-18; Paperback; Book
Best price: $27.16
Price in other shops: $49.99
Head First HTML with CSS & XHTML ImageHead First HTML with CSS & XHTML
by Eric T Freeman, Elisabeth Freeman, Elisabeth Robson
O'Reilly Media; Published: 2005-12-15; Paperback; Book
Best price: $20.00
Price in other shops: $39.99