News for hackers. Stuff that matters.
Re:High Quality PHP by ThomPete on Tuesday December 24, 2013 @10:24AM (#6959677)
You wanna know why PHP is so popular and why many people chooses it?

Because it's so easy to get started using. Compare that to almost any other language out there that is a nightmare to set up.

At the end of the day the code if it works it works and PHP just simply works. Not for everything but for most things.

Re:High Quality PHP by mekoka on Tuesday December 24, 2013 @10:53AM (#6959792)
Yes PHP is deceptive in that it saves you about 2 hours of your life right at the setup, compared to other languages. You end up paying them in spades over the next 5 years you'll be using it. I should know.
Re:High Quality PHP by larrys on Tuesday December 24, 2013 @11:18AM (#6959916)
Agree.

Reminds me of some of my friends who will obsess over the specs on a digital camera (or the power of a particular model of PC or Mac) and completely ignore setting up and composing a good photo. Wanna be purists I guess.

Many years ago I put together some shell scripts using awk, sed and an early shell. The were used to do an estimating system in the business that I was involved in at the time. They were crude and the code was really bad and I had at the time really little clue on how to do things the correct way. Had I had to learn c to do the same thing (which I did somewhat a bit later) I would have never ended up with anything at all. Professionals laughed but the people who bought the business ended up using the system that I wrote for about 4 or 5 years until they found something to replace it. It got the job done. Under the hood what was going on (in this particular case I have to stress as this was pre-net and only used internally) wasn't really a factor.

Re:High Quality PHP by krapp on Tuesday December 24, 2013 @12:43PM (#6960279)
If I didn't use PHP, I would have to explain to my clients who just want a simple website for business x why it's written in a language they've never heard of, that they can't find cheap maintainers for, and can't host just anywhere they like. PHP has the advantage of being able to create "black box" solutions for non-technical clients because the hosting environment is ubiquitous and you can just throw a rock out of your window and hit a Wordpress developer, and 9 times out of ten all you need to deploy with is FTP.
Re:High Quality PHP by usamec on Tuesday December 24, 2013 @10:54AM (#6959795)
I think that setting up apache+php is much harder than copy&pasting few basic lines of flask code a running simple python program.
Re:High Quality PHP by ThomPete on Tuesday December 24, 2013 @11:00AM (#6959823)
What have Mamp done? Furthermore most web hotels support PHP.
Re:High Quality PHP by evilduck on Tuesday December 24, 2013 @12:26PM (#6960207)
Setting up Apache to serve raw Ruby .erbs or .rhtmls like you'd serve .php files out of a folder is nearly identical in length and difficulty of steps if you're configuring it yourself:

http://iamjamesblog.wordpress.com/2011/11/14/configure-apach...

Nobody does it because there's just no demand for two crappy default hosting configurations (this isn't even a criticism about PHP the language, it's just a bad model to use for hosting web applications).

Re:High Quality PHP by ThomPete on Tuesday December 24, 2013 @01:16PM (#6960449)
Thats not what i meant but fair enough I could have been more clear. I was talking about setting up as in getting started.

Download MAMP or create a folder with your web host.

That's it you are ready to create a web application.

Now find me one other system that makes it just as easy.

Re:High Quality PHP by evilduck on Tuesday December 24, 2013 @01:46PM (#6960574)
Re:High Quality PHP by shekmalhen on Tuesday December 24, 2013 @10:33AM (#6959711)
The same thing could have been said about visual basic... one of the worse language ever made.
Re:High Quality PHP by ThomPete on Tuesday December 24, 2013 @10:37AM (#6959727)
Yup!

Yet it helped millions achieve their goals. :)

Re:High Quality PHP by eropple on Tuesday December 24, 2013 @11:15AM (#6959897)
By back-loading the development process, making it more difficult to get shit done later when your ability to avoid institutional inertia and code complexity has significantly decreased. That's not a good thing.