Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Two-way binding is a neat trick, but I hate that it clutters my markup, and almost always I need to augment it in some way. Backbone's declarative events hash is universally a better way to go for that.


Can you please make any other sane argument other than "it clutters my markup"? You are holding the markup to a standard which seems like there is someone out there handing out "The best clean and clutter free markup" award. End of the day you need to somehow hook up js and html. There is no second question to that. If you shovel out all the shit from html guess where it will land? In your js ( all the dom manipulation code!).


Why is it universally a better way?

<span data-bind="text: someVariable"></span>

may look ugly but it is very clear that there is a variable associated to this DOM element.

It took some time getting use to but once I realized how much it made sense I got over it.

So tell me about this universally better way to go.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: