# php or ruby on rails ???

**URL:** <https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286>\
**Category:** rubyonrails-talk\
**Created:** [September 18, 2007, 1:22pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286 "2007-09-18T13:22:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Roelofs](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Jason\_Roelofs](https://discuss.rubyonrails.org/u/Jason_Roelofs)\
**Post date:** [September 18, 2007, 1:22pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/1 "2007-09-18T13:22:31Z")

</div>

Do you want Ruby vs PHP or Rails vs PHP?

Ruby vs PHP: Ruby is a solid, pure OO language that’s fun to program in and has very few, if any, surprises. PHP is a hacked-together-over-many-years scripting language for web sites. You really need to spend some time with Ruby, read the books ( [http://www.rubycentral.com/pickaxe/](http://www.rubycentral.com/pickaxe/)) to understand why PHP really is a terrible language.

Rails vs PHP: Well, now you’re comparing a web framework with a language, which really doesn’t make sense. If you’re sick of manually setting up database connections, building up SQL queries, hard-coding and hacking up how pages flow together and trying to find the “nice, neat, and proper” way of doing large sites in PHP, well then go look at Rails, because a majority of your problems are taken care of for you.

Do you have any specific questions? It’s hard to really compare the two without either a large dissertation or having a list of questions to answer about both.

Jason

---

<div class="post-metadata">

**Author:** ![Mindtonic](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Mindtonic](https://discuss.rubyonrails.org/u/Mindtonic)\
**Post date:** [September 18, 2007, 3:19pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/2 "2007-09-18T15:19:02Z")

</div>

Depends, and you should ask your host. If they don't, perhaps you can suggest they get with the program.

I ended up changing hosts because 1&1 was not very receptive to discussion on Rails. It was a small inconvenience when compared with the days of my life that have been saved from using rails. There are several good hosting companies available for rails. Check out [http://www.railshosting.org/](http://www.railshosting.org/).

I chose HostGator because of their reputation for helpful customer service. I have no complaints.

---

<div class="post-metadata">

**Author:** ![Salam\_Fall](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@Salam\_Fall](https://discuss.rubyonrails.org/u/Salam_Fall)\
**Post date:** [September 18, 2007, 3:20pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/3 "2007-09-18T15:20:18Z")

</div>

If you are looking for an IDE extension for Ruby on Rails here is a link [http://rubyweaver.gilluminate.com/](http://rubyweaver.gilluminate.com/)

Salam Madior Fall

---

<div class="post-metadata">

**Author:** ![Salam\_Fall](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@Salam\_Fall](https://discuss.rubyonrails.org/u/Salam_Fall)\
**Post date:** [September 18, 2007, 3:21pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/4 "2007-09-18T15:21:36Z")

</div>

I forgot to mention For Dreamweaver CS3 Salam Fall

---

<div class="post-metadata">

**Author:** ![Jason\_Roelofs](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@Jason\_Roelofs](https://discuss.rubyonrails.org/u/Jason_Roelofs)\
**Post date:** [September 18, 2007, 4:01pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/5 "2007-09-18T16:01:30Z")

</div>

> ## is there a full featured IDE, I really hate to use command line to write ruby syntax or database structure
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> That said, there are quite a few IDE’s converted to work with Ruby, including NetBeans, RadRails (Eclipse), and SteelRuby (VisualStudio).
> 
> Jason

---

<div class="post-metadata">

**Author:** ![Duran\_Goodyear](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@Duran\_Goodyear](https://discuss.rubyonrails.org/u/Duran_Goodyear)\
**Post date:** [September 18, 2007, 4:01pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/6 "2007-09-18T16:01:33Z")

</div>

This should get you started [http://www.google.com/search?q=ror+ide](http://www.google.com/search?q=ror+ide)

---

<div class="post-metadata">

**Author:** ![Peter\_De\_Berdt](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Peter\_De\_Berdt](https://discuss.rubyonrails.org/u/Peter_De_Berdt)\
**Post date:** [September 18, 2007, 4:24pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/7 "2007-09-18T16:24:11Z")

</div>

You’re confusing a lot of things here.

PHP and Ruby are serverside languages. Rails, Symphony, CakePHP, … are frameworks.

Flex is nothing more than a presentation layer, just as HTML is. You can use Flex with RoR (producing XML in your views that Flex can then take and visualize), just as you could use _gulp_ CakePHP or Symphony or your own PHP framework to pass XML to Flex. You could also use HTML and JS to visualize your data, or you could use OpenLaszlo. Beautiful interfaces are possible with any of these, and it’s a matter of taste. I personally don’t think the default Flex interface elements are that great, just like raw unstyled HTML isn’t that great.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![Peter\_Armstrong](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Peter\_Armstrong](https://discuss.rubyonrails.org/u/Peter_Armstrong)\
**Post date:** [September 18, 2007, 4:41pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/8 "2007-09-18T16:41:54Z")

</div>

Here are some links that might help for the Flex + RoR combination:

[http://flex.org/ruby/](http://flex.org/ruby/)

> **[フレッツ光のキャッシュバックキャンペーン情報 | フレッツ光、コラボ光のキャンペーン情報満載！](https://flexonrails.net/)**
>
> フレッツ光キャッシュバックキャンペーン！最大80,000円です。インターネット回線は、NTTフレッツ光だけではなく、お客様希望のコラボ光サービス(docomo光、ソフトバンク光、au光、biglobe光、nuro光)も対象となることがございますので、お気軽にご連絡ください。お客様の携帯電話のプランなどによっては、お得になるサービスになりますので、ぜひごりようください。

Cheers, Peter Armstrong

---

<div class="post-metadata">

**Author:** ![Peter\_De\_Berdt](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Peter\_De\_Berdt](https://discuss.rubyonrails.org/u/Peter_De_Berdt)\
**Post date:** [September 18, 2007, 5:52pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/9 "2007-09-18T17:52:58Z")

</div>

What about junk food vs restaurant food? It depends on what you prefer, I prefer restaurant food.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![Steve\_Ross](https://avatars.discourse-cdn.com/v4/letter/s/3d9bf3/32.png) [@Steve\_Ross](https://discuss.rubyonrails.org/u/Steve_Ross)\
**Post date:** [September 18, 2007, 6:10pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/10 "2007-09-18T18:10:27Z")

</div>

@mdk4…

If you are insistent on a point-click-drag solution, Ruby on Rails may not be your ideal solution. My view of Rails is that it encourages putting the most thought and care into the areas of your Web application that are likely to be hardest to get right and most dangerous if you get wrong. Perhaps reversing the sense of that is better: Rails puts the most emphasis on doing right by the parts that will screw you the worst if you get them wrong. For example:

- Baked in generators create models, controllers (and at the same time views)

- Each code generator creates skeleton tests (!!!)

- Pushing your business logic into the model and writing meaningful tests will reduce the risk of your app screwing up

This is probably all obvious stuff, but it’s not an integral part of the development methodology of most environments. That said, a generator is typically not a menu item in an IDE. It’s a command in a “black window” such as:

$ script/generate controller posts

I’ve found that because Rails is “opinionated” software it encourages good practices – ones that only the more disciplined developers keep up with using Java or [ASP.NET](http://ASP.NET). A relatively small number of PHP developers do formal testing, from my experience.

If you haven’t tried Rails, put Dreamweaver away for a bit, open up a terminal, and follow along with one of the tutorials. Only by using the “black window” will you discover that it’s not to be feared – rather, it will improve your productivity.

My $.02

---

<div class="post-metadata">

**Author:** ![Con](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Con](https://discuss.rubyonrails.org/u/Con)\
**Post date:** [September 18, 2007, 9:48pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/11 "2007-09-18T21:48:06Z")

</div>

Hi, it’s also possible to use Flex front-end and a Rails back-end. Thus, please take a look at the following:

[http://www.adobe.com/devnet/flex/articles/flex2\_rails.html](http://www.adobe.com/devnet/flex/articles/flex2_rails.html)

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![Anthony\_Richardson](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@Anthony\_Richardson](https://discuss.rubyonrails.org/u/Anthony_Richardson)\
**Post date:** [September 19, 2007, 12:00pm UTC](https://discuss.rubyonrails.org/t/php-or-ruby-on-rails/18286/12 "2007-09-19T12:00:23Z")

</div>

mdk4ever -- wrote:

> BTW: what My $0.02 mean ?? &nbsp;&nbsp; [My two cents - Wikipedia](http://en.wikipedia.org/wiki/My_two_cents_(idiom))
