JavaScript Web Applications and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $7.30 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading JavaScript Web Applications on your Kindle in under a minute.

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

 

JavaScript Web Applications [Paperback]

Alex MacCaw
4.2 out of 5 stars  See all reviews (17 customer reviews)

List Price: $34.99
Price: $22.91 & FREE Shipping on orders over $25. Details
You Save: $12.08 (35%)
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 Tuesday, May 21? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $22.91  
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

August 30, 2011

Building rich JavaScript applications that bring a desktop experience to the Web requires moving state from the server to the client side—not a simple task. This hands-on book takes proficient JavaScript developers through all the steps necessary to create state-of-the-art applications, including structure, templating, frameworks, communicating with the server, and many other issues.

Throughout the book, you'll work with real-world example applications to help you grasp the concepts involved. Learn how to create JavaScript applications that offer a more responsive and improved experience.

  • Use the Model-View-Controller (MVC) pattern, and learn how to manage dependencies inside your application
  • Get an introduction to templating and data binding
  • Learn about loading remote data, Ajax, and cross-domain requests
  • Create realtime applications with WebSockets and Node.js
  • Accept dropped files and upload data with progress indicators
  • Use major frameworks and libraries, including jQuery, Spine, and Backbone
  • Write tests and use the console to debug your applications
  • Get deployment best practices, such as caching and minification

Frequently Bought Together

JavaScript Web Applications + JavaScript Patterns + JavaScript: The Good Parts
Price for all three: $59.63

Buy the selected items together


Editorial Reviews

About the Author

Alex MacCaw is a Ruby/JavaScript developer & entrepreneur. He has written a JavaScript framework, Spine and developed major applications including Taskforce and Socialmod, as well as a host of open source work. He speaks at Ruby/Rails conferences in NYC, SF and Berlin. In addition to programming he is currently traveling round the world with a Nikon D90 and surfboard.


Product Details

  • Paperback: 282 pages
  • Publisher: O'Reilly Media (August 30, 2011)
  • Language: English
  • ISBN-10: 144930351X
  • ISBN-13: 978-1449303518
  • Product Dimensions: 7 x 0.6 x 9.2 inches
  • Shipping Weight: 1 pounds (View shipping rates and policies)
  • Average Customer Review: 4.2 out of 5 stars  See all reviews (17 customer reviews)
  • Amazon Best Sellers Rank: #74,890 in Books (See Top 100 in Books)

More About the Author

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

Customer Reviews

Most Helpful Customer Reviews
19 of 20 people found the following review helpful
4.0 out of 5 stars JavaScript reloaded September 11, 2011
Format:Paperback
Being a Java Swing developer for many years, I was never a fan of JavaScript. There were no mature tools and frameworks a few years ago. Straight DOM programming was just error-prone and difficult to debug. Over the last few years, JavaScript has come back with a big bang, thanks to a lot of companies, among them, Google. This book is for people, like me, who gave up on JavaScript years ago because of a poor model but need to know new frameworks that help in writing concise, readable code, and also help design scalable and robust architecture, not to mention, using JavaScript with a large team that could be geographically spread out.

Frankly, this book won't teach you the basics of JavaScript. There are plenty of other books for that and the author mentions this up front. However, in my opinionion, the author does a great job of teaching how to use the simplified and concise form of JavaScript, sticking to OO way of doing it. He starts with MVC (and who doesn't love MVC!), events, models, data, controller, state, view, and templating. The examples are mostly in JQuery which is also my framework of choice for JavaScript development.

No real-time discussion of JavaScript is complete without the mention of WebSockets, Node.js, and Socket.IO. The author does a great job of explaining this in chapter 8. He also provides an example of how to make your applications look faster (perceived speed) as compared to actual speed. The later chapters focus on testing and debugging, deploying, and an overview of the Spine, Backbone, and JavaScriptMVC libraries. Appendix at the end of the book provide a JQuery primer and a reference to CSS extensions and CSS3.

I cannot say that after reading this book, I have fallen in love with JavaScript since I am a big fan of Adobe Flex. However, I have many JavaScript projects under my belt and this book is a valuable resource for me to ensure that my apps scale well and that my offshore resources use the sandbox model to avoid tight coupling and ensure reusability.
Comment | 
Was this review helpful to you?
12 of 12 people found the following review helpful
5.0 out of 5 stars You just might learn a boatload of stuff... July 12, 2012
By Anon:
Format:Paperback|Amazon Verified Purchase
I think this can be an incredibly helpful book if you hit it at the right stage in your JavaScript (JS) learning process, even if you don't need to implement full-blown MVC for your immediate needs. I can honestly say that I've learned as much, and probably more, from working through the core of this book (Chapters 1-5) than I have from any other single JS book.

But, you need to be at the right stage... which is basically, when you can follow the book, although it may take a bit of effort. If you're already a ninja, you probably don't need to read the book at all, unless you simply want to be exposed to another POV. And, for a lot of non-ninja, the book will be too advanced. Luckily, O'Reilly put the entire first chapter on-line so you can judge for yourself.

Chapter 1 is no namby pampy intro. In the chapter McCaw defines a constructor function used to create constructor functions that emulate classes in languages which support classes natively. He also includes a useful discussion of how the 'this' context switches in JS and how to control it with bind or by defining a jQ-like proxy method. Later design patterns have some similarity to what he does in chapter 1 (using Object.create instead of constructors), so if you can follow this chapter, you're probably ready to take on the book.

I'd describe the audience for the book as developers who've already built an app, or at least added fairly complex functionality to web pages and are comfortable with prototypal inheritance, closures on inner functions, call/apply and who know basic DOM scripting. Additionally, you may well have a sneaking suspicion that although your apps work, they're not designed as cleanly as they could be. If you're part of that audience, you just might learn a boatload of stuff as you follow McCaw's thinking as to how to design large-scale JS apps. Despite the sub-title, you don't really need to know jQuery (jQ) all that well, as long as you're somewhat familiar with it and the way it chains methods. One of the nice things about the book is that McCaw often gives you the plain old JavaScript (PoJS) for some of the basic methods he adds to his template objects and constructors, before switching to jQ for convenience. For example, after chapter 1 you'll have the PoJS equivalents for jQ's extend and proxy so it's easy to create a PoJS version for say the Model object or the Controller object which he defines later. For other jQ methods used in examples, you should be at the level where you can figure out what jQ is doing and write the equivalent in PoJS if that's what you want to do.

Some of the other reviews have touched on a few negatives, but to my mind they're not enough to downgrade the book. Occasionaly, the discussion seems to jump over an explanatory detail, but if you make a lab page that links to the book errata page and download the code for the examples, you should be able to fill in any gaps. I found the first five chapters fascinating, and chapters 6-13 useful and concise roll ups on various topics like dependency management, debugging and various libraries. In addition there are appendices that do a quick survey of jQuery and CSS3.

The problem with learning JS in the contemporary landscape is that what used to be advanced, even esoteric, technique is commonplace now. If you go back and look at the Sitepoint JavaScript Anthology or PPK on JavaScript which came out ~2005/2006, you'll see relatively straightforward and easy to understand JS and DOM scripting. But, as Crockford noted "JavaScript is Lisp in C's clothing" and if you don't have a theoretical background in functional programming, it can be very challenging to follow the ninja use of function scope to create modules, encapsulate values in closures etc... Wrapping your head around the core of this book can really deepen your understanding of JS.
Comment | 
Was this review helpful to you?
13 of 14 people found the following review helpful
3.0 out of 5 stars Good but un-necessarily hard going October 18, 2011
By C. Jack
Format:Paperback
Great idea for a book and much of the content is first class. Make sure you've read JavaScript the Good Parts and/or JavaScript Patterns and have learned the basics of JQuery before even attempting to read this book though, otherwise your going to have trouble following along with some of the content.

Unfortunately it does have some falws. In particular I found some of the descriptions of code samples were lacking, additionally many of the code samples seemed un-necessarily terse/confusing. Normally I wouldn't massively care about this sort of thing in code samples, however when coupled with the use of some of JavaScripts odder features they make the code a bit painful to read. Thats not to say you can't understand whats going on, you just have to put in more effort than you might expect and you probably won't find it as enjoyable as you'd like.

These issues are the main reason I've given the book just three stars. I'm hoping the issues will be addressed in any future second edition, at which time this will definitely be a five star book.

One other thing, chapter 11 is on Spine.js. This chapter is now a little out-of-date, for example Spine now uses CoffeeScripts classes, so you may want to use the excellent online documentation for spine.js instead.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Spot on
With 3 firm examples of projects which take you through the MVC philosophy in Javascript, you can find no firmer way to learn MVC in a way that is relevant to every browser. Read more
Published 8 months ago by Richard Chen
1.0 out of 5 stars Don't Expect to Lean Anything From This Book
Don't expect this book to teach you anything about how to use JavaScript to buld Web Applications. The author states at the outset that the book assumes most Javascript authors... Read more
Published 9 months ago by Richard L. Shockney
4.0 out of 5 stars Excellent Primer for the Budding JavaScript Architect
I began developing in JavaScript just over a year ago. The company I'm working for had announced a brand new product that was to be web-based, and with not a single web developer... Read more
Published 12 months ago by Cody Sand
5.0 out of 5 stars Fantastic Intermediate JavaScript book!
This is not a book for fresh, new beginning coders. That said, this is the perfect book for anyone who has experience coding and you want to get into JS, or anyone who has been in... Read more
Published 12 months ago by Haelix
5.0 out of 5 stars Worth its weight in Gold
This book is a an absolute must read if your serious about Javascript ( and you should be). Its targeted towards developers with an understanding of the basics of Javascript... Read more
Published 12 months ago by Sid
5.0 out of 5 stars Excellet book
If you are looking for a way to properly structure JS-code in your project this is the book to get. I spent quite some time reviewing JS-frameworks like Spine, Knockout, Ember,... Read more
Published 12 months ago by eirikhm
5.0 out of 5 stars Provides the fundamentals for JavaScript MVC frameworks
JavaScript Web Applications by Alex MacCaw illustrates the building blocks for a JavaScript MVC framework. Read more
Published 13 months ago by Mark Lai
5.0 out of 5 stars Perfect intro to Javascript web apps
After only three weeks into owning the book, this is already among the most dog-eared books in my collection. Read more
Published 15 months ago by GradualStudent
4.0 out of 5 stars Javascript Web Applications
This book has a fast pace, no thoroughly introduction of MVC, I think this is justified. MVC has been explained a lot of times the last decade. Read more
Published 16 months ago by Jeroen Oliemans
4.0 out of 5 stars Just the book I needed
JavaScript Web Applications is not a book for beginners. In fact, you need to have been doing a fair share of JavaScript development to benefit from it. Read more
Published 19 months ago by Gabriel Svennerberg
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
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