News for hackers. Stuff that matters.
Re:Ask HN: What are the benefits of using PHP today? by benzesandbetter on Sunday May 27, 2012 @08:48AM (#4030003)
1) PHP is a great high-school job. Much better than a paper route, flipping burgers, or working at the car wash. If you freelance you can set your own schedule which can work well around your school schedule.

2) Hosting is cheap so your parents will probably let you use their credit card.

3) It's so approachable that it can help you get started with programming so that some day you can move on to better languages.

Re:Ask HN: What are the benefits of using PHP today? by kephra on Sunday May 27, 2012 @06:23AM (#4029813)
The combination of lighttpd, fastcgi, php has a very low memory footprint. This is a benefit on Xen servers.

PHP also offers a build in function for nearly everything.

The main drawback of PHP are the tutorials, using mysql without the i, and teach how to implement a website that is vulnerable to SQL injection.

Re:Ask HN: What are the benefits of using PHP today? by blibble on Sunday May 27, 2012 @12:10PM (#4030326)
16GB of ECC RAM costs £150 to buy, how much RAM your webserver threads use should never be an issue.

PHP's advantage is "apt-get install php5", copy your .php files in, and you're done.

Re:Ask HN: What are the benefits of using PHP today? by gdp on Sunday May 27, 2012 @06:12AM (#4029800)
The advantage of any programming language, framework, or library is that you know it already and it allows you to achieve things. I wouldn't personally advocate learning PHP today, but the idea that any language has intrinsic value divorced from its ability to achieve your purposes is mostly untrue.
Re:Ask HN: What are the benefits of using PHP today? by sbank on Sunday May 27, 2012 @06:20AM (#4029809)
It is widely used and sought after. Any average to decent PHP programmer can find work. Any average to decent Haskell programmer can't.
Re:Ask HN: What are the benefits of using PHP today? by dwc on Sunday May 27, 2012 @12:51PM (#4030425)
Depending on your intent, this may be a great reason to avoid PHP, or at least to leave PHP out of your job description.
Re:Ask HN: What are the benefits of using PHP today? by ExpiredLink on Sunday May 27, 2012 @08:05AM (#4029951)
Re:Ask HN: What are the benefits of using PHP today? by yelnop on Sunday May 27, 2012 @01:28PM (#4030529)
I'm a longtime database developer, starting my first web 2.0 app. After much research (including Python, node.js, Go, Perl, Ruby, etc.) I've all but locked on PHP. While I can see that it has idiosyncrasies, I can also see that it's a very mature product.

For example, when I search for "PHP function list", I not only get a function list as the first item, it's an amazingly comprehensive list. The hurdles I've had so far, I've been able to jump over them quickly (quicker than in any other language I've learned) if only because the community support is so good. Usually a simple web search finds the question and answer I'm looking for. I'm pretty blown away by the sheer volume of good info on PHP.

Python is my second choice. There's a lot that I prefer of it, over PHP, but I find that in general its hurdles are higher.

Having developed many industrial-strength apps using less-capable languages, I'm confident I can do the same in PHP.

Re:Ask HN: What are the benefits of using PHP today? by 27182818284 on Thursday May 31, 2012 @11:22AM (#4048463)
I feel like it is pretty unusual these days to hear about a company moving to PHP from some other language. On the other hand, you often here about a company switching or adding one of the other languages you mentioned to their company's stack
Re:Ask HN: What are the benefits of using PHP today? by andrewhillman on Wednesday May 30, 2012 @03:47PM (#4044497)
Another benefit... it's fairly easy to find a php contractor for any portion of your project that you want to outsource. The cost for a php contractor is relatively inexpensive compared to contractors for other languages.
Re:Ask HN: What are the benefits of using PHP today? by Rust on Monday May 28, 2012 @11:33AM (#4033780)
Requisite link to http://appwithphp.com/ - some basic minimal knowledge and stuff to make sure what you write is written as right as possible :)
Re:Ask HN: What are the benefits of using PHP today? by glimcat on Sunday May 27, 2012 @10:22PM (#4031684)
<?php include("header.php"); ?>

Between the above and the huge range of existing PHP projects, I always install PHP regardless of what else I'm using.

Re:Ask HN: What are the benefits of using PHP today? by gopi on Tuesday May 29, 2012 @02:55PM (#4039087)
In my opinion the great benefit of PHP especially for non-coder founders is the big offshore talent pool.
Re:Ask HN: What are the benefits of using PHP today? by rmATinnovafy on Tuesday May 29, 2012 @12:00AM (#4035910)
The tool does not define the problem. It goes the other way around.