3 ms·
What advantages does this "direct conjunction with HTML" have over templating solutions? Why do most PHP frameworks implement templates then? Also, if command
by spahl 14y ago
What advantages does this "direct conjunction with HTML" have over templating solutions? Why do most PHP frameworks implement templates then?
Also, if command line is a barrier for an aspiring (web) programmer, he/she should start looking for a new career path.
- lucperkins 14y ago1. I wouldn't want to do anything at a meaningful level of complexity without templates. No question about it. And I think that having so many templating frameworks is wonderful (ERB, Jade, haml, etc.). I was only arguing that PHP lets you dive in without NECESSARILY needing to jump through a templating hoop. 2. Is it unthinkable that a person could start learning web dev and pick up the command line along the way? I started out learning PHP/MySQL on my old Windows machine, terrified of the CLI, and now I do almost everything on it (and have converted my old PC to Linux). If the command line were a barrier at all points in the learning trajectory, then you might have a point. But I also don't think that command line mastery should be held up as a sine qua non of learning web dev.
- spahl 14y ago1. Ok so when is it appropriate/useful to use the power of embedded php (in html) instead of templates? Just for learning the first couple of hello worlds? In my experience it becomes a mess to manage when you start having more than one commiter and more than a couple of lines of code. 2. You don't have to be a command line expert to start using it. All the books at http://learncodethehardway.org/ http://learncodethehardway.org/ show that command line can be integrated in the language learning process seamlessly. No reason to be terrified of it, on the contrary, new coders should embrace it as soon as possible.
- cloverich 14y ago@1. When the project is only a couple of pages.