Instant Backbone.js Application Development
暫譯: 即時 Backbone.js 應用程式開發

Thomas Hunter II

  • 出版商: Packt Publishing
  • 出版日期: 2013-07-04
  • 售價: $1,120
  • 貴賓價: 9.5$1,064
  • 語言: 英文
  • 頁數: 64
  • 裝訂: Paperback
  • ISBN: 1782165665
  • ISBN-13: 9781782165668
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build your very first Backbone.js application covering all the essentials with this easy-to-follow introductory guide

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Structure your web applications by providing models with key-value binding and custom events
  • Keep multiple clients and the server synchronized
  • Persist data in an intuitive and consistent manner

In Detail

It’s easy to let a project get out of hand and become completely unmaintainable. However, this can be avoided by building a nicely-structured Backbone.js application. When working on a web application involving a lot of JavaScript, applications may end up as tangled piles of jQuery selectors and callbacks, all trying frantically to sync between the HTML UI, JavaScript logic, and the database on your server. With Backbone.js, you represent your data as models that can be created, validated, destroyed, and saved to the server.

Instant Backbone.js Application Development Starter is a beginner-friendly book that will guide you through a step-by-step process to go from an empty project directory to a fully-functioning web application. The book also includes code samples that are easy to use and will guide you through the major features that Backbone.js has to offer.

Instant Backbone.js Application Development Starter looks at the main types of objects that Backbone.js offers and has you instantiate specialized versions of each. These objects are stored in their own individual files and work together to build well-structured applications.

Your data will be stored using Collections and Models and presented to the user through Views and Templates. URLs will remain pretty and your browsing history will still work thanks to the Routing functionality. You will also learn how to build a JavaScript Single Page Application that communicates smoothly with your backend server using AJAX.

What you will learn from this book

  • Use Models to store individual records of data
  • Work with Collections to iterate over individual Models
  • Utilize templates to make markup creation a breeze
  • Present your data to your user through Views
  • Trigger Events in your views
  • Develop pretty URLs using the Routing class
  • Keep a well-structured code directory
  • Persist your data to a webserver

Approach

Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks. This book is a practical, step-by-step tutorial that will teach you to build Backbone.js applications quickly and efficiently.

Who this book is written for

This book is targeted towards developers. It is assumed that you have at least a basic understanding of JavaScript and jQuery selectors. If you are interested in building dynamic Single Page Applications that interact heavily with a backend server, then this is the book for you.

商品描述(中文翻譯)

建構您的第一個 Backbone.js 應用程式,這本易於遵循的入門指南涵蓋所有基本要素。

概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 通過提供具有鍵值綁定和自定義事件的模型來結構化您的網頁應用程式
- 保持多個客戶端與伺服器的同步
- 以直觀且一致的方式持久化數據

詳細內容
讓一個專案失控並變得完全無法維護是很容易的。然而,通過構建一個結構良好的 Backbone.js 應用程式,可以避免這種情況。在處理涉及大量 JavaScript 的網頁應用程式時,應用程式可能最終變成錯綜複雜的 jQuery 選擇器和回調函數,所有這些都在瘋狂地嘗試在 HTML UI、JavaScript 邏輯和伺服器上的數據庫之間進行同步。使用 Backbone.js,您可以將數據表示為模型,這些模型可以被創建、驗證、銷毀並保存到伺服器。

《Instant Backbone.js Application Development Starter》是一本適合初學者的書,將指導您通過逐步過程,從一個空的專案目錄開始,最終構建一個功能完整的網頁應用程式。這本書還包括易於使用的代碼範例,將引導您了解 Backbone.js 提供的主要功能。

《Instant Backbone.js Application Development Starter》探討了 Backbone.js 提供的主要物件類型,並讓您實例化每個物件的專門版本。這些物件存儲在各自的獨立檔案中,並協同工作以構建結構良好的應用程式。

您的數據將使用 Collections 和 Models 進行存儲,並通過 Views 和 Templates 呈現給用戶。由於路由功能,URL 將保持美觀,您的瀏覽歷史仍然可以正常運作。您還將學習如何構建一個使用 AJAX 與後端伺服器平滑通信的 JavaScript 單頁應用程式。

您將從這本書中學到的內容
- 使用 Models 存儲單個數據記錄
- 使用 Collections 遍歷單個 Models
- 利用模板輕鬆創建標記
- 通過 Views 向用戶呈現數據
- 在您的視圖中觸發事件
- 使用 Routing 類開發美觀的 URL
- 保持良好結構的代碼目錄
- 將數據持久化到網頁伺服器

方法
掌握一項新技術,了解它是什麼以及它能為您做什麼,然後開始使用最重要的功能和任務。這本書是一個實用的逐步教程,將教您快速有效地構建 Backbone.js 應用程式。

本書的目標讀者
本書針對開發人員。假設您至少對 JavaScript 和 jQuery 選擇器有基本的理解。如果您有興趣構建與後端伺服器密切互動的動態單頁應用程式,那麼這本書就是為您而寫的。