Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ROR vs PHP

Featured Replies

Hi Guys

 

I recently have started learning PHP, through video tutorials on Lynda.com.

 

But I'm wondering .. which is best to learn ROR or PHP ?

 

I know it is best to learn both .. LOL but say If you had to choose one !

 

Is there anything that PHP can do, that ROR can't ? or the other way round ?

 

Thanks

RoR is a framework for ruby. Like codeignitor, or cake is for php.

 

I don't know anything about ruby, but those i know who do, love it. They say it's alot more intuitive than php.

 

Try this http://tryruby.sophrinix.com/

 

Edit - That links is mighty fun, i might try my hands at learning this. :p

No idea and to be very honest PHP absolutely broke my back with learning it. RoR the syntax looks insane.

 

I think out the box RoR comes with all the scaffolding features you see in a PHP framework like CAKE or CI. Which really helps in speeding up the dev process.

Yeah am digging ruby, still can't comment on RoR :p. However, thinking about it, you might be best going for php. Purely based on the community and the support available. If you have a php problem, getting it solved is probably alot quicker than ruby.

 

Just a thought.

 

 

From the little bit of ruby i've learnt in the last hour, allowed me to write this for you :p

 

#beer-bottles.rb

99.downto(1)  { |bottlenumber|  
 print "#{bottlenumber} bottles's of beer on the wall, #{bottlenumber} bottles's of beer, 
Take one down and pass it around, #{bottlenumber -1} bottles of beer on the wall. \n\n"
 }
 print "No more bottles of beer on the wall, no more bottles of beer.
Go to the store buy some more, 99 bottles of beer on the wall."

 

Can you guess the output? lol.

 

 

#beer-bottles.rb

99.downto(1) { |bottlenumber| 
print "#{bottlenumber} bottles's of beer on the wall, #{bottlenumber} bottles's of beer, 
Take one down and pass it around, #{bottlenumber -1} bottles of beer on the wall. \n\n"
}
print "No more bottles of beer on the wall, no more bottles of beer.
Go to the store buy some more, 99 bottles of beer on the wall."

 

 

It just looks so ugly, not your ability of course. How many language use a pipe for a variable and why the # to print each instance.

  • Author

OK I guess I'll continue with PHP then :)

 

Plus .. Most forum software use PHP right ? so I will need PHP in order to add tweaks to say IPB for example ?

 

Right ?

It just looks so ugly, not your ability of course. How many language use a pipe for a variable and why the # to print each instance.

 

No, probably my ability :p

 

I found this, http://99-bottles-of-beer.net/language-ruby-787.html a site with that little song written in many ways, in many languages.

 

Most software uses php, the support would probably be easier, i've been told php has better scalability too.

 

And ipb is php based, alot of pre-built software is php based.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.