TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Backbone.js Tutorial - by noob for noobs

44 pointsby thomasdavisover 14 years ago

5 comments

emehrkayover 14 years ago
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?
评论 #2158051 未加载
评论 #2158049 未加载
eferraiuoloover 14 years ago
I thought it would be interesting to create a comparable example of this mini-app with basic YUI 3 code: <a href="http://jsfiddle.net/ericf/wpuCm/" rel="nofollow">http://jsfiddle.net/ericf/wpuCm/</a><p>backbone.js seems like a great library, and MVC is on the YUI 3 roadmap ( <a href="http://yuilibrary.com/projects/yui3/roadmap" rel="nofollow">http://yuilibrary.com/projects/yui3/roadmap</a> ), hopefully some of the concepts from backbone get implemented in the YUI’s MVC layer.
alexpeattieover 14 years ago
A very minor suggestion, but I think the last line (var appview = new AppView) is a little bit confusing on first reading - it's not immediately obvious that you're setting the variable to initiate the view... I've seen it written elsewhere like so:<p><pre><code> window.App = new AppView </code></pre> which I think is a good idiom.
评论 #2158528 未加载
TimothyBurgessover 14 years ago
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.<p>Off topic but... what in the world is up with the lowercase b's, d's, and u's on that site? Haha :)
评论 #2157996 未加载
citricsquidover 14 years ago
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".<p><a href="http://www.urbandictionary.com/define.php?term=noob" rel="nofollow">http://www.urbandictionary.com/define.php?term=noob</a>
评论 #2158414 未加载
评论 #2158022 未加载