News for hackers. Stuff that matters.
Re:Why We Stick With PHP (and don't move to Ruby or Python) by xd on Thursday February 24, 2011 @07:35AM (#2257674)
Explain why you think it is a "necessary evil", really, I'd love to know what insights you have that I somehow missed over the last 10years of developing successful large scale projects with PHP.

You may also want to email the likes of Facebook, Yahoo, YouTube, Digg etc etc and let them know of the evil that lurks within.

Re:Why We Stick With PHP (and don't move to Ruby or Python) by rick888 on Thursday February 24, 2011 @12:34PM (#2258887)
I feel like many developers are using RoR and Python simply because it's 'cool'. The old, reliable languages are boring. I also don't like the fact that many frameworks out there abstract layers away and make it so you don't really know what's going on underneath. This makes it easy to say you are a developer (because you can make something) when you are just mashing frameworks together.

I've also been using PHP for the last 10 years and have never had problems scaling or writing good code.

Re:Why We Stick With PHP (and don't move to Ruby or Python) by xd on Thursday February 24, 2011 @01:31PM (#2259175)
I couldn't agree more.

I choose PHP, all that time ago, because back then I was a C developer. I fell in love with the fact you could create your own C extensions and that the PHP syntax was similar to C syntax, so it was easy to pick up and make it do what I wanted it to do.

I've only every toyed with frameworks, never used one as such, because I built my own library up over the years that is suited to my needs.

Re:Why We Stick With PHP (and don't move to Ruby or Python) by AffableSpatula on Thursday February 24, 2011 @02:45PM (#2259513)
Cmon man, I didn't say it is impossible to build scalable web apps with it. The php landscape's lack of an equivalent to rack is an insane situation for a 'web' language, and a good example of why it's a bad choice of platform if you have the option.

Yes, you can write scalable web apps with php.. you can also walk everywhere on your hands; but it's unnecessarily painful and awkward, so most sensible people avoid doing it on a regular basis.

Re:Why We Stick With PHP (and don't move to Ruby or Python) by xd on Friday February 25, 2011 @03:50AM (#2261565)
You've heard of the PHP SAPI, right?
Re:Why We Stick With PHP (and don't move to Ruby or Python) by AffableSpatula on Friday February 25, 2011 @04:27AM (#2261642)
yes, what's your point?
Re:Why We Stick With PHP (and don't move to Ruby or Python) by xd on Friday February 25, 2011 @05:01AM (#2261707)
Rack is the PHP SAPI equivalent ..
Re:Why We Stick With PHP (and don't move to Ruby or Python) by AffableSpatula on Friday February 25, 2011 @05:27AM (#2261755)
It's not. Rack's a framework for composing applications of middleware/intermediary components by specifying conventions for delegating requests and responses.
Re:Why We Stick With PHP (and don't move to Ruby or Python) by xd on Friday February 25, 2011 @05:39AM (#2261770)
From the blog on the rack website: "Rack aims to provide a minimal API for connecting web servers and web frameworks."

The PHP SAPI handles the HTTP request and dissolves it into super globals for the environment to consume. This is all you need to handle a HTTP request. It just doesn't get any more minimal than that.

You can, if you want, take it a step further and add request routing, i.e. http://framework.zend.com/manual/en/zend.controller.router.h...

Re:Why We Stick With PHP (and don't move to Ruby or Python) by AffableSpatula on Friday February 25, 2011 @05:50AM (#2261793)
Rack is about composition and modularity of the request handling components, not just providing programmatic access to properties of an http request.