Pro Single Page Application Development [electronic resource] : Using Backbone.js and ASP.NET /
Fink, Gil.author.
Flatow, Ido.author.
Group, SELA.author.
One of the most important and exciting trends in web development in recent years is the move towards single page applications, or SPAs. Instead of clicking through hyperlinks and waiting for each page to load, the user loads a site once and all the interactivity is handled fluidly by a rich JavaScript front end. If you come from a background in ASP.NET development, you’ll be used to handling most interactions on the server side. Pro Single Page Application Development will guide you through your transition to this powerful new application type. The book starts in Part I by laying the groundwork for SPA development. You’ll master some JavaScript techniques that will come in useful later on, and get to know the building blocks of a single page application, including modules, routing and MV* frameworks. In Part II, you’ll build the client for your application. This is where the magic happens, as the authors take you through the process step by step. Backbone.js is the ideal library for demonstrating SPA development in practice, but you can apply the same principles with other frameworks in your future applications. Part III takes you through the process of building the server side of your application using ASP.NET Web API, and hooking up the two parts of your application to create a working whole. SPA development also comes with its own particular challenges, including tracking history, user interface performance, and how to handle search engine optimization. In the final chapters, the authors guide you through some of these issues and advanced techniques and finish by showing you how to deploy your application. As SPAs become the de facto standard of web application development, the in-depth Pro Single Page Application Development will be your one-stop shop for creating fluid, modern applications on the web.
""Contents at a Glance""; ""Contents""; ""About the Authors""; ""About the Technical Reviewers""; ""Acknowledgments""; ""Introduction""; ""Part I: The Road to Single Page Application Development""; ""Chapter 1: Introducing Single Page Applications""; ""How the Web Has Evolved""; ""The Ajax Revolution""; ""HTML5 and JavaScript""; ""The Mobile Web and JavaScript""; ""JavaScript Preprocessors""; ""Comparing Application Types""; ""Traditional Web Applications""; ""Native Applications""; ""So What Is an SPA?""; ""Why SPA Development?""; ""Summary""; ""Chapter 2: JavaScript for SPAs""
""A Little JavaScript History""""Functions in JavaScript""; ""The arguments Object""; ""Anonymous Functions""; ""Nested Functions""; ""JavaScript Scope""; ""The Global Scope""; ""Function Scope""; ""Immediate Function Execution Expressions""; ""Working with Object-Oriented JavaScript""; ""Literal Object Notation""; ""The new Notation and Constructor Functions""; ""The Object Base Type""; ""The Object.create Function""; ""JavaScript Prototype Inheritance""; ""The this Keyword""; ""Creating JavaScript Namespaces""; ""Closures and Encapsulation""; ""JSON""
""ECMAScript and Its Impact on Future Code""""ECMAScript 5 Highlighted Features""; ""ECMAScript 6""; ""New Language Syntax""; ""Classes, Modules, and More""; ""Summary""; ""Chapter 3: Modular JavaScript Development""; ""The FaÃade Pattern in JavaScript""; ""Modules to the Rescue""; ""Different Options to Create JavaScript Modules""; ""Prototype Pattern""; ""Module Pattern""; ""Revealing Module Pattern""; ""Revealing Prototype Pattern""; ""What Is the Asynchronous Module Definition?""; ""The async and defer Attributes""; ""AMD""; ""The RequireJS Library""; ""The data-main Attribute""
""The config Function""""Paths""; ""Shim""; ""Defining Modules Using RequireJS""; ""Using the require Function""; ""Summary""; ""Chapter 4: SPA Concepts and Architecture""; ""Main SPA Building Blocks""; ""JavaScript Libraries""; ""MV* in the Front End""; ""MVC""; ""MVVM""; ""The Roles of MV* Frameworks in SPAs""; ""Routing in an SPA""; ""The # Sign Role in Routing""; ""Leveraging HTML5 JavaScript APIs""; ""Offline Web Applications and Storages""; ""Web Storage""; ""IndexedDB""; ""Application Cache""; ""Connectivity""; ""Performance""; ""Client-Side Template Engines""
""Underscore as a Template Engine Example""""Server Back End API and REST""; ""SPA Architecture""; ""Summary""; ""Part II: Building the Front End""; ""Chapter 5: Getting Started with Backbone.js""; ""What Is Backbone.js?""; ""Models""; ""Defining a Model""; ""Model APIs""; ""Model Validation""; ""Model Events""; ""Views""; ""Defining a View""; ""Rendering the View""; ""Collections""; ""Collection APIs""; ""Underscore.js Collection Functions""; ""Collection Events""; ""Events""; ""The Events API""; ""listenTo and stopListening""; ""View Events""; ""Routing""; ""Configuring Routes""
""Router APIs""
Includes index.
One of the most important and exciting trends in web development in recent years is the move towards single page applications, or SPAs. Instead of clicking through hyperlinks and waiting for each page to load, the user loads a site once and all the interactivity is handled fluidly by a rich JavaScript front end. If you come from a background in ASP.NET development, you’ll be used to handling most interactions on the server side. Pro Single Page Application Development will guide you through your transition to this powerful new application type. The book starts in Part I by laying the groundwork for SPA development. You’ll master some JavaScript techniques that will come in useful later on, and get to know the building blocks of a single page application, including modules, routing and MV* frameworks. In Part II, you’ll build the client for your application. This is where the magic happens, as the authors take you through the process step by step. Backbone.js is the ideal library for demonstrating SPA development in practice, but you can apply the same principles with other frameworks in your future applications. Part III takes you through the process of building the server side of your application using ASP.NET Web API, and hooking up the two parts of your application to create a working whole. SPA development also comes with its own particular challenges, including tracking history, user interface performance, and how to handle search engine optimization. In the final chapters, the authors guide you through some of these issues and advanced techniques and finish by showing you how to deploy your application. As SPAs become the de facto standard of web application development, the in-depth Pro Single Page Application Development will be your one-stop shop for creating fluid, modern applications on the web.
Active server pages.
Active server pages
Computer programming.
Software engineering.
Web Development.
Software Engineering/Programming and Operating Systems.