Hacker News new | ask | show | jobs
by healthyhippo 5573 days ago
I just sent this out to a friend who was trying to figure out whether to build his simple app in ruby vs. php. Think it made up his mind.
2 comments

I'm assuming his decision was ruby based on the ugly PHP code in the example? If so, your friend is wrong for two reasons:

1 - Writing the example in PHP from scratch would be at least as simple as writing it in Ruby, it's only because it's been converted that the PHP code is so convoluted.

2 - Depending on what you consider a to be 'small' app, PHP is probably the better language. I find Ruby is more suited to larger scale apps, especially where persistence is advantageous.

In short, Fructose is just going to give PHP more undeserved bad press.

That's a pretty stupid reason, though. The two samples of code are no where near identical...
> That's a pretty stupid reason, though.

Yes. So, do you really want him writing PHP?

I don't want him writing Ruby, either. Keep him away from the sharp knives and stupid decisions and give him Java/Play or something.