Live data from Hacker News

Backbone.js Tutorial - by noob for noobs

thomasdavis.github.com

1–10 of 22 posts

Re: Backbone.js Tutorial - by noob for noobs

#2
It's a good library in theory... but it could and should be condensed to a fraction of its size. Maybe I'm just being too critical and OCD but I feel like there's too much code for what it actually does.

Off topic but... what in the world is up with the lowercase b's, d's, and u's on that site? Haha :)

Re: Backbone.js Tutorial - by noob for noobs

#4

It's a good library in theory... but it could and should be condensed to a fraction of its size. Maybe I'm just being too critical and OCD but I feel like there's too much code for what it actually does. Off topic but... what in the world is up with the lowercase b's, d's, and u's on that site? Haha :)

Could I possibly get a screen shot lol

I will have to disagree.

By condensed do you mean the code could be implemented better? Or do you think there are too many useless methods?

Just some things I have noticedl

Backbones Controller/History beats most jQuery plugins and generally Backbone.js will still be smaller then the plugins for example jQuery BBQ or Baluptons implementation.

The Backbone.sync method forces you to route all ajax calls through one gateway which means you have no code redundancy.

Backbone is built to work along side of underscore.js which is also super light weight. Also very fast at manipulating the DOM and includes a default templating system which works great.

Re: Backbone.js Tutorial - by noob for noobs

#6

For a community built off of a word that is almost always misunderstood by "normal people" you guys sure do misuse the word noob an awful lot. noob is negative, the word you want is "newb" or "newbie". http://www.urbandictionary.com/define.php?term=noob

http://en.wikipedia.org/wiki/Tongue-in-cheek

Re: Backbone.js Tutorial - by noob for noobs

#7
post #5

His model (Friends Collection) is doing view duty. Shouldnt the addFriendLi method be apart of the controller binding the Friend(s) model and AppView view?

I looked back at the code and you're right so I patched it up.

Thanks!

Anyone wanting to see what I was doing wrong can go to the link below https://github.com/thomasdavis/thomasdavis.github.com/blob/8...

Re: Backbone.js Tutorial - by noob for noobs

#9
post #8
post #5

His model (Friends Collection) is doing view duty. Shouldnt the addFriendLi method be apart of the controller binding the Friend(s) model and AppView view?

Yeah, that ought to be in the controller or provided in a helper method outside the model.

Backbone Views and standard MVC controllers are synonymous so I placed it in the Backbone View.

Re: Backbone.js Tutorial - by noob for noobs

#10

It's a good library in theory... but it could and should be condensed to a fraction of its size. Maybe I'm just being too critical and OCD but I feel like there's too much code for what it actually does. Off topic but... what in the world is up with the lowercase b's, d's, and u's on that site? Haha :)

Could I possibly get a screen shot lol I will have to disagree. By condensed do you mean the code could be implemented better? Or do you think there are too many useless methods? Just some things I have noticedl Backbones Controller/History beats most jQuery plugins and generally Backbone.js will still be smaller then the plugins for example jQuery BBQ or Baluptons implementation. The Backbone.sync method forces you…

I think what Timothy is saying is that in order to just add some items to a tag, there's too much code happening in the tutorial.

... Which is totally true. You only get to the point where something like Backbone would be an advantage when you have rich models with editable state.

Post reply on HN