News for hackers. Stuff that matters.
Re:Backbone.js Tutorial - by noob for noobs by TimothyBurgess on Sunday January 30, 2011 @08:23AM (#2157986)
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 by thomasdavis on Sunday January 30, 2011 @08:27AM (#2157996)
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 by jashkenas on Sunday January 30, 2011 @10:23AM (#2158203)
I think what Timothy is saying is that in order to just add some <li> items to a <ul> 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.

Re:Backbone.js Tutorial - by noob for noobs by TimothyBurgess on Sunday January 30, 2011 @03:07PM (#2158994)
Along those lines is exactly what I'm saying... in addition to shortening the function names and other small (yet important size-wise) optimizations that would really help out in the long run. If I had the time I'd specifically address each optimization, but I don't.

It's cool that my comment is at -1 points. Thanks HN! You make me want to return here more and more every day with your unbiased contributions.

Re:Backbone.js Tutorial - by noob for noobs by alexpeattie on Sunday January 30, 2011 @11:20AM (#2158321)
This shows the problem with the b's and d's (also the u's):

http://i.min.us/ickmjM.png

its just that they descend below the baseline, which looks a bit odd. The effect only appears at the default text zoom (on FF for Windows).

Re:Backbone.js Tutorial - by noob for noobs by Pheter on Sunday January 30, 2011 @12:06PM (#2158448)
The same problem occurs in Chrome on Windows.