[Beginners are worried] Which is better, Ruby, PHP or Python?

First of all

The first thing to think about when trying to program is "Which programming language should I start with?"

And if you go google, the programming language called Ruby will come in as information first.

The reason why Ruby gets caught in beginners first is because "most programming schools are pushing Ruby hard".

By the way, if you go further, PHP and Python are languages similar to Ruby.

Which language should I study?

Image of Ruby, PHP and Python

First of all, the image I had with little knowledge.

As a result, I've heard about PHP somehow ... In my case, I knew the existence of a programming language called PHP because I was running a blog on WordPress for a while.

I wrote that PHP is old-fashioned, but when I googled it,

It turns out that PHP is new among these three programming languages. I would like to apologize to PHP, which was categorized as old-fashioned just by the image.

Only PHP is a little different! ??

There are some reasons why they are compared, but these three programming languages are very server-side languages.

And the method of description is very similar.

For example, let's simply use Hello world! In 3 languages!

Ruby


print "Hello World!"

PHP


<?php 
echo "Hello World!"; 
?>

Python


print("Hello world!")

...... .... ..

Did you notice! ?? Ruby and Python are similar in writing, but PHP is a little messy, isn't it? Earlier, I wrote that the description method is very similar, but in fact, if you take a closer look, only PHP is different.

The reason why only PHP is a little messy is [PHP Wikipedia](https://ja.wikipedia.org/wiki/PHP_(%E3%83%97%E3%83%AD%E3%82%B0%) I found the following description in E3% 83% A9% E3% 83% 9F% E3% 83% B3% E3% 82% B0% E8% A8% 80% E8% AA% 9E)). Isn't it the answer?

Originally PHP was not a programming language, it was just a template-like process, but due to repeated additions of functions and code rewriting, PHP 5 and PHP 7 released as of 2017 are aimed at. It is a scripting language that can be used for general purposes.

in short __PHP was originally a different programming language. __ I'm guessing, but I think that's the answer.

Why are Ruby, PHP and Python compared?

Here, I will write about two major factors.

The framework is amazing

A framework is software that can significantly shorten the development process when creating an application, and this __ framework is substantial = it is possible to create an application with great functions in a short period of time. __ If you can use it, it's like a magic item, but for Ruby, PHP, and Python introduced this time,

It has a great framework like the one above.

Used by major sites that have been growing in recent years

Isn't it exhausted here after all?

All programming languages are used by leading companies that are difficult to match.

Which language should I learn after all?

If you say that you should learn the language you are interested in, that's all you need to do.

If you are learning to get a job or change jobs, not as a hobby, simply look at the number of job offers. PHP>=Ruby>Python PHP may be the best because of the tendency. It's just about the number of job offers ...

Reference: [Comparison of PHP / Python / Ruby] Summary of advantages, disadvantages, and features of languages | Workship MAGAZINE

Recommended Posts

[Beginners are worried] Which is better, Ruby, PHP or Python?
Which is better, PyPy or Python?
Which is better, python standard input receiving input () or sys.stdin?
Which is faster, Python shuffle or sample?
Are Php / Ruby / Python that only runs when the file is called directly
[Linux] End of process or job, which is better?
Java VS PHP VS Python VS Ruby
[Python] Which is executed first, the class variable or __init__?
About Perl, Python, PHP, Ruby
Golang vs. Python – Is Golang Better Than Python?
Dynamic proxy with python, ruby, PHP
Determining which OS is running Python
[Comparison of PHP, Ruby, and Python description] For those who are wondering how the description method is different.
[Short Poem] Haskell / PureScript function calls are better than Ruby / Python / JavaScript
Realize PHP / Python generator with Golang / Ruby
PHP / Python / Ruby sample hitting Path API
Referencing INI files in Python or Ruby
[Basic grammar] Differences between Ruby / Python / PHP
10 Python errors that are common to beginners