addyosmani (Addy Osmani)
Installation is one-line, once you have node.js. In your console, run: npm install -g brunch Getting started Create a new Brunch project:
Formatting dates moment().format('MMMM Do YYYY, h:mm:ss a'); moment().format('dddd'); moment().format("MMM Do YY"); moment().format('YYYY [escaped] YYYY'); moment().format(); April 5th 2014, 2:22:39 pmSaturdayApr 5th 142014 escaped 20142014-04-05T14:22:39+02:00
Build a Contacts Manager Using Backbone.js: Part 4 In part four of this series, we saw how easy it is to add and remove models from our collection, and keep the page updated in sync with the changes. In this part, we're going to look at editing existing model data. Getting Started We'll start out by adding another simple button to the template, which will enable editing of its data: As we are adding this button to our existing template, we can also add an entirely new template that can be used to render an editable form in which the model data can be changed.
Backbone Boilerplate Introduction This is a self-documenting example app useful for quick developer and/or learning backbone.js. There are many boiler plates for Backbone.js boilerplates popping up over the place with different philosophies. This solution aims to be absolutely light-weight and robust keeping the following points in mind; Stand on the shoulders of giants (Backbone.js, Underscore.js, Require.js, Html5Boilerplate) Perpetuate great and efficient practices for single page applications Optimized deployment consisting of one js file, one image sprite and one css file (with exceptions) One command optimization No enforced pre-compilation creating a low entry barrier to starting Modular environment (reusable, isolated testing) Speed! The project aims at being a modular backbone environment with as little authority on development as possible such that developers can innovate and contribute in an attempt to mimic the success of backbone.js ambiguous nature.
If you have spent any time looking at Backbone.js, like many others, you are probably amazed by how lightweight, flexible and elegant it is. Backbone.js is incredibly powerful, but not prescriptive in how it should be used. With great power comes great responsibility, and if you’ve tried to use Backbone.js for a large project you might be asking yourself: how do I organize my code? When thinking about “code organization” the questions you might be asking are: How do I declare and invoke Backbone types? How do I manage a separation of concerns?
To Do's Example
Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface. The project is hosted on GitHub, and the annotated source code is available, as well as an online test suite, an example application, a list of tutorials and a long list of real-world projects that use Backbone. Backbone is available for use under the MIT software license. You can report bugs and discuss features on the GitHub issues page, on Freenode IRC in the #documentcloud channel, post questions to the Google Group, add pages to the wiki or send tweets to @documentcloud. Backbone is an open-source component of DocumentCloud. Downloads & Dependencies (Right-click, and use "Save As")
One of the common issues or questions I see for Backbone.js goes something like this: “Whenever I hit the same route more than once, I end up getting seeing this call being made multiple times. It seems to accumulate another call every time I hit the route. What’s going on?” Zombies! RUN! (Managing Page Transitions In Backbone Apps)
Nailing the Interactions on Pageless Apps (with Backbone.js) | Matt Kelly | Bay Area jQuery Conf 2011 on Vimeo
Backbone Fundamentals – A Free Work-In-Progress Book For Developers Of All Levels