вторник, 20 ноября 2012 г., 20:16:24 UTC+2 пользователь Brian O'Reilly написал:
Glad you liked BEM.
As for "styling generic enough", this is the problem. And the problem is that design (and makup) will not itself adapt to our needs but we have to adapt to design.
To make styling generic enough it has to pass much time and we need work to be done right now. And I think when going in that way styling protocol will crystallize itself, we will better know our needs.
For "Never write html by hand again." if you remember Slava wanted not to write html but he had to write much html. And this goal as I think much further he thought. And for my development goals I often use html (with yaclml or cl-who). So if it does not mean to "write html by hand" then we will not write it with cl-mustache and cl-who/yaclml.
So at this point I think possibility of "Never write html by hand" with weblocks at least for my projects tends to zero. In my priorities comfort in web-framework using is higher then absance of html coding and we need to go up and step by step get free from stuff like html coding (because of discomfort actually) but when going that way we should feel maximum comfort with framework.
Other problem - I don't like idea of overriding method to change some caption or to put space somewhere or to copy grid buttons (which are in bottom) to top of the grid. Overriding helps but when using weblocks widgets it is not always as elegant as lisp is. Currently to get some stuff out of widget layout we have to search for it in different widgets and it is often tricky and very difficult for newbies. Take a look at what I had to do to forbid user to add new items to grid and to delete items
https://github.com/html/m-katya-site/blob/master/src/widgets/pages-grid.lisp . If I had some layout defined with cl-mustache and yaclml I would have only to remove some stuff from it for these purposes. Or I could watch layout and to see which predicate I need to override to get work done but this would be much simpler than searching this predicate through all weblocks code. So MVC is a great pattern, IMHO it does not shine well in frameworks like rails or Zend or django but shines with components and using it with components is comfortable.
So actually with stuff I'm using I want to provide flexible layout protocol (just using separate layouts for widgets) instead of styling protocol. And for the moment layouts are more important than their styles.
As for angular.js I liked idea, it must be great for some applications and must be better than usual "frameworks mvc" but I didn't use it.
I hope this explains something and things become clearer. Would be glad to read some feedback now.
Kind Regards.,
Brian