# Project Code Decision

**URL:** <https://www.ruby-forum.com/t/project-code-decision/172397>\
**Category:** Rails\
**Created:** [July 21, 2009, 12:37am UTC](https://www.ruby-forum.com/t/project-code-decision/172397 "2009-07-21T00:37:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [July 21, 2009, 12:37am UTC](https://www.ruby-forum.com/t/project-code-decision/172397/1 "2009-07-21T00:37:22Z")

</div>

Hello Everyone,

My name is Eric. I will be starting a large project soon and I have a  
few questions. I will be creating a browser based sports simulator.  
Users will be able to create a player or a coach and ether coach a  
team or play on a team. We plan to have features like a live game  
tracker, mini pickup games, and multiple player and team managements.  
I know I will be developing the site itself with rails. However I am  
not sure how well rails will work for the actual simulation. My  
question is do you all think that rails would be a good tool for  
creating the sim or should I stick to PHP? I expect to get mostly  
bias answers here due to the fact that this is the rails communality,  
but I would love if someone who has had experience with both can give  
me a few reasons why one would be better than the other. Thanks for  
your time.

Eric

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [July 21, 2009, 1:22am UTC](https://www.ruby-forum.com/t/project-code-decision/172397/2 "2009-07-21T01:22:23Z")

</div>

Hi Eric

On Mon, 2009-07-20 at 08:28 -0700, Eric wrote:

> I know I will be developing the site itself with rails.

Super.

> However I am not sure how well rails will work for the  
> actual simulation. My question is do you all think that  
> rails would be a good tool for creating the sim or should  
> I stick to PHP?

Rails is a framework for creating database-driven, web-based  
applications in Ruby. Your sim question should be Ruby vs. PHP, not  
Rails vs. PHP. You might want to ask it on the Ruby-talk mailing  
list.

The one thing you can count on is that a Ruby-based sim is going to be a  
more natural fit for integrating with Rails than a PHP-based sim. Other  
than that, your existing skill-set, and willingness to learn something  
new (i.e., Ruby), I’d think the nature of the sim itself is probably the  
most important factor WRT to the Ruby vs. PHP question Ruby is very OO.

HTH,  
Bil

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [July 21, 2009, 2:22am UTC](https://www.ruby-forum.com/t/project-code-decision/172397/3 "2009-07-21T02:22:35Z")

</div>

Thanks Bill.

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [July 21, 2009, 4:35am UTC](https://www.ruby-forum.com/t/project-code-decision/172397/4 "2009-07-21T04:35:13Z")

</div>

On Mon, 2009-07-20 at 17:21 -0700, Eric wrote:

> Thanks Bill.

You’re welcome, Eric. Hope to see you around. But do what makes sense.

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![eric](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/898d66/32.png) [@eric](https://www.ruby-forum.com/u/eric)\
**Post date:** [July 21, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/project-code-decision/172397/5 "2009-07-21T19:40:56Z")

</div>

Eric wrote:

> Hello Everyone,  
> […]  
> I know I will be developing the site itself with rails. However I am  
> not sure how well rails will work for the actual simulation. My  
> question is do you all think that rails would be a good tool for  
> creating the sim or should I stick to PHP?

The Rails framework might or might not be good for the simulation, but  
Ruby itself will be an excellent language for almost anything you care  
to throw at it. As far as I know, there is nothing that PHP does that  
Ruby can’t do better, and you’ll be integrating the simulation with a  
Rails app anyway – so where is there a single good reason for using PHP  
here? I don’t see one.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
