O'Reilly Book Reviewer

I review for the O'Reilly Blogger Review Program

Sunday, September 11, 2011

Book Review: JavaScript Web Applications by Alex MacCaw (O'Reilly)

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.

3 comments:

  1. Thanks a lot for ur great review of javascript web applications.It will be very interesting to learn about the applications of javascript.
    web design company

    ReplyDelete
  2. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me..I am a regular follower of your blog.
    Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from HTML5 CSS3 Javascript Online Training from India .
    or learn thru HTML5 CSS3 Javascript Online Training from India. Nowadays JavaScript has tons of job opportunities on various vertical industry. HTML5 CSS3 Javascript Online Training from India

    ReplyDelete