Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to learn backbone.js? Any other alternatives? [closed]

I'm just starting to get into backbone.js. It looks like it's pretty involved and won't be something you can just look at one example and say, "Well, that's easy!" and start being productive with it. It does look good though.

The documentation is okay, but I find myself not understanding the 'big picture' very well, and how all of these components work together. The way events are bound and rendered in the various views actually seems like a lot of entanglements. I understand the need for separation of concerns, but I am actually wondering if it's just a tad over-engineered.

Essentially... I won't be able to be immediately productive with backbone.js. There is going to be a a day or two learning curve I think.

What is the best way to get into backbone.js? Just keep chugging along, or are there some larger sample applications to download somewhere to look at?

Are there better alternatives that might be easier to learn and offer the same sort of benefits? For me, productivity and intuitiveness are pretty important. I sort of feel like the way backbone.js works is a little foreign. That could just be me.

Put another way, would it maybe be better to develop my application without a library like backbone and sort of organically create a framework like backbone.js but more like something that is intuitive to me and something more inline with the resultant code base?

I've been trying to get simple examples to work with my own code, and I get no Javascript errors... but it doesn't work. There's a good chance that "one minor thing" is wrong... but I'm beginning to feel that debugging my backbone applications might be a problem... so perhaps organically growing my own might actually be a better option for my own sanity. Debugging in the dark is a real productivity killer... and honestly, I'd rather do my own framework and write my own code if it spares me hours of endless debugging.

I don't know what to do - hence why I am asking.

like image 573
egervari Avatar asked May 17 '11 00:05

egervari


People also ask

What is backbone JS comparable to?

Vue. js, React, AngularJS, Angular 2, and Ember. js are the most popular alternatives and competitors to Backbone. js.

Is Backbone JS easy to learn?

Backbone.js Is Friendlyjs is neither difficult to learn nor difficult to use, and the time you will spend learning to use this serviceable framework will be well worth it, for you will learn how to use one of the most popular front-end frameworks and learn how to build modern web applications on the front end.

Do people still use Backbone JS?

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.

What is the use of backbone JS?

BackboneJS is a lightweight JavaScript library that allows to develop and structure the client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events.


2 Answers

As with learning a lot of programming related things, my advice would be:

  • Pick a task you think is suitable for what you're working with
  • Attempt to execute that task
  • If you find you're stuck, show the code you have and explain what you think should be happening. Make sure you check documentation to verify your functions work as you expect them to.
  • As you progress, people will also show you more standard and efficient ways to do things
  • Keep doing this until you become more familiar with how things work
  • Now, look over documentation in depth to help fully master how it works as a whole, continuing to ask questions
  • Pretty soon you'll be answering questions more than asking them
like image 158
onteria_ Avatar answered Oct 13 '22 10:10

onteria_


I've come across the awesome book, Developing Backbone.js Applications by Addy Osmani. Addy has clearly explained MVC, writing modular code, testing JS code using jasmine and many more in detail.

EDIT:

There is an open source version of the same book as well.

like image 29
codef0rmer Avatar answered Oct 13 '22 11:10

codef0rmer