Skip to content

Comment on PHP Is A Huskparent

Comments

Thank you for this - I'm the author of a very large PHP application that has been in development for 7 years, and it _works_. We don't use a lot of the more advanced features in PHP, since our target support is PHP 4.3.0, so this leads to some creative (i.e. fun) problems at times. PHP is as "complete" as it needs to be for us.

It reminds me of a time when I had to maintain some very large programs written 100% in AWK - talk about a limited feature set - you had to work with a more limited set of functions and features, but often led to some creative solutions.

"...our target support is PHP 4.3.0, so this leads to some creative (i.e. fun) problems at times."

"PHP is as "complete" as it needs to be for us."

It's so complete that it's painful to write in? There's something to be said for languages that focus on a particular application while peripheral features suffer, but the PHP language is in no way superior to Python or Ruby, even in regards to web development, and there's no problem with saying so.

People use PHP because lots of other people know it, and because it's widely available. Those aren't merits of the language itself. Yes, good things can be written in PHP. That doesn't mean the language isn't demonstrably inferior.

I'm guessing your definition of pain is different then mine - I don't have any issues with writing PHP - it just works for me. I've been developing in PHP since 2002, so by now I'm used to the language and how it works, and don't really have any expectations for new features.

I can see however that coming from a language like Python or Ruby, you're probably going to try to develop in PHP like you would in one of those languages - and I believe that is where frustration will be found. I think it's good to think of PHP as a "simpler" language - stick with the basics and it will work well (as well as be pretty fast).

"...our target support is PHP 4.3.0, so this leads to some creative (i.e. fun) problems at times."

"I don't have any issues with writing PHP - it just works for me."

PHP fits an important niche. People sometimes use PHP because it is faster and has a smaller memory footprint than Python or Ruby.

I was considering language features separately. If you're trying to pick a language, no one would pick PHP unless they need to work with people who already know PHP. If you're trying to pick a runtime, PHP occasionally makes sense due to ease of deployment, memory issues, etc.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.