Backbone.js Cookbook

Vadim Mirgorod

  • 出版商: Packt Publishing
  • 出版日期: 2013-06-01
  • 售價: $1,840
  • 貴賓價: 9.5$1,748
  • 語言: 英文
  • 頁數: 282
  • 裝訂: Paperback
  • ISBN: 1782162720
  • ISBN-13: 9781782162728
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

For JavaScript developers the Backbone.js framework is full of potential. This book, with its accessible recipes, allows you to get to grips with building modern frontend web applications, quickly and easily.

Overview

  • Easy-to-follow recipes to build dynamic web applications
  • Learn how to integrate with various frontend and mobile frameworks
  • Synchronize data with a RESTful backend and HTML5 local storage
  • Learn how to optimize and test Backbone applications

In Detail

There is no doubt that the superior rendering power of HTML5, thin-to-thick client transition and REST style communication created a new era in web development, replacing the outdated approach based on browser plugin technologies. Backone.js allows developers to write lightweight, modular, and scalable JavaScript applications.

Backbone.js Cookbook contains a series of recipes that provide practical, step-by-step solutions to the problems that may occur during frontend application development using an MVC pattern. You will learn how to build Backbone applications utilizing the power of popular Backbone extensions and integrating your app with different third party libraries. You will also learn how to fulfill the requirements of the most challenging tasks.

The first chapter of the book introduces you to the MVC paradigm and teaches you how to architect rich Internet applications operating with basic concepts of Backbone.js. During the reading of this book you will learn how to solve challenging problems leveraging Backbone objects such as models, collections, views, routers, and so on.

You learn how to use forms, layouts, templating engines, and other Backbone extensions, which will help you to complete specific features of your application. You will understand how to bind a model to a DOM element. You will see how perfectly Backbone.js integrates with third party libraries and frameworks such as jQuery, Zepto, Underscore.js, Require.js, Mustache.js, Twitter Bootstrap, jQueryMobile, PhoneGap and many others. This book will guide you in how to optimize and test your applications, create your own Backbone extensions, and share them with the open source community.

With the help of Backbone.js Cookbook, you will learn everything you need to know to create outstanding rich Internet applications using the JavaScript programming language.

What you will learn from this book

  • Architecting and building dynamic web applications in an MVC style
  • Modeling business logic with Backbone models and collections
  • Rendering data with Backbone views
  • Routing URLs within your application
  • Communicating with a RESTful service
  • Using HTML5 local storage to store models and collections
  • Optimizing and testing Backbone applications
  • Writing your own Backbone extensions
  • Ensuring compatibility with search engines
  • Creating mobile apps with jQueryMobile and PhoneGap

Approach

This is a Cookbook with easy-to-follow recipes, containing practical and detailed examples which are all fully backed up with code, illustrations, and tips to dig deep into Backbone.js.

Who this book is written for

This book is great for JavaScript developers who want to learn how to build advanced frontend applications with the Backbone.js framework. This book can be used in educational institutions to teach students how to build frontend applications in an MVC manner.

It's assumed that you have some experience in jQuery, and are familiar with HTML.

商品描述(中文翻譯)

對於 JavaScript 開發者來說,Backbone.js 框架充滿潛力。本書提供易於理解的食譜,讓您能夠快速輕鬆地掌握構建現代前端網頁應用程式的技巧。

概述
- 易於遵循的食譜來構建動態網頁應用程式
- 學習如何與各種前端和移動框架整合
- 與 RESTful 後端和 HTML5 本地存儲同步數據
- 學習如何優化和測試 Backbone 應用程式

詳細內容
毫無疑問,HTML5 的卓越渲染能力、從薄客戶端到厚客戶端的轉變以及 REST 風格的通信創造了一個網頁開發的新時代,取代了基於瀏覽器插件技術的過時方法。Backbone.js 使開發者能夠編寫輕量級、模組化和可擴展的 JavaScript 應用程式。

《Backbone.js 食譜》包含一系列食譜,提供實用的逐步解決方案,以應對在使用 MVC 模式進行前端應用程式開發時可能出現的問題。您將學習如何利用流行的 Backbone 擴展的力量來構建 Backbone 應用程式,並將您的應用程式與不同的第三方庫整合。您還將學習如何滿足最具挑戰性的任務的要求。

本書的第一章介紹了 MVC 範式,並教您如何架構運行基本概念的豐富互聯網應用程式。閱讀本書的過程中,您將學習如何利用 Backbone 對象(如模型、集合、視圖、路由器等)來解決具有挑戰性的問題。

您將學習如何使用表單、佈局、模板引擎和其他 Backbone 擴展,這將幫助您完成應用程式的特定功能。您將了解如何將模型綁定到 DOM 元素。您將看到 Backbone.js 如何與 jQuery、Zepto、Underscore.js、Require.js、Mustache.js、Twitter Bootstrap、jQueryMobile、PhoneGap 等第三方庫和框架完美整合。本書將指導您如何優化和測試您的應用程式,創建自己的 Backbone 擴展,並與開源社群分享。

在《Backbone.js 食譜》的幫助下,您將學習到創建出色的豐富互聯網應用程式所需的所有知識,使用 JavaScript 程式語言。

您將從本書中學到的內容
- 以 MVC 風格架構和構建動態網頁應用程式
- 使用 Backbone 模型和集合建模業務邏輯
- 使用 Backbone 視圖渲染數據
- 在應用程式中路由 URL
- 與 RESTful 服務進行通信
- 使用 HTML5 本地存儲來存儲模型和集合
- 優化和測試 Backbone 應用程式
- 編寫自己的 Backbone 擴展
- 確保與搜索引擎的兼容性
- 使用 jQueryMobile 和 PhoneGap 創建移動應用程式

方法
這是一本包含易於遵循的食譜的食譜書,包含實用且詳細的範例,所有範例均有代碼、插圖和提示支持,深入探討 Backbone.js。

本書的讀者對象
本書非常適合希望學習如何使用 Backbone.js 框架構建高級前端應用程式的 JavaScript 開發者。本書可用於教育機構,教導學生如何以 MVC 方式構建前端應用程式。

假設您對 jQuery 有一定的經驗,並且熟悉 HTML。