Re:Fructose: compile Ruby into PHP
by rauljara on Friday April 29, 2011 @04:37PM
(#2498898)
Is this some sort of snide commentary on how much more limited of a language php is? It doesn't seem like it could possibly be meant for production. I guess I could see it being a fun learning project, tho.
[ Parent
| on HN ]
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?