Hacker News new | ask | show | jobs
by mattbriggs 5154 days ago
I came to the same conclusion awhile back. Also, if it is in any way possible, a view should be able to write its own HTML (the rails worl has a concept of JSTs, not sure if that has filtered out yet), and a view should never insert itself into the dom

What you get is loosely coupled, highly testable (and fast tests, since dom stuff is all in memory) ui code.

1 comments

Absolutely. To focus the blog post I didn't go any further, but I plan (at some point) to write a blog post going deeper into how (I think) views should work.