News for hackers. Stuff that matters.
Re:Fructose: compile Ruby into PHP by healthyhippo on Friday April 29, 2011 @05:45PM (#2499118)
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.
Re:Fructose: compile Ruby into PHP by MattBearman on Saturday April 30, 2011 @05:34AM (#2500318)
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.

Re:Fructose: compile Ruby into PHP by mfjordvald on Friday April 29, 2011 @05:59PM (#2499166)
That's a pretty stupid reason, though. The two samples of code are no where near identical...
Re:Fructose: compile Ruby into PHP by jasonlotito on Friday April 29, 2011 @09:49PM (#2499652)
> That's a pretty stupid reason, though.

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

Re:Fructose: compile Ruby into PHP by eropple on Saturday April 30, 2011 @01:09AM (#2499931)
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.