Modern JavaScript: Develop and Design

Author: Larry Ullman
Publisher: Peachpit Press
Pages: 624
ISBN: 978-0321812520
Aimed at: Web designers
Rating: 4
Pros: In-depth treatment
Cons: Not object-oriented
Reviewed by:

Modern JavaScript - what exactly does that mean?

Others books we've looked at in this series of books aimed at designers and other non-programmers have tended to achieve simplicity by not going into much depth. This particular book is very much an in-depth look at JavaScript and if you are a potential reader then be prepared to learn a lot and possibly to work at it a little.

The first thing to say is that this isn't a particularly modern approach to JavaScript. It doesn't duck the issue of modern ideas like object-oriented programming, but neither does it make it the central idea. It is, in fact a fairly traditional approach to JavaScript as a procedural language. It is, however, modern in the sense that it is up-to-date with the current situation. It is fairly strong and realistic on the irregularities you will encounter in the implementation of JavaScript in the real world. I particularly liked the tip on page 14:

"When it comes to Web development in general and JavaScript in particular, the golden rule is: Initially develop using a good browser such as Firefox, and then test on Internet Explorer to make your clients happy."

The book is written for the reader who might well have picked up some JavaScript in the course of building web pages. Its pace is slow in terms of big topics covered, but each page has a lot of information if you don't already know it. It would be great for the intelligent beginner or for the reader who is about to make a breakthrough to understanding what they have been doing in the past.

 

Banner

 

Part I is about getting started and it covers the usual preliminaries - history and flavors of JavaScript, what you can use it for, how it fits in with HTML, an IDE or an editor, and generally how you can get to work with JavaScript.

Part II is where the language is introduced in some detail. Here you will learn about variable types and control structures. Then on to the built in types such as Arrays, Strings and Date. We look at building your own functions but not building your own objects. Then the book turns to practical topics such as event handling an other browser related tasks - forms, Ajax and the DOM.

Part III is titled Next Steps and it looks at advanced topics. Here you will find out about test-driven design, frameworks and finally creating your own objects. The final chapter is unusual in that it considers PHP and JavaScript working together.

Overall this is a very good introduction to JavaScript if your aim it to improve the way a website behaves. It almost gets you to the point where you could contemplate building a web app, but there is a little further to go. Personally, I would have preferred a little more emphasis on creating objects and using them as a way of structuring your code; this would have been more worthy of the "Modern" in the title. However, I am aware of the fact that beginners find objects difficult and so this is a pragmatic approach.

 If you are a JavaScript expert then move on by as there is nothing much for you here, but if you already know a little JavaScript this book will help you know it better and know more. Recommended.

Banner


Supercharged JavaScript Graphics

Author: Raffaele Cecco
Publisher: O'Reilly
Pages: 280
ISBN: 978-1449393632
Aimed at: Intermediate JavaScript programmers
Rating: 5
Pros: Well written and full of useful and sensible discussions
Cons: Only minor criticisms
Reviewed by: Ian Elliot

Ian's verdict in October was "probably the best book I have re [ ... ]



PHP Objects, Patterns and Practice 3rd Ed

Author: Matt Zandstra
Publisher: Apress, 2010
Pages: 515
ISBN: 978-1430229254
Aimed at: PHP Programmers
Rating: 5
Pros: A good introduction to objects
Cons: PHP isn't the best language for this.
Reviewed by: Mike James

An object-oriented book for a scripting language? Can this work?


More Reviews

 

Last Updated ( Tuesday, 01 May 2012 )
 
 

   
RSS feed of book reviews only
I Programmer Book Reviews
RSS feed of all content
I Programmer Book Reviews
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.