Hacker News new | ask | show | jobs
by Firehed 4880 days ago
I'd say it started closer to making C more accessible for web programming (no fussing with pointers, memory allocation, bounds checks, etc), which incidentally makes it really easy to present content. It's also the reason for the inane naming conventions in lots of the "core" stuff.

I strongly disagree with your implication that it's only useful as a presentation layer, however. Some quirky syntax doesn't at all make it an incapable language; the real problem in my eyes is there's no one go-to framework for MVC work, a la Rails or Django (there's no shortage of choices, but that's not necessarily a good thing).

2 comments

> there's no one go-to framework for MVC work

I would say there's a lot of consensus around Symfony

http://symfony.com/

No more or less than Cake, Zend, CodeIgniter, ...

Heck, the second Google hit for "php mvc framework" for me was a 2009 guide to writing your own (talk about not getting the point of a framework). There were two more pages in the top ten for PHP MVC framework comparisons.

Heck, the second Google hit for "php mvc framework" for me was a 2009 guide to writing your own (talk about not getting the point of a framework). There were two more pages in the top ten for PHP MVC framework comparisons.

Ha ha ha... yeah... writing your own php framework... who would do such a thing...

I understand why it's supposed to be a bad thing but I also think it helps to understand the principles involved in frameworks and the mvc pattern, and one way to do that is try to make your own. Then when you pick a real framework it won't seem like magic.

> I strongly disagree with your implication that it's only useful as a presentation layer, however.

That's not what I meant. I meant that it was created from the perspective of a View. There's no other reason that php code has to be delimited with <?php ?>, other than it was originally designed to be embedded in html. This alone shows how the creators envisioned PHP to be used.