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 UI

270 pointsby liangzanalmost 13 years ago

18 comments

ajitkalmost 13 years ago
I wonder why they choose not to use native input element for a checkbox. Was it for a consistent visual theme?<p>Using custom widgets instead of native often leads to usability issues. In this case, when the a checkbox gains focus, a SPACE BAR scrolls the page instead of toggling its state.
评论 #4131124 未加载
评论 #4132807 未加载
creamyhorroralmost 13 years ago
For those who are looking for this, but for a more opinionated, less-tabula-rasa framework, there's Angular-UI for AngularJS. (AngularJS provides more conveniences and a more defined framework than Backbone, having come later.) It's still in early development and has minimal documentation, but hopefully will grow into a nice set of widgets and wrappers for Angular users.<p>Go right ahead and test it out at:<p><a href="http://angular-ui.github.com/" rel="nofollow">http://angular-ui.github.com/</a><p>edit: there are also connectors for Angular-Sencha-Touch and Angular-jQuery-Mobile and an attempt at an Angular-Bootstrap connector...hopefully they'll all keep growing
mkmcdonaldalmost 13 years ago
&#62; This framework is written to embrace the DOM rather than fight it.<p>And yet <i>three</i> separate libraries with DOM abstractions are required.<p>Why should I trust your opinion of the DOM if you require so much third-party code?
评论 #4133197 未加载
dclowd9901almost 13 years ago
Just so we're clear, we got away from things like jQuery's approach to Javascript to get clumsy JS off of a DOM basis. We built a "back-front-end", as I lovingly refer to it, to keep objects more... well, object-y.<p>Then we turn around and use that framework to clumsily tie back together presentation and logic. Wonderful.<p>Templates aren't a hack. They are they method to create extensible objects in the presentation layer. Backbone UI users seems to be forgetting Backbone's original intent.
MatthewPhillipsalmost 13 years ago
JQuery dependency is a deal-breaker for me. Telling library consumers that you <i>require</i> another, near 10,000 LOC, library is asking a lot. JQuery should be for end developers only.<p>Instead write your libraries to HTML standards, and provide links to polyfills that they'll need. Don't assume everyone is targeting IE6.
评论 #4131663 未加载
评论 #4131744 未加载
评论 #4132666 未加载
评论 #4132380 未加载
ErrantXalmost 13 years ago
Still working through it; a pleasant collection of UI components that, as they say, will be useful to some.<p>But what stands out is the quality of documentation. Very impressive and clear.
tzuryalmost 13 years ago
Nice, I wish one will do the same with twitter-bootstrap.<p>JQuery+Backbone+TwitterBootstrap = Fun+Joy.
评论 #4131377 未加载
评论 #4131770 未加载
bdunnalmost 13 years ago
Component-izing Backbone views is a fantastic idea, and something I'm doing pretty frequently with Planscope.<p>Your average jQuery plugin has you modifying state via invoking the plugin again on a selector with like a string argument that represents a function - this always felt clunky to me.<p>However, by using Backbone views to wrap logic, componentInstance.hide() or whatever else is doable, and IMO a lot more elegant. Nice work!
评论 #4131469 未加载
ilakshalmost 13 years ago
This is just a little bit towards the direction I am going with my project. <a href="https://github.com/ithkuil/cureblog" rel="nofollow">https://github.com/ithkuil/cureblog</a> I also made a video of an earlier version (spent a day modernizing the UI a bit since then and I think it looks much better now, also improved a few other things but the basic concepts are the same). In case anyone is interested in extending this idea of components even farther than he is going in Backbone UI (for example to a Node.js backend). <a href="https://vimeo.com/43784316" rel="nofollow">https://vimeo.com/43784316</a>
lucian1900almost 13 years ago
Looks very nice. I'm going to see how it does on mobiles.<p>I'm <i>just</i> now looking into alternatives to the dreadful jQuery Mobile for a Backbone-based app.
评论 #4131073 未加载
pestaaalmost 13 years ago
Loving it already.<p>Fantastic JavaScript -- but styling mechanism leaves a lot to be desired. I understand beautiful graphics are not the scope of this work, however, the CSS-only approach might not be flexible enough for most designers.<p>Is this normal? Can anyone comment on this, please? How would one go about dressing this up?<p>Again, thanks for the great work!
评论 #4131123 未加载
评论 #4131393 未加载
shaunxcodealmost 13 years ago
here is my alternative to laconic:<p><pre><code> String.prototype.$tag = (args...) -&#62; args.unshift "&#60;#{@toString()}/&#62;" $.apply window, args ("ul".$tag class: "someUL" html: "li".$tag text: "some text in an li" class: "some class" click: -&#62; console.log "some click event").appendTo 'body'</code></pre>
usablebytesalmost 13 years ago
I found it a little unnecessarily complex. Also the way events are handled, tight coupling between components is unavoidable.
mcginleyr1almost 13 years ago
Much cleaner then Google Closure IMHO.
评论 #4135531 未加载
charliemageealmost 13 years ago
It's reminding me of Angular. Can you say something about similarities/differences?
eagsalazaralmost 13 years ago
I'm confused by their description of templates as "messy" and their decision to use laconic. Not an opinion that I think is widely held and definitely doesn't make sense to me. (by html templates do they specifically mean ejs/erb type templates versus jade/haml??)<p>Using html templates is good separation of concerns and js just isn't very good at expressing html structure. Jade would have been a much better choice IMO. Laconic does a good job of minimizing the problems with using js to programatically build dom in js but still doesn't come close to a proper templating language.
评论 #4131659 未加载
评论 #4131378 未加载
rorrralmost 13 years ago
When I paste text into a textarea or input fields using the mouse, your models don't update.
评论 #4134559 未加载
fizxalmost 13 years ago
Wait, is this by the same people as Backbone? If not, then why is it cribbing the name?
评论 #4131400 未加载
评论 #4131569 未加载
评论 #4131265 未加载
评论 #4131300 未加载