Jump to content

Recommended Posts

Hello,

Some of my friends said that ruby is better than PHP and they said some advantage , I really did not understand because I did not use ruby once before , is it ruby better ?? if not why ??

 

also they mention that ruby framework called "ruby on rails" is better than any PHP  framework !! ,

If someone could tell me the difference  plz

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/69809-ruby/
Share on other sites

There isn't really such a thing as a better language. It really depends on the job at hand. Ruby (and Ruby on rails) is slowly becoming more and more popular, but still, there isn't anythong Ruby can do that php can't.

 

Thats being said, Ruby is a very clearly designed language, while php is pretty much a hacked together language that I find more and more faults with (design wise). PHP is still the more popular of the two and you will probably find more tutorials, help and hosting support for it.

Link to comment
https://forums.phpfreaks.com/topic/69809-ruby/#findComment-350724
Share on other sites

yes, but do I have to use PHP only for finding help and host ?

 

I know both languages can do the same job but I need the easier, powerful and faster in result because I work as independent programmer for example both language could make image gallery but which is faster ? and dont need alot of line codes ?

 

I once saw an example of file upload with a real time progress bar created entirely with ruby , I do not saw PHP alone can do that may be it is the only thing I saw PHP cant do alone ,

 

however I like PHP alot but plz tell me the truth

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/69809-ruby/#findComment-350757
Share on other sites

however I like PHP alot but please tell me the truth

 

The truth is there is no correct answer. If you already know php I would say there is little (if any) advantage to switching to Ruby.

 

I once saw an example of file upload with a real time progress bar created entirely with ruby , I do not saw PHP alone can do that may be it is the only thing I saw PHP cant do alone ,

 

Ruby (as with php) is a server side scripting language. What you think was Ruby only was probably an Ajax/Ror script. Seriously, there is nothing Ruby can do that PHP can't.

 

As for writting applications using less lines of code. Rails is a framework, the whole objective a frameworks is to cut down on code rewritting by making things more modular. Using any decent PHP framework will more than likely give simular results.

Link to comment
https://forums.phpfreaks.com/topic/69809-ruby/#findComment-350765
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.