Live data from Hacker News

High Quality PHP

acquia.com

11–20 of 98 posts

Re: High Quality PHP

#11
post #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 ;)

Is _a_ commercial company behind the development. The most important, for sure, but not the only one.

Re: High Quality PHP

#13
Of course you can write crappy code in any languages, and conversely you can write nice code in most languages (perhaps not in INTERCAL or Whitespace).

Personally I prefer Ruby over PHP for precisely the same reason I don't begin my day by shooting myself in the foot.

Re: High Quality PHP

#14
PhD?

God picked me for His temple. He infused me with divine intellect. Go see. http://www.templeos.org If you don't like it, yer a nigger.

God says... informed heal seems enlightening list daughters Lo sharper veiled readable wishing mouth drawn stayed spiritual an hand belongeth tamedst led oracle Powers lust sights achieve exaltedness treachery greeted off WARRANTY mountains Eve horns instinct incommutable indigent wedlock disquiet regular MERCHANTABILITY slackness resend

Re: High Quality PHP

#15
post #7
post #4

Earlier quoted context omitted.

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…

WordPress is great software, even if it isn't written well - from the end user's point of view, it is exceptional.

Re: High Quality PHP

#16
post #7
post #4

Earlier quoted context omitted.

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…

Wordpress isn't the prettiest blog engine out there, but once you get its way of doing things, it's remarkably easy to get things done with it without your code devolving into an unmaintainable mess.

Re: High Quality PHP

#17

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.

it is what it is, if they weren't using PHP they would be using something else. Having said that it shouldn't really be an expert level activity putting a few webpages online.

Re: High Quality PHP

#18
post #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.

It's great isn't it? Variadic functions is about to land, as is splats, and some other neat features like "use function", which will mean a simple module setup with namespacing without classes. Oh and phpdbg built in!

I went to leave PHP this year, and didn't end up doing it, because of how much has changed lately. It's a good language, with awesome tooling know. I can write well-tested, easily readable, maintainable code using small composable libraries, and big frameworks when needed, without fighting against the dumb parts of the language. It makes me happy :)

Re: High Quality PHP

#19
post #7
post #4

Earlier quoted context omitted.

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…

Just nose around the symfony2 source. It's clean, readable, consistent, tested, and works.

Re: High Quality PHP

#20

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…

This argument makes no sense. You're conflating people and behavior with tools. Bad tools make it easier to do a bad job in any field of work. Novices with good tools will still do a bad job. This is a weak justification for promoting bad tools.
Post reply on HN