News for hackers. Stuff that matters.
Re:PHP is much better than what you think by anthonyb on Wednesday July 04, 2012 @05:46AM (#4198651)
Yeah - "shit" being the operative word there. The problem I've found is that there's a kind of anti Python paradox at work with PHP:

Better than 95% of the PHP jobs out there are horrible scut work for companies that don't give a shit about quality or decent development, even though it costs them an arm and a leg maintaining their steaming legacy codebase.

The 5% that you'd actually want to work for need to have a series of huge hurdles to keep out the 95% of PHP mouth breathers^W^Wdevelopers who can't really code.

Re:PHP is much better than what you think by EvilTerran on Wednesday July 04, 2012 @07:17AM (#4198877)
horrible scut work for companies that don't give a shit about quality or decent development, even though it costs them an arm and a leg maintaining their steaming legacy codebase

Damn, you just described my job perfectly.

"Test framework? What's that? Sounds like it'd take up too much valuable programmer time. PS enjoy walking on eggshells whenever you try to change something because there's no regressions."

(╯°□°)╯┻━┻

Re:PHP is much better than what you think by anthonyb on Wednesday July 04, 2012 @07:47AM (#4198965)
The best bit about those environments is that the devs who crank out the most code (ie. LOC-wise) are feted, but they're basically just standing in the bottom of a hole, digging.
Re:PHP is much better than what you think by EvilTerran on Wednesday July 04, 2012 @11:24AM (#4199724)
Ah, fortunately, we aren't measured by LoCs. Instead, we're measured by the number of items we manage to knock off our in-house half-arsed basecamp reimplementation. Not quite as bad, I guess.
Re:PHP is much better than what you think by ericingram on Wednesday July 04, 2012 @10:49AM (#4199599)
> "Better than 95% of the PHP jobs out there are horrible scut work for companies that don't give a shit about quality or decent development"

Show me your data? You couldn't be more wrong about the companies using PHP. The last startup I worked at in San Francisco, well funded and very successful, used PHP. I was approached by many well known names all using PHP, most of them exciting new companies working with edge technologies for practicality, which is a trait that goes great with PHP).

Re:PHP is much better than what you think by anthonyb on Thursday July 05, 2012 @02:24AM (#4201967)
> Show me your data?

Bitter personal experience? I'm a Python dev, but figured PHP and Python would be good to add to my resume. I picked them up pretty quickly, but after working for a couple of PHP places and interviewing at many others, I swore off them and went back to Python.

Also, sounds like your startup was one of the 5%, rather than the 95%.

Re:PHP is much better than what you think by TylerE on Wednesday July 04, 2012 @11:54AM (#4199825)
and for every startup company using php, there are 100 shitty local ad agencies knocking out brochure-ware wordpress sites.
Re:PHP is much better than what you think by ericingram on Wednesday July 04, 2012 @12:09PM (#4199883)
Sounds like a big success for Wordpress and PHP to me
Re:PHP is much better than what you think by wpietri on Wednesday July 04, 2012 @06:42PM (#4201038)
In the sense that McDonald's is a big success for American cuisine, sure.
Re:PHP is much better than what you think by ericingram on Friday July 06, 2012 @09:36AM (#4207613)
That's a decent analogy, since McDonald's is a huge success and a model of efficiency in business.
Re:PHP is much better than what you think by wilmoore on Friday July 06, 2012 @12:59PM (#4208563)
If more fat americans is a success, I guess that makes sense.
Re:PHP is much better than what you think by jonwinstanley on Wednesday July 04, 2012 @06:04AM (#4198704)
I have not found this to be the case. There are a lot of small/medium sized companies that probably started out with a custom Drupal/Wordpress site and have now out-grown it, but don't want to re-write the whole system just so that they can use Python/Ruby.

Using PHP is then a no-brainer and so moving the codebase to Symfony2 is a great option for them. While Wordpress and Drupal command such a large share of the website market, there will always be decent young companies emerging who are also tied-in to the PHP community.

Re:PHP is much better than what you think by pestaa on Wednesday July 04, 2012 @06:54AM (#4198807)
How is moving to Ruby/Python needs a rewrite, but moving to Symfony2 does not?
Re:PHP is much better than what you think by anthonyb on Wednesday July 04, 2012 @07:44AM (#4198958)
That's what I was wondering.

I also had a look through the Symfony2 docs. Perhaps it's just me being a Python bigot, but the code there doesn't look any better than the raw PHP: http://symfony.com/doc/current/book/from_flat_php_to_symfony... And the "helper function to render templates" in the section above it also looks fairly deranged. Isn't that included in the framework somewhere?

The bits that do look ok seem to be because they're copying Django/Jinja2 templating.

Re:PHP is much better than what you think by mechanical_fish on Wednesday July 04, 2012 @09:20AM (#4199293)
If you stay on the same web stack you might be able to migrate one piece at a time.

You also have the option of refactoring the most important or troublesome bits of your app to use Symfony2 while leaving the rest alone.

It's pretty challenging to take one piece of your big web application and migrate that to Python while leaving the rest in PHP. So you'll tend to do it all at once. That's very expensive, and very risky, even if your original ugly PHP site had an extensive test suite, which it will not.

Re:PHP is much better than what you think by jasonlotito on Wednesday July 04, 2012 @09:16AM (#4199281)
A framework shouldn't (and most all the popular PHP frameworks out there, including Symonfy adhere to this) matter when your business logic is decoupled from from your framework. Yes, you might have to rewrite some constructors. And some frameworks have different features, but can still be carried over if you need it. You aren't beholden to a single code base.

For example, I can easily move my models from Zend to Symfony without rewriting a thing. Decoupling is a wonderful thing.

So, you have this code base you are using, these libraries that are already written, and tested, and working. Moving to Ruby/Python would require that they all be rewritten, and appropriate libraries be replaces.

Moving to another language isn't a weekend endeavor when you have a workflow and toolset built up over a 10+ years of development in another language that, in that domain, accomplishes the same thing.

Re:PHP is much better than what you think by Kudos on Wednesday July 04, 2012 @11:25AM (#4199730)
So don't work for those companies?

I think you'll find a similar situation with companies using enterprise languages like .Net or Java, certainly here in Ireland where our universities heavily teach using those technologies.

Shitty graduates with no real interest in programming still end up in programming jobs. The shitty PHP developers I meet are invariably actually designers winging it as programmers.