P
P
pixal2016-04-21 01:37:08
ruby
pixal, 2016-04-21 01:37:08

Is Ruby suitable for telegram bot?

Hello! I want to write a telegram bot. I choose a language between Python and Ruby. I don't know Rba well, but in Python, the indented syntax is confusing. But Ruby seems to be slower. What do you advise?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
T
thenno, 2016-04-21
@thenno

On the main question: if you do not know Python or Ruby, just take any, learn and make a bot.
On the second: where do you need the speed for a telegram bot? I can now talk for a long time about asynchrony in Python and the possibility of horizontal scaling with the right architecture - but for now I’ll just repeat the first answer: just take any, learn and make a bot. Well, if we consider bare languages ​​- well, what kind of performance can an interpreted language with GIL on one machine produce in inept hands? And Python and Ruby are both interpreted and limited to the global lock. Even here, everything can be solved through interprocess communication and any kind of asynchronism - but a person who had experience with these approaches would hardly have asked such questions.
Well, I can not resist: what's the difference in syntax? Especially such trifles as indents with spaces. What's the difference between limiting code blocks - indented, through begin-end, just through end, or curly braces? Yes, even through XXX and YYY - this DOES NOT CHANGE ANYTHING.
In short: take Python, it's trendy right now. If you want to write a bot for a telegram, this gentleman at groosh-code.tumblr.com wrote a bunch of good articles about it, and even in Russian.

A
Alexey P, 2016-04-21
@ruddy22

Go Lang is also very trendy. Same with nodejs

B
Befomet, 2016-04-21
@Befomet

There is a tutorial on telegram bot on Ruby
www.sitepoint.com/quickly-create-a-telegram-bot-in-ruby

R
Roman Mirilaczvili, 2016-04-21
@2ord

It looks like both languages ​​are about the same in terms of performance.
ruby language. Is it worth learning the Ru programming language...
Ruby has many gems for working with various protocols and systems, especially for the web.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question