Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web service: PHP or Ruby on Rails or Python? [closed]

I am a .Net / SQL Server developer via my daytime job, and on the side I do some objective C development for the iPhone. I would like to develop a web service and since dreamhost supports mySql, python, ruby on rails and PHP5, I would like to create it using one of those languages. If you had no experience in either python, Ruby on Rails or PHP, which would you go with and why? The service basically just takes a request and talks to a MySql database.

Note: Was planning on using the SOAP protocol.. though I am open to suggestions since I have a clean slate with these languages.

like image 663
Codezy Avatar asked Jul 26 '09 00:07

Codezy


People also ask

Is Ruby on Rails outdated?

In the modern tech world, AI-powered applications are entering the scene. And it becomes significant for a programming language or framework to be ML-friendly. That's why some developers may claim Ruby and Rails outdated – Rails is really not designed for Machine learning.

Is Ruby on Rails still relevant 2022?

Ruby's and Ruby on Rails' Overall Popularity Although way behind main contenders, such as PHP or Python, Ruby still makes the cut for the 20 most popular programming languages list in 2022. The 2022 edition of Stack Overflow Annual Developer Survey also places RoR in a similar spot.

What is replacing Ruby on Rails?

It is now increasingly being replaced by other technologies like Node. js code, Python code, and Golang code. The death of Ruby on Rails code has been predicted for over a decade however it keeps on going and growing. The reasons are many, but the major one is that it's an easy-to-use code languages and framework.

Which is better Ruby on Rails or PHP?

However, the web development cost in Ruby on Rails can be significantly lower due to the availability of ready-made solutions and a more flexible language structure. If you need to create a small blog, PHP will serve well for these purposes, but Ruby on Rails wins on more serious projects.


1 Answers

Ruby-on-rails, Python and PHP would all be excellent choices for developing a web service in. All the languages are capable (with of course Ruby being the language that Ruby on Rails is written in), have strong frameworks if that is your fancy (Django being a good python example, and something like Drupal or CakePHP being good PHP examples) and can play nicely with MySql.

I'd say that it would depend mostly on your past experience and what you'd be the most comfortable with. Assuming that you're developing C# on .NET and have experience with Objective-C PHP may be a good choice because it is most certainly from the C family of languages. So the syntax might be more familiar and a bit easier to deal with.

I'm a PHP developer so I'll give you that slant and let more knowledgeable developers with the others give theirs as well. PHP is tightly integrated with Apache, which can make some of the more mundane tasks that you'd have to handle with the others a bit more trivial (though when working with a framework those are usually removed). The PHP documentation is second to none and is a great resource for getting up and going easily. It has decent speed and there are good caching mechanisms out there to get more performance out of it. I know that getting up and running with PHP on Dreamhost is trivial. I haven't done it in the other instances although it wouldn't surprise me if those were just as easy as well.

I'd suggest digging a bit more into the documentation and frameworks for each language to find out what suits you best.

like image 162
codeincarnate Avatar answered Sep 18 '22 04:09

codeincarnate