October 31, 200917 yr 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
October 31, 200917 yr 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.
October 31, 200917 yr 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.
October 31, 200917 yr Yeah am digging ruby, still can't comment on RoR . 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 #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.
October 31, 200917 yr #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.
October 31, 200917 yr 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 ?
October 31, 200917 yr 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 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