Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: PHP OR RUBY?

  1. #11

    sayun raba ang RoR. . ?

  2. #12
    Sayon ra man ang ROR. The advantage of ruby over php is that ruby is really a object-oriented and dynamic programming language with methods overriding and overloading which not present in php. But php had larger community than ruby.

  3. #13
    whats the difference between Ruby and RoR. . ? unsay relation nila. . ?

  4. #14
    Quote Originally Posted by Tin_Tin View Post
    whats the difference between Ruby and RoR. . ? unsay relation nila. . ?
    mrag ang RoR kai pang web sya

  5. #15
    OT: Ring of Regeneration. hihi.

  6. #16
    bitaw unsa bitaw ang difference sa Ruby ug sa Rails. . ?

  7. #17
    Quote Originally Posted by Tin_Tin View Post
    bitaw unsa bitaw ang difference sa Ruby ug sa Rails. . ?
    ruby is an interpreted programming language(similar to php, python, perl)
    rails is a model-view-controller(MVC) built on top of ruby(or built using ruby)(similar to PHP's symfony,cakePHP,codeIgniter)

    as someone who actively uses both, i could enumerate some of diffs in ruby vs php:

    ruby is a pure oop language(like java) while php is not(not sure which is the better thing though):
    by this i mean, everything in ruby is an object while php has some functions)..

    php's object oriented aspect is not as good as ruby's:
    by this i mean:
    mixin is way too powerful compared to interface.. closures for ruby, which you can't do in php.. also, note that php just started taking oop seriously in php5, ruby was from beginning..

    (namespaces will be supported in future version of php, ruby has modules for namespacing)

    php's dynamic aspect is not as good as ruby's:
    in php, you're left with eval which can only execute code until you do a newline and some support for reflection.
    in ruby, eval, class_eval, hooks(e.g. Module#extended), open classes, reflection, introspection,metaprogramming(hence dsl) are all natural.

    ruby's regex is based on perl, in php it has it's own regex(but note php supports perl regex with pcre)
    this one is just my opinion: perl regular expression has the superior regex construct.
    in php, you have preg_match, preg_replace and etc..
    in ruby(just like perl), regex comes natural as well, you can do:
    "test" =~ /test/ #which is equiv preg_match
    "testing".gsub(/t/,'') #which is eqiuv to preg_replace
    ruby 1.9's regular expression has some new bells(w/c i don't like to explain) like look-behind, look-ahead, look-around etc built into it..

    ruby 1.8 has a poor support for string encodings(which will be fully supported in 1.9), php has a rich support i think with mbstring but it's a non-default extension..

    ruby is slow, php is fast..

    in deployment: rails is a bit expensive compared to php. rails hosts are also smaller than of php..(prob b/c of the user base)

    on ruby on rails vs the mvc framework for php such as codeigniter, cakephp, symfony.. i think these guys are looking at rails and see if they can make the feature in their php mvc frameworks.. it's almost like they're a fan of rails..

    lol, quite a long post.. sorry for that..
    Last edited by jtpopol; 07-07-2008 at 10:14 AM. Reason: updated typos..

  8. #18
    Ruby On Rails (ROR) is a MVC Framework built on the top of Ruby.

  9. #19
    @jtpopol: thanks bro now i understand the difference between ruby and rails. . .

    so rails is just like cakephp. . . hmmmm interesting. . .

  10. #20
    Quote Originally Posted by Tin_Tin View Post
    whats the difference between Ruby and RoR. . ? unsay relation nila. . ?

    Ruby is a programming language while RoR or Ruby on Rails is a open source web application framework for Ruby using Model-View-Controller (MVC) architecture.

    example:

    Language
    1. PHP
    2. Ruby

    Framework
    1. Cake PHP, symfony and more..
    2. Ruby on Rails

  11.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. Replies: 4
    Last Post: 03-03-2013, 12:29 AM
  2. We make rich web applications in PHP or Ruby on Rails + Jquery
    By Adones Pitogo in forum Websites & Multimedia
    Replies: 0
    Last Post: 02-28-2013, 11:29 AM
  3. Which do you prefer AJAX or Ruby-on-Rails?
    By bytelick in forum Programming
    Replies: 36
    Last Post: 09-11-2010, 01:14 AM
  4. php or sql lessons
    By wynboost in forum Websites & Multimedia
    Replies: 3
    Last Post: 09-21-2006, 10:09 PM
  5. Replies: 2
    Last Post: 06-08-2006, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top