Live data from Hacker News

Why PHP continues to thrive in the age of the PaaS

plus.google.com

1–10 of 102 posts

Re: Why PHP continues to thrive in the age of the PaaS

#2
I don't do much web development, just a product once every year or so to play around with an idea. Always in PHP. A few months ago I was asked by a close friend to help them with a not-so-serious site. I decided that I'd use Rails, because, hey, I've heard nothing but good about it from HN and the like.

I was absolutely blown away by how much work it required to get started. That, and how painful it was to explain to a non technical person how to make visual changes.

I was told by a few friends I vented to that what I was doing was "too small" of a project, or "Rails is meant for web apps" which confused me because I assumed a site where you could upload images via a form and then browse and view them was right up its alley.

Edit: A lot of comments are talking about wrapping my head around the framework, MVC, ect. I had no problem building the initial application. My sore points are more about deployments and updating smaller things, like the image of a link. non-technical people don't often remember "oh, and if you want your change to show up, go to this folder, open 'restart.txt' and change it in some way. doesn't matter what, just add a space to the end".

Re: Why PHP continues to thrive in the age of the PaaS

#3
PHP has also become a much more vibrant language to develop in. It doesn't have the coolness factor of Haskell, Go, or Scala, but it has become a lot better in the recent years.

Combined with a better overall language (that still has it's warts, lets be clear here) and an ever expanding amazing ecosystem of great libraries and you have something that is easy to deploy _and_ fun to work with.

Re: Why PHP continues to thrive in the age of the PaaS

#5
PHP continues to thrive because of WordPress and PHPBB. There are so many sites running these two pieces of software that PHP will be a top language for years.

PHP is also one of the easiest languages for Designers to learn. If you know HTML, adding a few bits of PHP is easy.

Even if you dislike PHP, (I certainly do) you end up getting good at it because enough projects touch it that you kind of have to be good at it. It is like JavaScript, I don't like JavaScript as a language, but it is essential because you can't not know it.

Re: Why PHP continues to thrive in the age of the PaaS

#6

I don't do much web development, just a product once every year or so to play around with an idea. Always in PHP. A few months ago I was asked by a close friend to help them with a not-so-serious site. I decided that I'd use Rails, because, hey, I've heard nothing but good about it from HN and the like. I was absolutely blown away by how much work it required to get started. That, and how painful it was to explain to…

Yes, that's because PHP operates at thermodynamic equilibrium and creating order from those states requires the expenditure of energy.

Rails is great for creating a site with a form where people can upload images, it's a 20 to 30 minute project in rails, pretty much just take any rails blog tutorial and add paperclip. (Note, it's not a 20 minute project for anyone who doesn't already know rails)

Rails is not for non-technical people. Rails is like a great jig, if you're a master craftsman it's going to save you a lot of time, if you're not don't bother, just tweak things until they fit together. If you're someone who has spent the last 5 years building furniture by tweaking things then you will love a jig.

Re: Why PHP continues to thrive in the age of the PaaS

#7

PHP has also become a much more vibrant language to develop in. It doesn't have the coolness factor of Haskell, Go, or Scala, but it has become a lot better in the recent years. Combined with a better overall language (that still has it's warts, lets be clear here) and an ever expanding amazing ecosystem of great libraries and you have something that is easy to deploy _and_ fun to work with.

Stuff like composer, Silex/Symfony2, the addition of closures, the speed of new versions + OpCode caching make PHP pretty usable.

Thinking LAMP as a whole - the speed of new versions of MySQL (5.6, 5.7) and the Percona branch are also pretty sweet.

Re: Why PHP continues to thrive in the age of the PaaS

#8

PHP has also become a much more vibrant language to develop in. It doesn't have the coolness factor of Haskell, Go, or Scala, but it has become a lot better in the recent years. Combined with a better overall language (that still has it's warts, lets be clear here) and an ever expanding amazing ecosystem of great libraries and you have something that is easy to deploy _and_ fun to work with.

How much has Facebook's open-source contributions to PHP (say, the HHVM) helped the development and adoption of the language?

Re: Why PHP continues to thrive in the age of the PaaS

#9

PHP has also become a much more vibrant language to develop in. It doesn't have the coolness factor of Haskell, Go, or Scala, but it has become a lot better in the recent years. Combined with a better overall language (that still has it's warts, lets be clear here) and an ever expanding amazing ecosystem of great libraries and you have something that is easy to deploy _and_ fun to work with.

How much has Facebook's open-source contributions to PHP (say, the HHVM) helped the development and adoption of the language?

Not sure how many every day PHP deployments are using HipHop. Probably nice option to have when you get to a certain point.

But Memcached, APC, and wrappers for Redis probably have done the language much more of a service in ways...

Re: Why PHP continues to thrive in the age of the PaaS

#10
post #4

He kind of lost me on his opening CGI argument. Most PaaS I am familiar with don't run PHP through CGI at all. Either Apache mod_php or nginx php-fpm. I guess the author means a CGI-like model or something?

Most dirt cheap hosts do. PHP via a PaaS is just as hard as Ruby is his argument.
Post reply on HN