RoR a replacement for PHP?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Then the question is: Ruby or PHP?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

Daedalus- wrote:Then the question is: Ruby or PHP?
No, the question is: With so many great languages and frameworks ... how can I get more time!

Ruby, Python, PHP, Java, C# ... this are good times for web developers.
(#10850)
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

yes I remember the days when my options were perl and javascript... (well php was there but I didn't know about it and java was out of my realm of understanding)
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

hydroxide wrote:The Ruby scripting language is every bit as flexible as PHP as far as I know
Research more. You'll find there are substantial areas where that is not accurate. Those areas may not be important to you.
hydroxide wrote:and PHP doesn't come with an effective framework solution that rails so nicely lays out.
Ruby doesn't come with Rails. It offers an easy way to install one, which is what PEAR will do for the Zend Framework, when it is completed. Also keep in mind that there are several dozen alternative frameworks available for PHP. Whether you consider any of those individual choices "effective" or not, they are in use, and in development.
hydroxide wrote:So on the pure basis of language vs language there probably isn't much difference
On the contrary, there is substantial difference between the languages. Ruby is at its heart OOP. PHP started with procedural code, and has matured to include a robust OOP infrastructure - giving a solid presence in both worlds. Ruby is substantially limited in many ways, and thats just one example. Compare building extensions to the language, raw I/O work, and more, and you'll find that the statement "there isn't much difference" is just wrong.

I'm not the first to say it, and certainly not the best at saying it.
hydroxide wrote:but the framework and development nuances are what rails is all about. So with that in mind, why wouldn't you switch over to Rails?
Once more, this time with bold: Because its framework and nuances aren't the nuances that match my development preferences.

Why do you keep asking about why people are not eating chocolate? The vanilla tastes great!
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Roja wrote:Why do you keep asking about why people are not eating chocolate? The vanilla tastes great!
Bad comparison... chocolate is always the way to go... in any situation... no matter what.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

hydroxide wrote:
Daedalus- wrote:I wouldn't because I like to write code.

Rails is just that: a Framework.

I don't want to spend my time working inside of a Framework that isn't my own. That's boring. If I wanted to focus on the presentation of a website I would have become a designer.

The thing is with rails is that it provides an initial framework, but as soon as you want to make something your own, you can take control of it and remove the "scaffolding".
It sounds like you want someone here to agree with you that you should become a RoR developer. I'll do that. Go ahead. Enjoy it.

As for me, I like being able to go to just about any host, drop my developed apps on their server and have them run. And if, for some reason they don't, I like to be able to ask a seasoned PHP developer why they think it doesn't. There are no shortages of any of these factors.

As for Ruby... it has its place, as does Java, C#, C++, etc. Probably not so much on a forum dedicated to the PHP language, but it does have its place.

When it gets to the point where PHP is now, with the user base, the tutorials and forums, the access to as many hosts as PHP and the freely available nature of along with the ease in which you can get it, I might consider learning it. Until then, Free Linux, Free Apache, Free MySQL and Free PHP do it just fine for me.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The Ninja Space Goat wrote:
Roja wrote:Why do you keep asking about why people are not eating chocolate? The vanilla tastes great!
Bad comparison... chocolate is always the way to go... in any situation... no matter what.
Focus Ninja, Focus. You are on the verge of getting another PHPDN award for next year... :wink:
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I'll never be get the official john eaton award. :x :cry:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The Ninja Space Goat wrote:I'll never be get the official john eaton award. :x :cry:
Maybe John Eaton can give it to you...
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Who is John Eaton?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

I don't know him but he has funny looking nipples.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That was funny. :lol:
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

I don't really want to re-kindle the fire but I found this article:

http://www.megginson.com/blogs/quoderat ... w-centric/
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Rails offers a rapid development framework for Ruby - which is different to just "a" framework (a la a (coherent) library of classes to speed up development). It offers an inherent "meta-layer" for CRUD, scaffolding, inherent MVC, ActiveRecord and more.

There are a number of implementations of Rails in PHP, among them CakePHP which works seamlessly with PHP5 and 4, and Symfony which is based on the Mojavi-framework (PHP5 only). Before you say: "I'm bored/don't like/hate the restraints of someone else's framework", try them out. They are very powerful and save a lot of time, more than your usual homebaked development framework (consisting of a probably a db-, session-, caching-, user- and what-have-you- class).

For CakePHP, there's a nice introduction at http://www.sitepoint.com/article/applic ... nt-cakephp

I've played around with CakePHP and am seriously impressed with it's capabilities and what it offers and am currently using it for a project.

P.S.: NinjaSpaceGoat - just because you can doesn't mean you have to attempt to take threads off topic. You don't have to live up to your award all the time.
Post Reply