Live data from Hacker News

Spine -- A lightweight framework for building JavaScript web applications

maccman.github.com

1–10 of 50 posts

Re: Spine -- A lightweight framework for building JavaScript web applications

#6
post #4

wasn't this backbone.js ? the TODO example is the same one !!

From the FAQ:

"Well, it's true that Spine was inspired by Backbone, an excellent library, and its controller API is very similar. However, the similarities end there. Internally the library works very differently. For example, Spine has no need for Collections, which are required for pretty much every model in Backbone. Spine provides a class library, and has very different ideas when it comes to server sync. Lastly, Spine is much simpler and half the size, go and check out the source."

http://maccman.github.com/spine/#h-faq

Re: Spine -- A lightweight framework for building JavaScript web applications

#7
post #4

wasn't this backbone.js ? the TODO example is the same one !!

from the FAQ:

> Whoah - your API looks really similar to Backbone. Why should I use this instead? > Well, it's true that Spine was inspired by Backbone, an excellent library, and its controller API is very similar. However, the similarities end there. Internally the library works very differently. For example, Spine has no need for Collections, which are required for pretty much every model in Backbone. Spine provides a class library, and has very different ideas when it comes to server sync. Lastly, Spine is much simpler and half the size, go and check out the source.

Re: Spine -- A lightweight framework for building JavaScript web applications

#8
Seems neat, but it would have been nice to differentiate itself from backbone a little more upfront. The sites even look similar.

The key architectural difference seems to be that the ui is updated before the server responds, which is great in a single user situation, but can get pretty inconsistant once you're in a multi user app.

I do have to say that I like the patterns section at the end, it's always good to see a prescription for how you would use a library or framework.

Re: Spine -- A lightweight framework for building JavaScript web applications

#9
post #4

wasn't this backbone.js ? the TODO example is the same one !!

This isn't Backbone.js -- it's an alternative. Different codebase, different function names, partially overlapping API.

At the top of the FAQ, he answers some of the comparison questions: http://maccman.github.com/spine/#h-faq

The bit about it being smaller is pretty misleading (especially when comparing 2k to 3k) -- it may be 500 lines instead of 1100, but the 1100 are heavily commented, and the 500 are entirely comment-less. It also doesn't include any of the collection mapping, filtering, and aggregation functions, which contain a large part of the usefulness of Backbone when used with real models.

Re: Spine -- A lightweight framework for building JavaScript web applications

#10

I'll have to have a dig around the code to see what's different from Backbone. Were you involved with this development, Jeremy?

Nope -- someone just sent me the link this morning, and it was interesting to poke around the internals.
Post reply on HN