4 ms·
Ofcourse the message here is 'too much abstraction'. There are loads of bad frameworks that want to be too smart and too clean. I mean, there is nothing wrong
by ohwp 13y ago
Ofcourse the message here is 'too much abstraction'.
There are loads of bad frameworks that want to be too smart and too clean. I mean, there is nothing wrong with writing HTML. But I've seen stuff like:
$output .= $framework->dom->returnInputElement('text', 'name', $initValue, $options);
That's nice and all but when it just returns the element without any extra functionality I think its just a waste of code and resources.
- byroot 13y ago> just returns the element without any extra functionality I hope it at least protect from XSS attacks.
- dclowd9901 13y agoA framework like this would probably scaffold the inputs for you based on your model structure, in which you do get back that you don't have to write boring ass crud stuff. Great for doing admin pages. But for consumer facing stuff, you should probably abstract to something that templates (HAML, mustache, etc).