Why rails is better than php?

I have three years of experience in developing application in PHP.

From last one and half year i am working with rails.

i found me very comfortable with rails. In PHP we cannot develop app with test cases and test driven. and every PHP guys have his own style to write a code or develop applications.

Lets discuss about PHP and Rails.

http://www.ruby-forum.com/forum/3?filter=php

This horse has been beaten to death already so many times that this is just a pointless discussion.

Besides, the MVC frameworks for PHP, whether that’s Symphony or CakePHP or Framework X also have a testing framework built-in and also make you follow a certain convention.

Is PHP bad? No. Will I ever use it again? I certainly hope not. I feel more productive and comfortable with Rails and especially Ruby.

Best regards

Peter De Berdt

There are plenty of huge sites using Rails:

And there are very large data sets being processed with Ruby and Rails in genomics research:

http://www.vimeo.com/1104164

Perhaps what is lacking is your own understanding of how to run a production Rails app.

http://www.google.com/search?source=ig&hl=en&rlz=&q=why+php+sucks

Not to mention the completely ludicrous attempt at a MVC framework by Zend:

http://destiney.com/blog/zend-framework-web-2-0-framework-my-ass

I prefer to call it the Zend Library because its not really a framework in the sense that Cake or Symfony is.

Gents,

I did an extensive research on web frameworks last year before starting a project and concluded that the more powerful, productive and fun one was RoR. But we cannot simply dismiss PHP as crap. Nowadays it really sucks, but back in 1998 it was absolutely amazing!!! I implemented a whole e-Learning system based on it and it was such a fantastic tool. I simply would not have made it without PHP.

PHP was a pioneer that actually revolutionized web development.

Cheers, Sazima

But we cannot simply dismiss PHP as crap. Nowadays it really sucks

Dont these two statements kinda contradict each other?

PHP was a pioneer that actually revolutionized web development.

A lot of the PHP frameworks like symfony have used a lot of good ideas from RoR and Django. While RoR is very nice (I like it!), I would not automatically dismiss all other frameworks either.

Its also a little bit disingenuous to compare RoR (i.e. a framework) with PHP (a language).

As in all of these kinds of discussions its possible to write bad code in *any* programming language.

<...>

In PHP we cannot develop app with test cases and test driven.

<...>

Uhm, why not? http://www.phpunit.de/

Regards, Rimantas

Rimantas Liubertas wrote:

<...>

In PHP we cannot develop app with test cases and test driven.

<...>

Uhm, why not? http://www.phpunit.de/

Is PHP itself invented via TDD?

Also, what's the relation between PHP and Perl? Is it a fork of Perl? If so, why?

Hi --

Rimantas Liubertas wrote:

<...>

In PHP we cannot develop app with test cases and test driven.

<...>

Uhm, why not? http://www.phpunit.de/

Is PHP itself invented via TDD?

Nothing is invented via TDD. That would be TDI :slight_smile: But I don't know the answer to your question. You could check the code base and see what kind of test suite there is or isn't.

Also, what's the relation between PHP and Perl? Is it a fork of Perl? If so, why?

In the spirit of "Link To Something Other Than Wikipedia!" Week[1], http://us3.php.net/history.

David

[1] http://tinyurl.com/66nu4t

Ruby is very Perl-like in some ways (even the name :slight_smile: