Pro Single Page Application Development: Using Backbone.js by Gil Fink

By Gil Fink

the most very important and intriguing traits in internet improvement in recent times is the movement in the direction of unmarried web page purposes, or SPAs. rather than clicking via links and looking forward to every one web page to load, the person rather a lot a domain as soon as and the entire interactivity is dealt with fluidly by way of a wealthy JavaScript entrance finish. if you happen to come from a historical past in ASP.NET improvement, you’ll be used to dealing with such a lot interactions at the server facet. Pro unmarried web page program Development will consultant you thru your transition to this strong new program type.

The booklet begins partly I by way of laying the foundation for SPA improvement. You’ll grasp a few JavaScript innovations that would turn out to be useful afterward, and get to understand the development blocks of a unmarried web page software, together with modules, routing and MV* frameworks.

In half II, you’ll construct the customer on your software. this is often the place the magic occurs, because the authors take you thru the method step-by-step. Backbone.js is the precise library for demonstrating SPA improvement in perform, yet you could observe an analogous rules with different frameworks on your destiny functions. half III takes you thru the method of establishing the server part of your software utilizing ASP.NET internet API, and hooking up the 2 elements of your software to create a operating complete.

SPA improvement additionally comes with its personal specific demanding situations, together with monitoring heritage, person interface functionality, and the way to deal with search engine optimisation. within the ultimate chapters, the authors advisor you thru a few of these matters and complicated ideas and end by means of displaying you ways to installation your software. As SPAs turn into the de facto general of internet software improvement, the in-depth Pro unmarried web page software Development could be your one-stop store for developing fluid, smooth functions at the web.

What you’ll learn

  • Reasons to grasp unmarried web page program improvement
  • SPA structure and key suggestions
  • Mastering modular JavaScript improvement thoughts
  • Meet the preferred Backbone.js library and the way to take advantage of it to construct an SPA
  • Create a again finish with ASP.NET internet API and devour it out of your SPA
  • How to unit try and function music your program
  • Overcome the problems of web optimization in unmarried web page purposes

Who this publication is for

This publication will go well with specialist internet builders conversant in HTML and JavaScript. Readers will desire adventure with .NET and C# so that it will keep on with besides half III, which covers again finish improvement with ASP.NET internet API.

Table of Contents

Part I: the line to unmarried web page program Development

Chapter 1: Introducing unmarried web page functions (SPAs)

Chapter 2: JavaScript for SPAs

Chapter three: Modular JavaScript Development

Chapter four: SPA options and Architecture

Part II: development front End

Chapter five: Getting all started with Backbone.js

Chapter 6: making a unmarried web page program Step through Step

Part III: construction the again End

Chapter 7: making a Back-End provider with ASP.NET net API

Chapter eight: enforcing HTTP with ASP.NET net API

Chapter nine: verbal exchange among back and front End

Part IV: complicated SPA Topics

Chapter 10: JavaScript Unit Testing

Chapter eleven: SPA functionality Tuning

Chapter 12: SEO for SPAs

Chapter thirteen: Deploying Your SPA

Show description

Read or Download Pro Single Page Application Development: Using Backbone.js and ASP.NET PDF

Similar c# books

Developing. NET Custom Controls & Designers using C

Bankruptcy 1 brought the reader to the ebook by means of describing what the publication will hide, opting for the viewers and what the reader should still already recognize, and the recapping the historical past of keep watch over reusability. bankruptcy 2 introduces the reader to occasions and occasion handlers. It additionally discusses delegates and their comparability to operate guidelines.

Beginning C# 2008 Objects: From Concept to Code (Expert's Voice in .Net)

Up to date with the adjustments to C#, starting C# 2008 gadgets: From ideas to Code introduces whole novices to C# coding perform with a superb methodological origin written by way of critically–acclaimed specialists within the box, already authors of the best–selling starting C# items. by means of development from first ideas in object–oriented terminology, then advancing via software layout with Unified Modeling Language (UML) into functional examples, starting C# 2008 items: From ideas to Code offers a foundational advisor written from the point of view of 2 skilled, operating specialists on C#.

Pro ASP.NET Web API: HTTP Web Services in ASP.NET (Expert's Voice in .NET)

Professional ASP. internet net API exhibits you the way to construct versatile, extensible net prone that run seamlessly on various working structures and units, from pcs to pills to shrewdpermanent phones—even those we don’t recognize this day. ASP. internet internet API is a brand new framework designed to simplify internet provider structure.

Extra resources for Pro Single Page Application Development: Using Backbone.js and ASP.NET

Example text

How can you be search engine optimized (SEO)? Most challenges are solved by the new HTML5 History API. The HTML5 History API includes a set of new APIs that provides access and manipulation options for the browser’s navigation history. On the other hand, the History API is not supported by legacy browsers like Internet Explorer 6-9. You might think this means that we are in trouble when we want to write applications that need to support legacy browsers, but that is not the case. You can use routing libraries that include fallbacks that handle routing in legacy browsers.

It is extensible. info Chapter 3 ■ Modular JavaScript Development What Is the Asynchronous Module Definition? You learned how to create JavaScript modules in the previous section. In JavaScript development, you encapsulate your functionality inside modules, and in most projects each module exists in its own file. Having modules reside in their own stand-alone files complicates development a little because JavaScript developers need to constantly watch and be aware of dependencies among modules.

That means that you can pass lambda as callback code instead of a function and the runtime will know how to use it. map(x => x + x); which is shorter and less confusing. • Default parameters support. You can use default parameters instead of writing logical or statements to fill some default value in function execution. For example, the following code function echo(msg) { return msg || "hello"; } can become function echo(msg = "hello") { return msg; } which is more expressive than the first line of code.

Download PDF sample

Rated 4.45 of 5 – based on 32 votes