4 ms·
I have often thought the same thing as PHP is a fantastic web development language, and it is very well developed. The documentation is very good, and as you me
by JeremyChase 17y ago
I have often thought the same thing as PHP is a fantastic web development language, and it is very well developed. The documentation is very good, and as you mentioned there are useful code examples right in the documentation. The learning curve for PHP is very low, and there is library support for pretty much anything you want to do. Oh, and it is dead simple to deploy.
I think RoR is one large reason why PHP is looked down now. More specifically, there isn't a leading PHP framework that has a proven following or as well executed marketing plan. There are a lot of PHP frameworks, but none that capture the attention of the masses like RoR.
The other argument I hear is that the language is annoying to program in. This just doesn't not compute in my brain as PHP code looks perfectly normal to me. I think that some people just prefer certain syntax, and I have yet to come up with a reason that I understand.
As you have probably guessed I have been a PHP fan for years, but I recently started seriously using Ruby/Rails for some side projects. There are two reasons I am playing with this instead of cakePHP/KohanaPHP/Symfony/Zend
1. There is a lot of literature about Ruby/RoR
2. I found myself resisting Ruby/RoR, and I don't want to be the old guy that won't learn new technology
- ErrantX 17y agoWHat would you recommend for getting into Ruby? I tried it once but their site is horrible and the "Hello World" example is really babyish and idiotic - and it put me off :) I've never "got" RoR. Python makes sense to me as a killer all-purpose language just as PHP makes sense to me as a niche for-the-web language (I cant get these people that insist on running PHP standalone :o). But I never quite figured the rails niche.
- JeremyChase 17y agoErrantX I would highly recommend learning Ruby before trying RoR. The first time I tried to learn RoR I didn't know any Ruby. I had limited success because I had to battle the framework and the language. You don't need to know everything about Ruby to start on RoR, but you should be able to write some basic programs. There are a number of online resources for Ruby: Unofficial and old, but has a lot of good info: http://www.math.umd.edu/~dcarrera/ruby/0.3/ http://www.math.umd.edu/~dcarrera/ruby/0.3/ http://www.whytheluckystiff.net/ruby/pickaxe/ http://www.whytheluckystiff.net/ruby/pickaxe/ http://www.ruby-doc.org/docs/UsersGuide/rg/ http://www.ruby-doc.org/docs/UsersGuide/rg/ http://qa.poignantguide.net/index.html http://qa.poignantguide.net/index.html For RoR guides online, I didn't find anything that I really liked. I ended up with Sitepoint's Simply Rails 2.0 and followed it. I didn't find any free guides/books that really helped me much. Once you get a basic understanding of MVC you can learn a lot of from http://railscasts.com http://railscasts.com though. PS: Sorry to everyone for the RoR/Ruby hijack EDIT: Wrote a sentence misleadingly, fixed it.
- breck 17y agoWhy do you need a framework? LAMP is a framework. With a simple ORM class and a class for handling forms and inputs, PHP gives you wings.