Live data from Hacker News

Ask HN: Why no love for PHP?

news.ycombinator.com

51–60 of 150 posts

Re: Ask HN: Why no love for PHP?

#51
post #49

Coming from a Java background into a startup that was built using PHP, it's been my experience that PHP is difficult to scale. This is for two reasons: 1) PHP isn't long-lived. Every time a request comes in Apache launches the PHP processor/interpreter and runs through the entire script. This means you don't get a heap that you can use to cache things[0], you don't get the benefit of JIT compilation, and you don't ge…

PHP doesn't scale? Facebook has > 200 million users. It's written in PHP.

Re: Ask HN: Why no love for PHP?

#52

Earlier quoted context omitted.

Amusing. Rails as the "Dane Cook" of web frameworks pretty much hits the nail on the head. I love Rails but the fanboy culture really sucks.

That reads to me as "Rails is a pop culture icon that only XYZ people know about." I'm not XYZ because I don't know who that is. Actually, perhaps unintentionally, you still hit the nail on the head.

Glad to be your unintentional hammer.

Dane Cook is a comedian who hit it BIG, in part, due to MySpace. He's been in a couple of movies, including "Employee of the Month."

He's got millions of fans, but also a sizeable group of haters, inlcuding many of his fellow comedians. He's just another in a series of people or items that hit it big, leaving many of us wondering why.

Re: Ask HN: Why no love for PHP?

#53
PHP was a hack conceived long ago, in a time where there were no complex (as in "more than one page") web applications and little to no demand for them. It has the readability of Perl and the structural elegance of 70's BASIC.

Need I say more?

Re: Ask HN: Why no love for PHP?

#54
php is my virtual machine. It runs everywhere (and cheaply), Anything is possible with it - it's just really ugly - thus code generation is your friend. This is something I hope to drive home with http://lisphp.googlecode.com (nearly r5 scheme) and LET (my smalltalk w/ macro expansion) which is used in http://voltron.googlecode.com.

Re: Ask HN: Why no love for PHP?

#55
I work as a full time web developer and am required to use PHP for everything server side. It's one of the worst languages I have ever used but I live in a LAMP world and everyone requires me to use it.

I have used Clojure and RoR in the past and really like them but unfortunately I can't use them in reality. I wrote about it in this post on my blog.

http://www.codeinnovator.com/uncategorized/lisp-vs-php/

You can certainly develop professionally with it. It's just not a whole lot of fun.

Re: Ask HN: Why no love for PHP?

#56
I work as a full time web developer and am required to use PHP for everything server side. It's one of the worst languages I have ever used but I live in a LAMP world and everyone requires me to use it.

I have used Clojure and RoR in the past and really like them but unfortunately I can't use them in reality. I wrote about it in this post on my blog.

http://www.codeinnovator.com/uncategorized/lisp-vs-php/

You can certainly develop professionally with it. It's just not a whole lot of fun.

Re: Ask HN: Why no love for PHP?

#57

PHP has a few downsides, everything from poor naming conventions to security vulnerabilities. People around these parts are always looking for the cleanest solutions to their problems and the latest methods available. PHP's relative age and problems make it neither. That said, I coded my first startup in PHP. It's dead simple to make a dynamic web page with PHP, but it's also dead simple to create a huge mess. In tha…

I think PHP compares well to the saying "Guns don't kill people, people kill people." Most of the time security issues are in the hands of the programers. Although, PHP sure makes it easy sometimes to create those issues.

Re: Ask HN: Why no love for PHP?

#58
post #13

In the past I've purposefully avoided submitting articles to Hacker News if they were about PHP. I kind of just assumed that they would be downvoted just for being PHP. I wonder if I'm alone in that? Edit: fixed a typo.

You can't downvote articles (only flag them)?

You can downmod after you've reached a certain karma threshold.

Re: Ask HN: Why no love for PHP?

#59
post #2

holds hand up I use PHP. Indeed I use PHP for most of my commercial web stuff (i.e. stuff I make at work & most of my startup ideas). Mostly I'm a Python fan but for websites PHP is just 100% easier for me because I have a framework I know well (KohanaPHP) and years worth of snippets/experience to use in prototying sites. I bet I can code a simple site faster in PHP than Python. As to why PHP isnt discussed much on h…

How about an Ask HN poll on language preference... anyone?

Re: Ask HN: Why no love for PHP?

#60
post #15

One of the things that I think is relevant to startups hiring is that ( warning experience mixed with opinion ahead) there are lots and lots of PHP developers of wildly varying quality. This makes the initial stages of recruitment time consuming. By looking for people with skills or interest in Ruby, Python or Scala (or whatever is hot that month) you'll probably see less interest but, on average, the quality and ent…

PG made similar arguments in his 2004 essay "The Python Paradox" - http://www.paulgraham.com/pypar.html

I'm inclined to agree. If you know how to advertise within a language community then using a lesser-known language will make it easier to find good programmers. This is probably even true for the short-term contract gigs often posted to freelance sites since there won't be hundreds of low-quality responses to sort through.

Post reply on HN