T
T
TideSofDarK2012-07-22 01:00:10
Ruby on Rails
TideSofDarK, 2012-07-22 01:00:10

What to learn, PHP or Rails?

I am just starting to learn web development, but I would like to always use the most relevant and latest technologies.
Having mastered a little layout, I wanted to learn one of the “server-side” languages. Faced with a choice, php or Ruby. What would you advise to choose if I'm counting on freelancing? Before that, I didn’t deal with the web, I have experience with Flash (and with some C-like languages) and also, a little, with python (but I don’t want to take Django).
Thanks in advance for your reply.

Answer the question

In order to leave comments, you need to log in

14 answer(s)
V
Viktor Kuznetsov, 2012-07-22
@janitor

Learn whichever one is more enjoyable. If you are interested in order to find out which language is easier to find a job with, then PHP. And if purely for yourself - then any, then you will understand that all languages ​​\u200b\u200bare garbage, and start writing articles on Habré.

D
dustalov, 2012-07-22
@dustalov

For general erudition, it is worth running in all the tools that are common today. Each of them is good for a certain range of tasks, which is often determined not by technical, but by economic and organizational requirements.
Many have chosen Ruby (and Rails) and have not regretted it. Highly recommend.

P
powder96, 2012-07-22
@powder96

PHP is more popular than Ruby, so it's definitely PHP for freelancing. I looked at the Ruby code a couple of times and I personally did not like the syntax. You can see the comparison here: _ttp://hyperpolyglot.org/scripting and there: _ttp://hyperpolyglot.org/scripting2.
But I agree with nazarpc - the Internet is full of outdated material, so it will be difficult to immediately reach a normal level. But the main thing is to start. After that, bit by bit, normal knowledge will begin to gather.

V
Vladimir Chernyshev, 2012-07-22
@VolCh

1. If the question is about making money as soon as possible on freelancing, then learn PHP and several popular CMS and modules for them, since most of the tasks are to “finish”, “write a module”, etc. Then frameworks.
2. If it’s about a set of theoretical knowledge, about setting a programming style, then with RoR, write at least one application more serious than a tutorial for yourself in compliance with all recommended practices, and then switch to PHP.

A
Alexander, 2012-07-22
@Alexx_ps

PHP will always be relevant, and the situation with Ruby reminds me of some kind of hipster phenomenon, as it used to be with Delphi. If you plan to work in startups, write high-load projects there, learn Ruby. PHP is fine for everything else.

A
andreysmind, 2012-07-22
@andreysmind

Rails "out of the box" enforce the correct style, TDD, MVS and other buzzwords. I think that for getting a base and understanding “how it works”, RoR is better.

N
Nazar Mokrinsky, 2012-07-22
@nazarpc

Each has its own advantages.
Whatever you choose, learn from up-to-date information.
So, as I am only familiar with PHP, I can say that a lot of things on the web are morally outdated, and make up a false idea of ​​\u200b\u200ba language that is actually constantly evolving, it is more and more pleasant to work with each new version.
Probably, look at the syntax, open a couple of Open Source projects (for example, some engines), which you like more, seem easier - start with that, and then you can switch to another if necessary.

A
Andrey Polyakov, 2012-07-22
@magnitudo

Start learning both and then decide for yourself what you like best.

S
Sergey Beresnev, 2012-09-10
@sectus

Rails is a framework and PHP is a language. Therefore, from the PHP side, also choose the right framework right away.

A
Alex, 2012-07-22
@classx

RoR

A
Angerslave, 2012-07-22
@Angerslave

There are no actual and latest technologies, there are more and less applicable tools in certain tasks. The web can also be written in Java and .NET, in principle, you can even write in bash, but I would advise you not to chase technologies, but to learn the basics, including just programming.
Still, it would be nice to decide for yourself, freelancing or studying? Learning at the expense of the customer is not the best idea.
Due to its greater popularity, especially in the field of small projects, PHP is preferable to Ruby, but if you still learn, then Ruby probably contains less WTF / sec, so RoR at best can not be compared with PHP, but rather with Symfony2 or the like fremwork level. Accordingly, it is better to learn with an eye on the best PHP frameworks.
In general, whatever path is chosen, I would recommend constantly looking around, finding the best in all technologies.

G
Georgy Khromchenko, 2012-07-23
@Mox

In my opinion, it is important to understand what you want to do here
- If you want to write in PHP at work - learn PHP - If you
want to write in RoR - learn RoR
than a website, but there are still a lot of RoR customers.

T
Tenkoff, 2012-07-22
@Tenkoff

Everything is simple, php will do for you, but if you think something terrible - namely, to write some kind of backend that does unimaginable and fast things, look towards perl, ruby, python - as if the demand for these things on freelance is very small, so take your pick :)

S
smglab, 2012-07-23
@smglab

PHP is popular with the Russian-speaking freelance segment, and in the English-speaking segment there is a lot of work in any development language, my advice is to try writing something small in both and you will understand what you want

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question