Answer the question
In order to leave comments, you need to log in
Why is Ruby good?
I've been hearing a lot about Ruby lately.
How is it different from PHP or Python? Better or worse?
What is his point so to speak?
Answer the question
In order to leave comments, you need to log in
> echo str_repeat("trollface.jpg", 100500);
Well, if you're like that... then Ruby can do it.
> How is it different from PHP or Python? Better or worse? What is his point so to speak?
Brevity, conciseness and good community. And, also love for tests, most of the rubists write tests + another 30% of the bottom use TDD ... first tests, then code. Try to force the PHP programmer to write tests, it's easier to shoot.
It's like explaining to a blind person why a rainbow is better than partial shade.
How would you like it to be explained to you? Did you give examples from life where a python takes in his mouth, and ruby copes perfectly? Of course, there are such examples, for example, lambdas, but you still won’t enter if you still don’t understand what the semantics of the language is and why it is important. You could take python, take ruby, study each of them for a couple of weeks and draw conclusions. Instead, you wait for a ready-made solution to be put into your brain. It will not happen. They’ll rather put a dick in your mouth, just as if you were blind - they wouldn’t explain the difference between a rainbow and penumbra, but they would give you a blow in the stomach and take away a trifle.
You fools think that knowledge of programming languages is something external that can be repeated, imitated. They told you - you repeated - and it seems like you know this or that PL. In reality, the knowledge of programming languages is a lot of inner work that a person does with abstractions in his head. And only if a person is capable of abstract thinking - only then, having multiplied this ability by knowledge of languages, can he understand the difference between them. For the rest, the entry threshold is high, and, frankly, I'm glad about it.
If very briefly, then:
Try to reproduce the record 100500 times in php :)))
And in more detail, Google or a search on the resource will give an answer to such a question.
Laconic, readable... But that's no reason to switch to Ruby. But Rails is really a reason. After the same ZF rails are very impressive. Watch the video Creating a blog in 15 minutes with Rails
Rails.
However, at first, he allows himself to shoot his legs off in an unimaginable number of ways.
Rubik is good for playing around, peeing simple things. Get a taste, so to speak) But when working on the market, especially the Russian one, I would not use it. And he's so good, yes
I already unsubscribed a little higher in the Comments to the "answer", but I repeat a little:
In terms of the market, for example, you can find yourself a job as a developer of the server part of MMO game projects.
You will also be "universal" to some extent, since both desktop and web applications are written on it.
As with a number of others, such as nodejs, you can speed up the development process many times over (compared to php, for sure).
You can very easily "out of the box" reuse the developments of other developers using the "package manager".
It's not worth talking about the syntax, but in the end it all depends on the scope, tasks and time - choose the best tool. If you describe "your situation" in a little more detail, maybe,
I will add that the emergence of a new language is always a certain philosophy of its own, and there are always adherents and opponents. I urge not to arrange a "holivar", but to approach this issue more rationally and practically. And write only about your experience, and about what Ruby did for you :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question