Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start in BackboneJS, if I have a jQuery background? [closed]

How can I start in BackboneJS, if I have a jQuery background?

If I am familiar with developing client-side applications in jQuery, but now I want to start with BackboneJS. So can you describe the pattern or model(paradigm) which is necessary ?

Below are some questions that might help you make an answer:

  • How can I architect and design client-side web applications in terms of JS?
  • What are the Do's & Dont's?
  • Is there any server side restrictions for which I have to pay more attention?

I am not seeking for a detailed comparison between jQuery and BackboneJS. I just want to start with Backbone and want to build and think any application in terms of architectural design.

like image 970
PythonDev Avatar asked Apr 12 '14 10:04

PythonDev


People also ask

Does backbone require jQuery?

You can use the Backbone. Model without jQuery, but Backbone. View will require either jQuery or Zepto, just like the docs state. Chances of not using view and router is low enough.

Is Backbone JS still relevant?

Backbone. Backbone has been around for a long time, but it's still under steady and regular development. It's a good choice if you want a flexible JavaScript framework with a simple model for representing data and getting it into views.

Which function has to be used when you want to trigger the event only once before being removed?

js Event once() The event once method is just like event on method but it causes the bound callback to only fire once before being removed.


1 Answers

Here is what I find most useful for up and running with backbone.js: Lynda.com Up and running with Backbone.js with Joseph LeBlanc

I think this is the best way to get started with backbone.js for one who has previous experience in Javascript/jQuery. The duration of the course is 1h33m. And here are the contents:

Backbone helps you separate DOM manipulation from the data powering your web application. In this course, learn how to use Backbone models and collections to manage your data, while displaying it through views. Author Joseph LeBlanc shows you how to use events to change an application's state and avoid messy nested callback functions. He explores modifying resources on the server side via models that reflect the changes in your application, tune your application's performance, and keep the JavaScript environment clear of excessive global variables. He also covers supplementary tools based on Backbone that provide additional functionality.

Topics include:

  • What is Backbone.js?
  • Starting a node server
  • Building routes
  • Creating views
  • Reusing views and building view templates
  • Defining models
  • Loading remote data
  • Organizing collections
  • Adding and removing models
  • Saving and deleting data
  • Bootstrapping data
  • Finding Backbone resources
like image 183
Arslan Ali Avatar answered Oct 02 '22 13:10

Arslan Ali