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.
Developing a well structured application wasn’t so straight forward for me when I started. Sure, using Backbone.js, angular.js, require.js contributed some benefits. Overtime, I stepped into automation with grunt.js. I discovered the true beauty in structuring and organising any code base to be modular enough – so both development & production will fit to my […]
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 […]