News for hackers. Stuff that matters.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by dangrossman on Thursday November 04, 2010 @01:55AM (#1867864)
You can just as easily say RoR is slower (than, say, Symfony 2.0 on PHP with an opcode cache) and harder to work with (from a system administration perspective).

Take a look down the top 100 website list, and of those sites that are web applications, more of them will be built on PHP than not. I don't think there's even a Ruby application among the top 100 sites except parts of Twitter, but I could be forgetting something.

- Facebook

- Yahoo! (Answers, Bookmarks, Delicious, etc)

- Wikipedia

- WordPress (.com application is #19, another 14 million active installs of the free software)

- Flickr

It may not be cool right now, but it's certainly practical.

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by anemecek on Thursday November 04, 2010 @04:06AM (#1868111)
The problem with this argument is that all of the websites that you mentioned were founded before Ror or alternatives were mature enough. Adam D'Angelo (former CTO of Facebook) said that if Facebook was created now, they would not use PHP (source: http://www.facebook.com/note.php?note_id=137376312958147). I can imagine that the situation is similar with the other websites.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by dabent on Thursday November 04, 2010 @07:51AM (#1868489)
The article mentioned he used Python, which is a language I really enjoy working with, but not a framework. Does anyone know what framework D'Angelo is using?

Edit: to note that I used Quora to answer my own question: http://www.quora.com/What-languages-and-frameworks-were-used...

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by vital101 on Thursday November 04, 2010 @06:32AM (#1868330)
It's extremely important to draw a distinction between cool and practical. HN is all about the cool new hotness. People here are always on the bleeding edge of technology, so they tend to flock towards those instead.

Also, hiring PHP developers is easier than <insert cool technology here> developers. There are just more people with PHP knowledge. Not saying that is a good reason to use a language, but it is a factor.

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by yaubi on Thursday November 04, 2010 @08:19AM (#1868543)
But when it comes to hiring _good_ developers, Python/Ruby/Lisp are definitely a better option.

In my experience, while it seemed at first that hiring PHP developers would be easier, it actually proved wrong, as we had to spend way more time to find _good_ developers among the mass than we would have if we were looking for, says, Python developers.

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by BBonifield on Thursday November 04, 2010 @05:32PM (#1870886)
My personal opinion about this is that the better/more driven/valuable developers are the ones who are quick to try new tech and follow emerging trends. Many people know PHP, but I think you'd likely find better talent in the long run if you offer a position that uses a more exciting back-end.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by TomK32 on Thursday November 04, 2010 @07:28AM (#1868446)
I'm in webdevelopment many years now and switching from php to ruby was a step I'll never regret. About the sysadmin perspective, I manage all my servers myself, used debian on my workdesk long enough to do this, and in the last year with all the stuff like bundler and the new rubygems.org it got so much easier. If you need it even more easier then Heroku is something you won't get elsewhere.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by rimantas on Thursday November 04, 2010 @04:29AM (#1868160)

  You can just as easily say RoR is slower (than, say,
  Symfony 2.0 on PHP with an opcode cache)
You can say that, but is it true? I did not investigate it, but the last time I saw some comparison PHP frameworks were horribly slow compared to RoR.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by sanswork on Thursday November 04, 2010 @06:37AM (#1868337)
I use RoR for all our control panels and human interfaces at work. RoR is many things but fast isn't something I would call it.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by michaelhart on Thursday November 04, 2010 @05:57AM (#1868293)
codeigniter is VERY fast, and it doesn't get in your way. codeigniter is commonly referred to as the Ruby on Rails for php by some.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by kemo on Thursday November 04, 2010 @06:46AM (#1868352)
kohana 3 is more like RoR for PHP, CI is like RoR for PHP4 :)
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by ErrantX on Thursday November 04, 2010 @07:10AM (#1868399)
Seconded, Kohana really wipes the floor with CI nowadays (this from someone still forced to maintain a couple of CI-based sites...) :P
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by kaylarose on Thursday November 04, 2010 @10:39AM (#1869038)
I like Kohana much more than CI, if only for tossing PHP4 support.

However, but I've found that there is lots of fragmenting in the community/documentation. See the differences between 2.3.4 -> 2.4 (lots of breaking changes) -> 3.0 (almost entirely different framework). Which is kind of a bummer when using it for long-life projects (we have a few projects are stuck on 2.3.4).

That said - Symfony 2.0 looks fantastic, and very much like the next "Rails-like" PHP framework.

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by BBonifield on Thursday November 04, 2010 @05:41PM (#1870919)
Exactly the same story here. Our primary product is stuck on Kohana 2.3.4 because of the lack of care that the Kohana team put into backwards compatibility. I wouldn't be surprised if they decide to essentially rewrite things again in the future either. If I could go back in time, I'd pick something else.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by kemo on Thursday November 04, 2010 @06:36PM (#1871103)
Kohana 2 was "just a php5 fork of CI", while Kohana 3 is practically a whole new framework. The "problem" is that Kohana team doesn't like handicaping new versions for sake of complete backward compatibility.

They just make the framework better with every new version, although in case of Ko3 minor versions are backward compatible (for example 3.0.8 with 3.0.1., but 3.1.0 will not be, at least concerning the response object and the ORM logics).

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by kaylarose on Friday November 05, 2010 @10:39AM (#1873325)
Yep. We are in exactly the same situation. Even moving to 2.4 looks to be a pain. The only brightside is that it's not THAT big of a framework, so patching it is not too bad. But still...
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by michaelhart on Thursday November 04, 2010 @09:45PM (#1871649)
that's exactly why I'll never use Kohana. I will have to look more into Symfony, however, before I can accurately compare.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by flacon on Thursday November 04, 2010 @10:55AM (#1869110)
There are major Ruby Apps out there in the top 100: http://rails100.pbworks.com/Compete+Rankings

hulu.com yellowpages.com

also major sites: like justin.tv. slideshare etc

The argument that "Ruby cant scale" just doesn't hold. Check out Ruby EE by passenger.

Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by hallmark on Thursday November 04, 2010 @05:38AM (#1868260)
YouTube was written in Python. Just wanted to add a unique (and possibly non-obvious) data point.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by ldng on Thursday November 04, 2010 @07:46AM (#1868478)
Originally AdSense too was Python/MySQL. Nowadays I don't know.
Re:Ask HN: Is PHP/MySQL Still Practical for Building Web App... by pbiggar on Thursday November 04, 2010 @06:53AM (#1868359)
In a similar vein, Google is largely written in C++.