programming

Programming tutorials, code snippets, coding tips and tricks, solutions to some of the issues I faced while programming. I believe someone else might face the same issues and this is to help them as well

Laravel, Backbone.js + Coffeescript Tutorial Part X – Backbone

Laravel, Backbone.js + Coffeescript Tutorial Part X – Backbone

In this part we’ll start some backbone stuff, and I will be using coffeescript to write and explain what each backbone code does, so I assume you have some understanding of both coffeescript syntax and also concepts of Backbone.js, What I will try to do is show you how to use these to build the(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part IX – Coffeescript

Laravel, Backbone.js + Coffeescript Tutorial Part IX – Coffeescript

In this part we will see how to setup coffeescript and how to organize your coffeescript files properly in the solution, (or the way I like to use it).Coffeescript is an easy way of writing javascript with less code and more sensible/readable way, at the beginning you may find it difficult to understand or sometimes(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part VIII – Views

Laravel, Backbone.js + Coffeescript Tutorial Part VIII – Views

  Step 1 – Download Twitter Bootstrap Visit http://twitter.github.com/bootstrap/, download the latest version and extract into a folder. Copy all files in ‘css’ folder to ‘lbc/public/css’ folder. Copy all files in ‘img’ folder to ‘lbc/public/img’ folder Create new folder called ‘lib’ under ‘lbc/public/js’ and copy all files in ‘js’ of bootstrap into ‘lib’ folder. Step(…)

More

Laravel, Backbone.js + Coffeescript Tutorial Part VII – REST API

Laravel, Backbone.js + Coffeescript Tutorial Part VII – REST API

In this part we will complete REST API we created in last post with actual business logic. (i.e. to get insert, update  and delete categories). Step 1 – Complete BaseModel Since we’re planning to work with JSON format, it would be better if we can add some helper methods to the BaseModel class we created(…)

More