Book Image

Learning JavaScriptMVC

By : Wojciech Bednarski
Book Image

Learning JavaScriptMVC

By: Wojciech Bednarski

Overview of this book

<p>JavaScriptMVC is a client-side, JavaScript framework that builds maintainable, error-free, lightweight applications as quickly as possible. As it does not depend on server components, it can be combined with any web service interface and server-side language.<br /><br />"Learning JavaScriptMVC" will guide you through all the framework aspects and show you how to build small- to mid-size well-structured and documented client-side applications you will love to work on.<br /><br />This book starts from JavaScriptMVC installation and all its components are explained with practical examples. It finishes with an example of building a web application. You will learn what the JavaScriptMVC framework is, how to install it, and how to use it efficiently.<br /><br />This book will guide you on how to build a sample application from scratch, test its codebase using unit testing, as well as test the whole application using functional testing, document it, and deploy the same. After reading Learning JavaScriptMVC you will learn how to install the framework and create a well-structured, documented and maintainable client-side application.</p>
Table of Contents (13 chapters)

Why JavaScriptMVC?


JavaScriptMVC is a solid and well documented framework.

It is based on the extremely popular JavaScript library jQuery, where many JavaScript programmers are familiar with its factory methods and chainable function style.

JavaScriptMVC is a complete package. It contains everything we need to build, manage, document, and test JavaScript projects.

Since it is a modular framework, we don't need to use all the available components. We can start by using only framework components that we actually need, and add additional components as and when we need them.

The learning curve is pretty low, especially if a reader is familiar with other JavaScript frameworks, such as lightweight Backbone and Sammy or heavyweight toolkits such as Dojo toolkit or Google Closure. At the same time, it offers much more than lightweight brothers without a heavy feel, such as Google Closure which produces much cleaner code and provides better documentation than the very popular Dojo toolkit.

One of its killer features is that it prevents memory leakage. This is a very important aspect of client-side applications, which perform many operations on the Document Object Model (DOM) tree.

Tip

MVC in JavaScriptVC

JavaScriptMVC utilizes the classic MVC pattern, which separates business logic and application data from the user interface.