From: Aredridel Date: 2004-04-24T08:44:06+09:00 Subject: Re: Is Ruby is better than PHP ... On Thu, Apr 22, 2004 at 02:29:06AM +0900, Useko Netsumi wrote: > It is very unfortunate that this nice young language does not consider the > web development in mind. I even think that if and only if Ruby creator ever > think this thru by including web design in mind, Ruby can easily gain its > popularity against PHP and Java because of its ease of use features, its > consistency, its OO paradigm, and many. > > Is there any work being done to cater specifically for web development? eRuby -- embedded ruby in HTML mod_ruby -- embed Ruby in Apache ruby-fcgi -- Run Ruby as a FastCGI process webrick -- Ruby's native web and network server classes fcgi-webrick -- the bridge I wrote to use the Webrick API under FastCGI amrita -- a nice templating system that I adore kwartz -- another templating system borges -- a continuation-based web development platform, so programming is more linear than CGI usually permits I've given up PHP -- Code that's monstrous in PHP can be simple in Ruby. Add in that if I design properly, with a separate set of classes or methods for business logic, I can then convert into a native GUI app at some point (As I intend to do with my latest app). The high points for me about Ruby for web development: The encouragement to use clean solutions like templating, and the string interpolation. I'm fond of replacing PHP-ish this: $a = do_something(); $b = do_something_else(); print("$b"); with a ruby this: puts "#{do_something_else}" Uniform access is a wonder. Ari