I'm new to Ruby and I have a few questions about it. How does Ruby scale to large-scale web applications? For example, if YouTube were written in Ruby, would it be as fast as it is now? Another question is how do you compare CakePHP with Ruby? Thanks.
on 2007-03-02 00:06
on 2007-03-02 01:12
> I'm new to Ruby and I have a few questions about it. > > How does Ruby scale to large-scale web applications? For example, if > YouTube were written in Ruby, would it be as fast as it is now? http://gettingreal.37signals.com/ch04_Scale_Later.php > Another question is how do you compare CakePHP with Ruby? We don't. CakePHP is a framework (written in PHP), an Ruby is a programming language (in which Ruby on Rails framework is written). Regards, Rimantas -- http://rimantas.com/
on 2007-03-03 15:54
Hi emre! I'll prefix all my comments below by saying that I am a professional PHP programmer for both small and large-scale apps. I'm also doing growing amounts of Rails programming. I use CakePHP from time-to-time for several projects that are restricted to running on PHP4 servers. > How does Ruby scale to large-scale web applications? For example, if > YouTube were written in Ruby, would it be as fast as it is now? Rails scales quite well. You will notice that "out the box" rails will be a bit slower than any simple non-framework PHP scripts you have written in the past. This slowdown is more than worth it in my opinion because you are able to quickly bootstrap applications in Rails and get them up and running. At that point Rails is ready to scale out and be fine-tuned for performance. Also - say your PHP app is running slowly - how will you profile it and figure out what is slowing down? Rails has this built in. > Another question is how do you compare CakePHP with Ruby? They are actually quite similar - CakePHP has pulled a good many ideas and even names of methods from Rails. That being said, you will quickly notice that Rails has much more elegant syntax (thanks to Ruby) and that you can do quite a bit more things with less work. Lastly - one thing that you may think is cool coming from a PHP world (I did) was that a Rails project includes its own web server built into the code (look into the "ruby script/server" command). You won't have to fool with running a full web stack on your development workstation or uploading files to a server to see how they run. If nothing else, learning Ruby/Rails will no doubt help your PHP programming - it will force you to think in new ways. Got any more questions? Feel free to give me a shout back. Wes
on 2007-03-03 23:05
Each time I see the "how do you compare the speed/scalability of Ruby/ Rails with <insert language/platform here>, I'm reminded of the following piece of wisdom: A good algorithm beats machine optimizations every time. With Ruby, and particularly with Rails, the path to working code is quite fast. When you spot a bottleneck, you have time to think through your algorithms, and come up with something clever. I've yet to see any deal-breakers in Rails, but I haven't been slash-dotted yet :)
on 2007-03-04 04:24
Thanks for all the replies. Actually, I've started coding my project in Rails and that's very exciting!