Live data from Hacker News

High Quality PHP

acquia.com

1–10 of 98 posts

Re: High Quality PHP

#3
It is really easy to talk smack about PHP because as a language it is not the prettiest, best designed, or cleanest language out there. It often leads to some very gross code.

However, programmers write ugly code in every language and even in a much more beautiful language like Ruby, there are so many projects that end up with ugly codebases, poor performance, etc. that PHP by no means holds an exclusive ownership of terrible coding practices.

Writing high quality code in any language takes significant effort on an ongoing basis. Practices like TDD, code review, pairing, etc. can help, but only if they are applied with significant effort.

Re: High Quality PHP

#4
post #2

I'm speechless that "phpBB, Drupal, Wordpress" are supposed to be the "great" examples of "high quality PHP".

It's not what is said there. Read again: "The focus of PHP has always been on "getting things done" and the language’s developers still value this goal highly. This practicality has spawned great open-source software such as phpBB, Drupal, Wordpress and various other well known applications that are hosted on millions of servers worldwide" So - "getting things done" have spawned great tools like phpBB, Drupal, Wordpress. They are great, because they address problem for end users and are used by millions. It's not said that they are high quality PHP projects if we look at code level.

Re: High Quality PHP

#5
I left PHP about 3 years ago, and I have recently had to look into it again due to a new course I am preparing to teach. The PHP I knew is no more, and it is leaps and bounds ahead of what it used to be. But using Drupal as an example is really a bad choice. Talk about Laravel, Composer, new language features, but not crappy giant codebases.

Re: High Quality PHP

#6
The big difference that the PHP ecosystem seems to have vs the ruby/python ecosystems is an emphasis on providing complete stand-alone solutions to problems vs providing developers with the most flexible and powerful tooling to develop their own solutions.

Whenever I find myself wanting a photo-gallery, an eCommerce platform or a forum I always seem to find that the most mature solutions are based on PHP.

The advantage of this is that semi-technical webmasters can easily deploy complete websites without writing a line of code, thus the underlying code quality is of secondary importance to the functionality provided.

Re: High Quality PHP

#7
post #4
post #2

I'm speechless that "phpBB, Drupal, Wordpress" are supposed to be the "great" examples of "high quality PHP".

It's not what is said there. Read again: "The focus of PHP has always been on "getting things done" and the language’s developers still value this goal highly. This practicality has spawned great open-source software such as phpBB, Drupal, Wordpress and various other well known applications that are hosted on millions of servers worldwide" So - "getting things done" have spawned great tools like phpBB, Drupal, Wordpr…

The author loses a lot of credibility by calling those three apps "great". If the article is about high quality PHP I'm interested in that, and not the poster children for PHP's popularity. As a user, phpBB is a nightmare to use, as a developer, WordPress is spaghetti code at it's worst.

Edit: What's even worse is that we don't get examples of PHP code that was actually written with proper development procedures from the ground up. I mean, I was genuinely hooked by the headline..

Re: High Quality PHP

#8
post #2

I'm speechless that "phpBB, Drupal, Wordpress" are supposed to be the "great" examples of "high quality PHP".

actually, it's examples of "high quality software", I believe. And, problematic and freaking annoying as those can be at times, they also have been, historically, extremely easy software to set up for enabling people to get stuff done.

Re: High Quality PHP

#9
post #2

I'm speechless that "phpBB, Drupal, Wordpress" are supposed to be the "great" examples of "high quality PHP".

Acquia is the commercial company behind the development of Drupal, so understandably they're going emphasize Drupal as a great example of PHP ;)

Re: High Quality PHP

#10

The big difference that the PHP ecosystem seems to have vs the ruby/python ecosystems is an emphasis on providing complete stand-alone solutions to problems vs providing developers with the most flexible and powerful tooling to develop their own solutions. Whenever I find myself wanting a photo-gallery, an eCommerce platform or a forum I always seem to find that the most mature solutions are based on PHP. The advanta…

That is not necessarily an advantage, considering the same semi-technical people leave their websites available for any kind of security breach. This is not 2001 any more, people should know what they are doing.
Post reply on HN