A couple of years ago I started developing Echoes Player with Backbone.js, Underscore.js, Bootstrap and Require.js. Recently I migrated the code to use browserify, and i’d like to share the insights from this process.
One of the most required features for Echoes Player was auto complete for the search box. After reviewing few plugins, I decided to use jqueryui auto complete plugin, as jquery-ui has been already integrated and loaded to echoes. The challenge was integrating it seamlessly with Echoes Backbone.Model and the Backbone.View that manages the search view.
In my early days as a developer, even before Backbone.js was released, I was eager to learn about good conventions and best practices for organizing code and workflows. I knew that somewhere, someone managed to recognize a good pattern that will scale in maintainable code, reusable pieces of code and a good & solid “framework” […]
Backbone.View doesn’t implement the “render” method. According to Backbone’s Documentation: “Backbone is agnostic with respect to your preferred method of HTML templating”. So, when it comes to rendering a collection of items (or simply, a backbone collection), there’s a need to implement a method for it. In this post, I’m sharing the best practices I […]
Backbone.Router is one of the most useful objects in Backbone. It just has the right concept for managing url based navigation with an easy configuration setup. However, beyond being a great routing manager, it has an important role in MVC architecture when creating Backbone based applications. In this post we’ll explore the Router object and […]