Регистрация ·  Логин: Пароль: Запомнить   · Забыли пароль?




Ответить на тему
Автор Сообщение

Модератор
Аватара пользователя

С нами: 11 лет
Сообщения: 7870
Молдова

Сообщение 11 янв 2016, 21:37 

[Цитировать]

Structuring Backbone Code with RequireJS and Marionette Modules


Год: 2014
Автор: David Sulc
Издательство: Leanpub
ISBN: пока не присвоен
Язык: Английский
Формат: PDF/MOBI/EPUB
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 122
Описание: Due to popular demand from my well-received previous book on Marionette (Backbone.Marionette.js: A Gentle Introduction), I've taken the Contact Manager application developed in that book and rebuilt it using RequireJS to load dependencies. It has great feedback so far, and I hope you'll like it, too!

Who This Book is For

Essentially, this book is written as a sequel of sorts to my first book. If you want to learn about using RequireJS and AMD (Asynchronous Module Definition) to use in your own applications, you should be fine following along provided you're comfortable with Marionette and its modules, as well as the Contact Manager application (see its source code). In other words, this book does not cover how to develop a Marionette application, only how to use RequireJS to manage dependencies and optimization/minification. If you want to learn how to create a Marionette application, refer to my Backbone.Marionette.js: A Gentle Introduction book.

What You'll Learn

Rebuilding the existing Contact Manager application, but using RequireJS to load all dependencies (other modules, libraries, templates, etc.). Common errors and their likely cause will be discussed, so you can debug your own projects more easily. Running the r.js optimizer to generate a single, minified js file will be demonstrated. In addition, you will actually understand and learn how to "think AMD" and how to apply that mindset to your own projects.

Starting/stopping sub-applications to improve performance will be demonstrated, as well as loading libraries from a CDN, with a local fallback.

Although this book is focused on using RequireJS with Backbone and Marionette, once you're done with it you should be able to use RequireJS in other projects. This is because the book emphasizes the logic behind the implementation, and once you've understood how to use shims and load dependencies, applying this knowledge to your own projects should be straightforward.

Backbone.Marionette.js: A Gentle Introduction: http://rutracker.org/forum/viewtopic.php?t=4590669
Backbone.Marionette.js: A Serious Progression: http://rutracker.org/forum/viewtopic.php?t=4708442

И здорово будет, если вы поддержите этого прекрасного автора, купив хотя бы одну его книгу: https://leanpub.com/u/davidsulc

Внимание, раздача обновлена, текущая версия книги от 18.04.2014

Внимание, раздача обновлена, текущая версия книги от 18.05.2014
Who This Book is For
Following Along with Git
Jumping in for Advanced Readers
Why Use AMD?
Getting Started
Adding RequireJS to the Mix
Using Shims
Loading the Main App
Discovering Modules
Turning ContactManager into a RequireJS Module
Including the Dialog Region as a Dependency
Listing Contacts
Modularizing the Contact Entity
Using the Contact Entity from the Main App
Listing Contacts from the List Sub-Apppplication
Requiring Views and Templates
Editing Contacts with a Modal
Expliciting Dependencies
Creating Contacts with a Modal
Exercise Solution
Further Decoupling of the Contact Module
Filtering Contacts
Exercise Solution
Adding the Loading View
Exercise Solution
Showing Contacts
Exercise Solution
Editing Contacts
Exercise Solution
Reimplementing the About Sub-Application
Exercise Solution
Reimplementing the Header Sub-Application
Exercise Solution
Marionette Modules VS Plain RequireJS Modules
Converting the Contact Entity to Plain RequireJS Modules
Using a Separate Module as the Event Aggregator
Converting the Collection
Rewriting the Show View
Rewriting the Show Action
Start/Stop Modules According to Routes
Implementation Strategy
Modifying the AboutApp
Mixing and Matching Modules
Converting the About Sub-Application to Plain RequireJS Modules
Managing Start/Stop with Mixed Module Types
Optimizing the Application with r.js
Loading with Almond.js
Closing Thoughts
Keeping in Touch
Other Books I’ve Written
Download
Для скачивания .torrent файлов необходима регистрация
Сайт не распространяет и не хранит электронные версии произведений, а лишь предоставляет доступ к создаваемому пользователями каталогу ссылок на торрент-файлы, которые содержат только списки хеш-сумм

Страница 1 из 1

Ответить на тему

   Похожие торренты   Торрент