M
M
MaksSmag2020-10-09 15:38:25
ruby
MaksSmag, 2020-10-09 15:38:25

Does Ruby have any advantages over PHP?

I thought. Does Ruby have something that PHP doesn't? He's popular. Now I only code in PHP.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vladislav Lyskov, 2020-10-09
@Vlatqa

ruby died, it's time to accept, at least in the CIS, he has no advantages now

Z
Zaporozhchenko Oleg, 2020-10-09
@c3gdlk

Work should be fun. Why not spend 40 hours to understand whether you like it more than php or not? And what the language can do in the end is the tenth thing.
If we talk about the differences, then ruby ​​has a very complex internal structure that allows you to write incredibly expressive code. But, it's all slow and eats a lot of memory. Only the latest versions of the language began to gradually close the gap with the same php or python

R
Roman Mirilaczvili, 2020-10-09
@2ord

Ruby has a good toolkit.
Not only web applications are written on it. For example, there are other well-known projects such as Vagrant, Chef, Puppet, Logstash, YaST, Homebrew, WATIR, Metasploit, and others.
Ruby is often used to write scripts and other things for automation.
Crystal is a Ruby-like compiled and statically typed language for those who want high performance on par with Go.

M
Marat Amerov, 2020-10-09
@amerov

1) If you work a lot with external services, then repl (rails console) can be useful
2) If you need to write DSL
3) If you need to work with some c/c ++ lib that has ruby ​​bindings

G
GesigesendGesets, 2020-10-09
@GesigesendGesets

Ruby for those who like to be alone
I'm not kidding. probably really the chances of working alone with a cool customer are much higher than in some C ++, not to mention something even more popular and digestible. only to find such a customer ... hardly on green freelance sites)

V
Vladimir Korotenko, 2020-10-09
@firedragon

If something and choose to replace it, then C # Java Go IMHO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question