Backbone.Marionette.js: A Serious Progression
Backbone.Marionette.js: A Serious Progression
About the Book
The book is up to date for Marionette 2.3. In addition, you also receive the book covering Marionette 1.7.4.
Now that you've read the Gentle Introduction book and have a good grasp on Marionette fundamentals, take the next step in your journey: learn to develop advanced functionality with the framework!
This book takes up where the Marionette introduction book left off. It will use an actual API back-end developed for this book, that will be easily adaptable to your framework. Dowload the sample to see how the ContactManager application is configured to connect to the remote API.
If you'd rather use your own API, each chatper details the relevant specifications your API must conform to.
Written in the same easy to follow style as its predecessor, you should have no trouble following along as you enhance the ContactManager application. Here are some of the topics we'll cover:
- using Marionette's new Behavior functionality
- using remote APIs
- dealing with legacy APIs
- converting data received from the API using parse
- massaging data with toJSON before sending it to the API
- handling server-side responses
- properly reacting to server-side error codes (e.g. 404 Not Found)
- processing server-side validation errors
- usign deferreds or success/error callbacks
- handling validation with Backbone.Validator
- model-only validation
- form & model validation (error display)
- pagination using Backbone.Paginator
- explore pagination through client- and server-side pagination
- developing a general-purpose view to display paginated data (with automatic pagination controls maangement)
- managing the pagination controls
- managing the URL and routes
- data relationships
- manage nested collections "by hand"
- using Backbone.associations to handle associations
- using polyglot
- strategies to consider
- handling session timeouts
- handling authorization
- wrapping third-party APIs: see how we wrap GitHub's API so we can interact with Git repositories using only Backbone models and collections
- implementing a custom Backbone.sync function from start to end
- refreshing client-side data: how to manage cases where the data on the server has changed before a user sends data updates
- improving memory management
- defining methods on prototypes
- using listenTo
- starting/stopping sub-applications
Best tutorial book I've ever read on *any* programming subject, never mind one as complicated as this. Thanks for an amazing book. -- Mike Brady
I think it was worth the money, as I was really struggling to get a grip on Marionette's philosophy [...]. This book cleared things up nicely and I applaud David for keeping things simple. -- karl
I am very pleased with this book and will have all my front end guys read it before starting to hack on our app. It's a must read if you're building a complex app with Backbone and Marionette. -- John Paul Narowski
Super happy with the way this book is written and I feel that I've made leaps into understanding [...] Marionette. I really recommend everyone to read this book. -- Jo-Pierre Lerm
This was a great supplement to take my app development several notches up. -- Mark Coleman
I wish many books were written in a similar style. I would highly recommend this book. -- Mohideen Noordeen
I just want to say that both your books have been tremendously useful. I had little to no knowledge of requirejs or marionette and your books got me up to speed in just a few days.Can't wait for your upcoming 'advanced' book. -- Ronny
This book is a gem. I would not hesitate recommend this book to anyone who wants to dive deep into Backbone.js and Marionette. -- Branden
I never finished a book so fast! -- Chris Ballenger
I'm only 1/2 way through the book right now, but... wow. Very well written and concise. I like the approach of refactoring the app as you work. -- Bastidias
This book was fantastic in teaching me a solid approach. -- Adam
David's writing style makes it seem like you have a super-calm coach in the room with you. Highly recommended. -- Adrian Goins
The time i invested was very good. The examples works fine and they are exactly what i was looking for. I encourage everybody who wants to go ahead with SPA and this framework to start with David's book. -- Christian Neißl
I really enjoyed this book. The book is well written and is easy to understand and follow along with. -- Bryan
I followed along with the example, progressively building up the application. It was a very enjoyable experience. -- Matthieu
The best book on marionettejs around! A must have to start, I suggest also other one book about requirejs & marionette! -- Gaetano Padalino
Just finished this earlier, as always great book! spent the whole night refactoring the app I'm writing. -- marconijr
As I continue to work on my code I find myself flicking back through the book regularly to see how he has approached similar problems and I am eagerly looking forward to his next book on Marionette. -- Christo Fogelberg
I haven't had this much fun writing code in my life. Well done David! -- Chet Harrison
Loved this book as well! -- Jeff Sheffield
- Cover Credits
- Who This Book is For
- Following Along with Git
- Using the Contact Manager Application
- Adapting the Application
Dealing with Legacy APIs
- API Properties
Rewriting a Model’s
Rewriting a Model’s
- Using Non-Standard API Endpoints
- At the Model Level
- In the Model’s Parent Object
Exercise: Dealing with Hyphenated API Attributes
- Restoring the Original API
Wrapping a Third-Party API
- Using GitHub’s API
- Working with Repositories
callon a Prototype’s Function Definition
- Creating a New Repository
- Fetching an Existing Repository
- Deleting an Existing Repository
- Editing an Existing Repository
- Dealing with API errors
Intercepting Errors with
- Other Authentication Possibilities
- Managing Authorization on the Client Side
- Intercepting Errors with
Handling Server-Side Responses
- API Properties
- Processing 404 Errors
- Reacting to Server Response Codes
- Adapting the Edit View
- Reacting to Server-Side Validation Errors
- Deferreds Versus Success/Error Callbacks
- Validations: Client-Side Versus Server-Side
- Fixing the Modal Edit
- Fixing the “New” Action
- Handling Errors on Collection Fetch
Refreshing Client-Side Data
- Beware Race Conditions
- Reapplying Server-Side Changes to the Client-Side Model
- Checking for Server-Side Data Changes
- Improving the Comparison Code
- Updating Client-Side Data
- Properly Updating Data on Modal Dialog Close
- Fixing a UI Glitch
fullNameUp to Date
- Fixing the Modal Display
- UI Challenges Aren’t so Simple
- A Side Note on Testing
Handling Validation with a Plugin
- Model-Only Validation
- Defining Custom Error Messages
- Form + Model Validation
- Client-Side Pagination
- Building a Generic Paginated View
- Making the Pagination Controls Functional
- Propagating Events
- Keeping the URL in Sync
- Loading State from the URL
- Server-Side Pagination
- Defining Methods on Prototypes
- Using Marionette Controllers
- Module Start/Stop
Working with Model Relationships
- API Properties
- Parsing Sub-Models Manually
- Paginating Acquaintances
- Adding Strangers to the Mix
- Using Backbone.Associations
- Introducing Marionette Behaviors
- Managing Routes
- Redirecting Unsupported Languages
- Internationalizing Links
- Introducing Polyglot
- Translating Templates
- Loading Translation Files
- Implementing Language Selection
- Keeping in Touch
- Other Books I’ve Written
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Algebra-Driven DesignSandy Maguire
A how-to field guide on building leak-free abstractions and algebraically designing real-world applications.
Production HaskellMatt Parsons
Are you excited about Haskell, but don't know where to begin? Are you thrilled by the technical advantages, but worried about the unknown pitfalls? This book has you covered.
The Hundred-Page Machine Learning BookAndriy Burkov
Everything you really need to know in Machine Learning in a hundred pages.
Ansible for DevOpsJeff Geerling
Ansible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Machine Learning EngineeringAndriy Burkov
"If you intend to use machine learning to solve business problems at scale, I'm delighted you got your hands on this book."
—Cassie Kozyrkov, Chief Decision Scientist at Google
"Foundational work about the reality of building machine learning models in production."
—Karolis Urbonas, Head of Machine Learning and Science at Amazon
Cloud StrategyGregor Hohpe
“Strategy is the difference between making a wish and making it come true.” A successful migration to the cloud shouldn’t be driven by wishes, but guided by a sound strategy, frameworks, and decision models. This book tells you how—without becoming superficial nor getting lost in technology and product details.
CCIE Service Provider Version 4 Written and Lab Exam Comprehensive GuideNicholas Russo
The service provider landscape has changed rapidly over the past several years. Networking vendors are continuing to propose new standards, techniques, and procedures for overcoming new challenges while concurrently reducing costs and delivering new services. Cisco has recently updated the CCIE Service Provider track to reflect these changes; this book represents the author's personal journey in achieving that certification.
CCIE SP v4.1 - WorkbookŁukasz Bromirski, Piotr Jablonski, and Nicholas Russo
Are you striving to prepare to and pass CCIE SP lab exam? Take the opportunity and get this workbook! With the attached initial cfg files you will prepare yourself for the CCIE SP exam as well as learn SP technologies applicable to all kinds of today modern networks! This workbook covers blueprint topics and provides challenging examples.
C++ Best PracticesJason Turner
Level up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Introducing EventStormingAlberto Brandolini
The deepest tutorial and explanation about EventStorming, straight from the inventor.
The Node.js Bundle
3 BooksThis bundle combines three bestselling Leanpub Node.js books into a package that gives you everything you need to get started with developing Node.js applications at an unbeatable price.
The Tester's Library
8 BooksThe Tester's Library consists of eight five-star books that every software tester should read and re-read. As bound books, this collection would cost over $200. Even as e-books, their price would exceed $80, but in this bundle, their cost is only $49.99. Here are the books, and why they should be in your library: Perfect Software and Other...
11 BooksIn this bundle, you will find 10 different agile books. They are about different aspects of being agile. - finding a job - doing coding dojo's - Retrospectives - Personal kanban - a non-typical coaching book and even a book that gives you an insight in the lives of some agile people.
WTFlop 6M + HU - Beta Bundle
Fifty Quick Ideas
3 BooksGet all three books for the price of two! Fifty Quick Ideas books are full of practical, real-world techniques that you can use to improve teamwork, build better products and build them in a better way.
Growing Agile: Coach's Guide Series
4 BooksThis bundle provides a collection of training and workshop plans for a variety of agile topics. The series is aimed at agile coaches, trainers and ScrumMasters who often find themselves needing to help teams understand agile concepts. Each book in the series provides the plans, slides, handouts and activity instructions to run a number of...
Marionette.js A to Z
Complete Scala Bundle
3 BooksScala is a general-purpose programming language and it's getting extremely popular these days. Some say that learning Scala could be a challenging task. My experience, however, suggests that this is actually a myth that has very little to do with reality. With the right approach, learning Scala can be easy, fun and rewarding.The first book from...
Build A Better Backbone App
3 BooksThe best way to learn new development skills is through experience, but that takes time you don't have.Get the best of both worlds with this bundle: you'll learn how to produce modern web applications by learning from experienced developers like Derick Bailey and David Sulc. BackboneJS is one of the favorite tools on the web today, but it...