RUBY VS PYTHON | FULL COMPARISON IN 5 MIN
HTML-код
- Опубликовано: 6 фев 2025
- In today’s video, we will learn about the two popular programming languages: Python vs Ruby.
▶ Contact Jelvix: hello@jelvix.com | jelvix.com
We are a technology consulting and software development company eager to share our knowledge and experience.
Subscribe for more tech tips and tutorials: / @jelvix
▶ LINKS:
Ruby on Rails vs Node.js - jelvix.com/blo...
Ruby vs Python - jelvix.com/blo...
▶ TIME CODES:
▶ Follow us:
Facebook - / jelvixcompany
Twitter - / jelvix
Instagram - / jelvix
Linkedin - / jelvix
Upwork - www.upwork.com...
▶ About this video:
Ruby
Its primary goal is to combine functional and imperative programming styles to make software development easier.
Ruby’s popular web-application framework called Ruby on Rails (RoR).
Python
Named for Monty Python, it is a general-purpose cross-platform language that is available under FSF and OSI licenses.
We'll closely compare them in today's video.
Tell us your opinion on Python vs Ruby. What features make a winner here? 🧐
Warning! Not a single line of code is shown in this video.
I expected a technical side-by-side comparison of Python vs. Ruby syntax.
thats dumb
A bit biased towards Python. Why is it "complicated" to ensure reusability with Ruby code? Whoever says that does not know how to use the language. Ruby can be readable too. Actually it can be more readable than Python, some "Pythonic" conventions are horrible. What does it mean that Python provides one solution? Whatever solution written depends on the coder, and it's readability depends on how clean he/she is.
Java: ...... I don't see any difference.(dodge ^_^)
@Evil robot Santa Claus meanwhile Laravel: now()->addMonth(1);
When people say there is "one right way" to do things in Python, it's a philosophy thing NOT a language thing. Python and pythonic conventions are considered as a unit, in the sense that it's one of the few languages that tells you how it likes to be written. You can technically write python however you like, without following those conventions at all, but many would say that you're missing the point of python. The philosophy at play here is that programming languages have too much flexibility, and if you take 100 programmers writing the same language you will see 100 different "dialects". This can make it difficult to read other people's code and work in collaborative environments. So to combat this, python comes with a set of loose restrictions attached to it (i.e. a style guide instead of a compiler check) that theoretically limits the variation between programmers so that there's only one universal "dialect", pythonic. This is the sense in which there is "one right way" -- python has simply defined "right" for you. If everyone writing python is doing it the same way, then reading and collaborating with others is theoretically as easy as coding alone.
This differs from other languages in that the coding style guides given by the authors of other languages are mostly much less strict or even non-existent. Many companies or sectors or teams will define their own style guides for these languages so that the code you work with directly is as uniform as possible, but python believes that responsibility should be on the language rather than the groups using it, so that things are consistent on a global scale. One could, of course, argue that this is overly restrictive and makes python a less expressive language when written this way, and that it has a very corporate feel to how it strips individuality out of the programmers. A more generous reading would be that python automates the coding part and makes it transparent so that readers and writers can focus on the design. One could also rightfully argue that this is all theoretical, and there is just as much variation in python code as there is in any other language, and the only true way to ensure strict coding standards is to have them built in as compiler checks. Nonetheless, the philsophy is just that; even if it never attains the theoretical optimization, it operates under the assumption that it's worth pursuing.
Ruby is better, if we talk about coding websites and doing serious projects. It's also great with web automation. And python is for beginners, who don't want to write a lot of code. But if we talk about automation, python wins. But to my mind it depends on a programmer and he/she likes more.
@@alxjones The Python style guide was written with the understanding that code is read more often than it is written. You’ll write your code once and then start reading it as you begin debugging. When you add features to a program, you’ll spend more time reading your code. When you share your code with other programmers, they’ll read your code as well. So in my opinion python's philosophy is right.
Python and Ruby both are best it depends on the situation
When would you choose one over the other?
I love Ruby a lot
... me, too.
Ruby is the best
Ruby has a solid future. It’s easy to learn, very capable and support will grow. It has a high pay scale for jobs and because fewer people knows Ruby that would put a Ruby programmer in high demand for employers looking for Ruby skilled developer. Visual Basic started small as Basic and who knew that C# would end up being a popular language to make games when Microsoft employees made it? Competition is good and Ruby can fit in just fine for web applications which will soon out pace traditional tangible software. Too many people knows Python.
And IT'S FLEXIBLE
I know both languages and the direct comparison presented here doesn't make sense in most points. For example: reusability depends on the person writing the code, not the code itself.
Python has large community which gives it an advantage but ruby on the other side holds advantage on readability, easy to learn, has strong oop concept which will be handy while implementing something with design patterns concepts
Are the people in 3:58 making arguments of the better choice of both programming languages? Wow! They seem to be engaged in the discussion.
I find Ruby to be just as readable as Python, if not more.
The only reason to use Python over Ruby is the vast number of libraries that Python has available. It's a shame that Ruby doesn't enjoy the same kind of library support that Python does.
"ruby reusability is complicated"
Ruby:
require './folder/script'
Python:
Create ugly __init__.py file in each folder
import os, sys
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
from module_in_other_folder import a
yeah, much better...
just learn ruby. Before I watched this video :)
Luckily, your comment is biased too much.
[/sarc]
Good luck finding a good job using ruby hahaha
Comments like these make me want to learn Ruby lol
I am pretty unsure if anyone who worked on this video had experience with either python or ruby prior.
good explanation but this forced smile voice which sounds like straight out of a commercial is massively annoying
It can't be correct, as at 0:33 it says that Ruby's goal is to combine "Imperative + Functional Programming (FP)" but Ruby has classes what is Object Oriented Programming (OOP for short) but at 1:27 it says about the Ruby language characteristics: "It's a OOP language". You can do Imperative programming in a OOP language but the OOP is a huge overhead in comparison to the pure Imperative, vide C vs C++.
It's actually kind of unusual a language goal to be "to combine FP with Imperative" nowadays the trend is more "to combine OOP with SOME functional characteristics".
Both can equally counter each other
can you tel us ho is the best is c or assembly
in most case you will use c, use asm when you cant use other thing
C is the better choice for most general-purpose programming. Assembly is the best choice for situations requiring precise control over hardware or where extreme performance optimization is necessary
When I saw the title I turned off the movie to watch this. Great job)
Ruby tambien tiene Modulos..! deberian de un experto en los 2 lenguajes hacer estos videos y no ser parciales, porque de hecho es mas facil leer ruby, es un lenguaje mas natural por decirlo asi
Y cuando hablamos de programación concurrente o en paralelo ruby lleva la delantera
No wonder my execs always push us to switch to python from ruby; everything I watch and read totally misrepresents ruby.
Do you prefer Ruby?
Python is, no doubt, a great language. However, I do not like the look and feel of Python. To me, its syntax is awkward, with its use of white spaces for control structures and not just for readability. To me, that means that the white space characters are effectively the same as reserved words. Like the "end-if" in an "if" statement in some other langhage.
Hi! Thank you for sharing your opinion!
"Popular"
- Ruby
This is such a bad comparison and would be misleading to a newbie programmer. ( Also very bias towards python ).
Is Ruby good for freshers to learn nowdays?
RUBY is way better . Python has no closing block and I constantly have to deal with the silly indentations and f strings
Thanks a lot for this video!
🤓We love hearing from you! Thank you for leaving feedback for us.
I think to learn both
Teach ruby
Thank you. helpful all the way
python is the clear winner because of mojo
Hi! Thank you for your feedback!
By the time I watched an overly simple video saying basically not much at all Uhm I learnt one of the frameworks within the same time almost. These videos are ok for people which have no clue about programming and curious but just throwing lots of jargon around… waste of time to watch. Explain to me how the models between the two are different even though they have similar way of thinking. Why is ruby better for high traffic and python high data? How does the database affect that? Seems more like throwing poop at wall and hoping something sticks…
Thanks for clean explanation...! Great work!
I love python
Hi! We love Python too) 😉
Python better duh
Everything in this video is good
one of the worst I saw this week.
ruby is the best language
It could be a fight of the different languages fans 😅
Ruby: Poor mans python no one uses