Re:Agility.js - Javascript MVC for the "write less, do more"...
by josscrowcroft on Friday July 22, 2011 @01:40PM
(#2794433)
Does seem very neat and I like the proposal except for the idea that all JS/CSS/HTML are all contained in the same code... that to me seems like a recipe for headaches down the line, even if it does speed up initial development.
[ Parent
| on HN ]
Re:Agility.js - Javascript MVC for the "write less, do more"...
by arturadib on Friday July 22, 2011 @01:58PM
(#2794493)
Hey there, I think it's actually the other way around -- down the line, I will appreciate the fact that all that stuff is right within the object I need to work on.
There's no need to go around multiple HTML/CSS/JS files looking for the ids/classes I need to maintain. It's all right there.
(I agree that the need for a backslash is annoying, but the tradeoff is favorable in my opinion).
That being said, you don't have to use in-object CSS, and very soon we'll be relaxing the HTML requirement as well.
Re:Agility.js - Javascript MVC for the "write less, do more"...
by rufugee on Friday July 22, 2011 @04:02PM
(#2794964)
I kind of like that idea as well, although the escaping is a little ugly. The purist in me wishes I was always dealing with objects which knew how to display themselves and behave. Then I'd simply be an object arranger/orchestrator and life would be simple. What is wrong with this approach really?
Re:Agility.js - Javascript MVC for the "write less, do more"...
by jpadvo on Friday July 22, 2011 @05:57PM
(#2795321)
If you use this with Coffeescript, you don't need the backslashes. :)
Re:Agility.js - Javascript MVC for the "write less, do more"...
by yaix on Friday July 22, 2011 @03:02PM
(#2794744)
That is actually one part I liked, especially the HTML.
For bigger projects I would do the development of different parts of the app in different JS files and have a server side script combine them when requested from a web browser.