Re:What do hackers think of PHP?
by simonw on Monday May 05, 2008 @12:52PM
(#181573)
It's a fine backend language for a small to medium sized website, but you need to be aware that at a certain size (in terms of complexity of the application you are building) you'll often find yourself fighting against the language. That's not to say you can't build large applications in PHP, just that you need a great deal of discipline to do so. You'll either need to adopt one of the MVC frameworks (Symfony for example) or roll your own. A lot of the features in the framework you chose will be workarounds for limitations in PHP itself (such as its lack of decent namespacing and poorly designed database access primitives).
[ Parent
| on HN ]
Yeah, it's perfect for your little side projects that will never grow or have lots of traffic. You know, like Facebook.
Quoting myself: "That's not to say you can't build large applications in PHP, just that you need a great deal of discipline to do so."
Out of curiosity could you give an example of a language where this isn't the case? As far as requiring a framework of sorts when dealing with large sized/complex websites?
No, but if you're using Python or Ruby at least you won't need framework features that work around problems with your core language.
My point about using a framework wasn't to knock PHP; it was more a piece of advice - "if you do use it, you'll need to be aware of this".