Python Vs. Ruby - Which Is Better?!

  Рет қаралды 19,217

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 97
@Quaght
@Quaght 10 ай бұрын
I've been a network engineer for 25 years but I could never wrap my head around programming. Until I started working with Python. Now I build tools in Python to assist my teams with device configurations. And Codemy has helped me out A LOT with that. Thanks for the quality videos, John!
@Codemycom
@Codemycom 10 ай бұрын
awesome! glad to hear it!
@pablobello0
@pablobello0 8 ай бұрын
Ruby ❤
@Sommyie
@Sommyie 10 ай бұрын
Ruby > Python (until 3.10) for one reason: Switch Statements. One thing I love/hate about ruby... Want to use ()? OK. Don't want to? OK.
@Codemycom
@Codemycom 10 ай бұрын
ha yeah
@Rzevsky
@Rzevsky 7 ай бұрын
1. Comparing "Python" and "Ruby" in terms of earnings is the same as saying that knowing Chinese will bring you more money than knowing German. 2. I'm a beginner and at some point, I heard the truth: "Understand what you like. Focus on it. Become the best at it." That's why I chose ROR. Let the crowds of newbies "learn Python" and compete with 100 people for a spot. I don't need competitors at this stage 😂.
@Codemycom
@Codemycom 7 ай бұрын
ha, all good points
@AjayKumar-id7mb
@AjayKumar-id7mb 7 ай бұрын
Me too Bro
@boboako9986
@boboako9986 4 ай бұрын
I thought scarcity of talents drives demand and pay. So ROR I go.
@altridotdev
@altridotdev 3 ай бұрын
Awesome point haha
@francogaliotti3837
@francogaliotti3837 6 ай бұрын
It's true that there are fewer jobs in RoR, but they are easier to get, considering that there aren't that many Ruby developers these days. If you're a Python developer (same as with JS), you'll be competing with maybe 100 people for a position. If you're a Ruby developer, not only will you have a better chance of getting a job, but companies will also be competing for you.
@Codemycom
@Codemycom 6 ай бұрын
Solid point
@Lab_Analyst
@Lab_Analyst 6 ай бұрын
Seems balanced then. Less competition with fewer opportunities vs more opportunities with more competition 🤷🏾‍♂️
@Codemycom
@Codemycom 6 ай бұрын
@@Lab_Analyst yep
@francogaliotti3837
@francogaliotti3837 5 ай бұрын
@@Lab_Analyst But when you have less competition you have more chances to negotiate a higher salary 😉
@abdullahnaim10
@abdullahnaim10 4 ай бұрын
As long as your not jr then its great. But for jr ruby jobs seem impossible to land.
@iopyrb
@iopyrb 7 ай бұрын
idc about people underrate ruby, i love this language and it's web framework, rails. i use it until now.
@Codemycom
@Codemycom 7 ай бұрын
whatever floats your boat
@uplink-on-yt
@uplink-on-yt 6 ай бұрын
Why did Python get shot down for being an interpreted language, but not Ruby? Did something change with Ruby that I missed? Last time I checked, Ruby was still measurably quite a bit slower than Python (which itself is measurably a snail unless you use PyPy or similar).
@Codemycom
@Codemycom 6 ай бұрын
yup
@perogycook
@perogycook 5 ай бұрын
Ruby's faster than Python and pretty much always has been. With YJIT especially. Both are slow enough though that it doesn't really matter though. And both use C/C++ libs to do anything computationally expensive.
@em_the_bee
@em_the_bee 4 ай бұрын
​@@perogycookthat doesn't apply to Rails which is quite a fat and slow boi compared to other Ruby web frameworks. And it doesn't benefit from JIT last time I checked (which was like a year ago, but I doubt it has changed) Still, it doesn't matter, unless you have a huge high load project
@mutantthegreat7963
@mutantthegreat7963 2 ай бұрын
What about speed of execution? Sometimes python seems to take a while to spin up, it feels heavier somehow
@mellowmorgan
@mellowmorgan 5 күн бұрын
I started with Python, went to Ruby and became great at it professionally, now back to learning Python again because of lack of jobs in the industry and of course there are always more Python ones. But this experience has made me realize Ruby is a lot more pleasant to write in. There's just more built-in methods, no need to import stuff and less issues with gems than with pip packages, less strictness in how you write stuff (indentation, parentheses...), I could go on...but python has more uses and is more ubiquitous and so way more jobs. Basically I'm bitter about it.
@kellyaquinastom
@kellyaquinastom 3 ай бұрын
Wow. Was seriously considering ror because the big picture seemed right: dhh using linux in a docker to self host with no build for a controlled dev env that scaled with a structure using MVC and engines as modular components. Is there an equivalent path in Python please?
@Codemycom
@Codemycom 3 ай бұрын
@@kellyaquinastom Django
@naeltahchi2272
@naeltahchi2272 3 ай бұрын
Great video, thank you for sharing. I have a question tho: Can you build frontend with python? how about about mobile apps?
@Codemycom
@Codemycom 3 ай бұрын
mobile apps yes, frontend, sort of (jinja and django etc).
@kamelshaaban5238
@kamelshaaban5238 10 ай бұрын
you are the best i am new here but i can tell you are the best on youtube
@Codemycom
@Codemycom 10 ай бұрын
Thanks!
@sairamsubramaniam8316
@sairamsubramaniam8316 10 ай бұрын
Can you please do a similar comparison on Java and Python ? Thanks in Advance. Also, I love your contents a lot, especially Flask Fridays :)
@Codemycom
@Codemycom 10 ай бұрын
Good idea!
@KelvinLoh-h7z
@KelvinLoh-h7z 10 ай бұрын
How about Flutter and Go? Will you film a comparison with Python?
@Codemycom
@Codemycom 10 ай бұрын
Possibly
@ipodtouch470
@ipodtouch470 3 ай бұрын
Mare you talking about flutter vs go? If that’s the case it depends. You would never use flutter for other then building a mobile app that target both android and iOS. Golang is mainly used on the server. Ohh and also flutter is a dart framework golang is programming language.
@Claude_CJ_Vercetti
@Claude_CJ_Vercetti 10 ай бұрын
What do you think about Rust language?
@Codemycom
@Codemycom 10 ай бұрын
It has it's uses
@tibo-bt1ig
@tibo-bt1ig 9 ай бұрын
I find it a bit frustrating to read or hear Ruby as if RoR is the only webframework. Frankly, Sinatra + Sequel is fantastic, simple, stable etc. Other Ruby webframeworks are Hanami (recently release their upgrade 2.1) and Roda. RoR is a pain. And then, there also is mruby for doing other things than web development. That doesn't change what you said about smaller community and less jobs obviously. By the way, I understood that in Japan Ruby is used for many things, other than RoR.
@Codemycom
@Codemycom 9 ай бұрын
There may be many other frameworks, but if hardly anyone uses them...does it matter?
@tibo-bt1ig
@tibo-bt1ig 8 ай бұрын
@@Codemycom It does actually. In my opinion, rails killed ruby. Using RoR, you don't really program in ruby, but fill out the whitespaces that the framework leaves you. You question is "which is better?" If your question were "which is most useful?", then yes, you're right: Python.
@Codemycom
@Codemycom 8 ай бұрын
@@tibo-bt1ig but again, if no one is using them, it doesn't matter. User community is essential for a framework, and those you mention have none.
@phuripatkongsakban8580
@phuripatkongsakban8580 4 ай бұрын
I come from C++, so when I have to choose between Python and Ruby, I choose Python because most of the concepts are the same in C++. On the other hand, Ruby is easy to make things done. So if I want to make something by myself quickly. Ruby is the one I choose.
@sonoftroy8572
@sonoftroy8572 3 ай бұрын
Wait… at the beginning of the video you said both Python and Ruby were easy to learn and you gave them both a tie, then you said Ruby is hard to learn later in the video… you’re killing me smalls!
@Viota894
@Viota894 13 күн бұрын
He said RoR (Ruby on Rails) is hard to learn. Not Ruby itself.
@wtfdoiputhere
@wtfdoiputhere 10 ай бұрын
As any "x vs y" question, it depends what ur using them for so this comparison isn't fair for neither of those languages
@Codemycom
@Codemycom 10 ай бұрын
Sure it is. but you can keep arguing if you want.
@cbbcbb6803
@cbbcbb6803 6 ай бұрын
Python seems to be a front for C/C++. To me, that means that Python is not its own language. There is nothing wrong with having libraries that writen in C/C++ or Rust or Go (or Cobol) for that matter. And in Python, spaces and tabs and new lines (blank lines) are like reserved words. Not good. Not good at all. I do not know Ruby nor Python. But, I think I would be more comfortable with Ruby.
@Codemycom
@Codemycom 6 ай бұрын
No, Python is most certainly 1. it's own language. and 1b. The most popular language in the history of programming... and 2. No, spaces and new lines are not at all reserved words. Python ignores them.
@cbbcbb6803
@cbbcbb6803 5 ай бұрын
​@@CodemycomBut in Python when you have an "if" statement and you misplace a space or a new line ot a tab or something like that, it seems just like in another language when you have an "if ... end if" construct and you misplace or forget the "end if" part, your program fails or it produces terrible results. That is why I say that in Python, white space characters act just like reserved words. They do not act just as readability markers. They control how a Python program flow and perform. Just like "end if" or "end do", and so on. For that reason, I do not like the look and feel of Python.
@keenoogodlike
@keenoogodlike 10 ай бұрын
Python is extremely large community and resources. Now AI have impact on every companies, Python needed more than ever and become most use language. Python can do everything except system development.
@Codemycom
@Codemycom 10 ай бұрын
Yep
@mawkuri5496
@mawkuri5496 5 ай бұрын
can you make flet tutorials 😁 that will focus on mobile frontend development that can work with django backend?
@Codemycom
@Codemycom 5 ай бұрын
yeah eventually
@jonabreak
@jonabreak 5 ай бұрын
Utilizo python para automatizar algunas tareas, incluso lo utilizo para consultar WMI a equipos remotos en red.
@ewerthonsavedra9501
@ewerthonsavedra9501 9 ай бұрын
Show, great video 📚
@Codemycom
@Codemycom 9 ай бұрын
Thanks!
@VictorOrdu
@VictorOrdu 7 ай бұрын
Actually salaries for Python would be lower, going by your logic. Nevertheless great video.
@Codemycom
@Codemycom 7 ай бұрын
no, not really
@perogycook
@perogycook 5 ай бұрын
Ruby's much better but unfortunately Python has become standard for many tasks...
@Codemycom
@Codemycom 5 ай бұрын
much better? in what ways?
@perogycook
@perogycook 5 ай бұрын
@@Codemycom faster, more consistent, gem and bundler > pip, conda, etc..., no significant indentation but still very terse and readable, etc... Just a nicer language.
@twenty-fifth420
@twenty-fifth420 8 ай бұрын
Ahem, what about embedding? I am building a game engine as a major project, minus a few CLI tools for personal use. I think Python and Pygame lead the casual game jam and game developer space. It isn't too hard to find a python game framework/engine. Meanwhile for Ruby, I can name two. Dragon Ruby, which is maintained. And RPG Maker, which newer versions have switched to Javascript. Also, I am kind of a masochist, I kind of want to take just the spec of both languages and embed it. Personally, I love Ruby way more then Python syntax and semantically. I find Ruby more 'functional', strangely enough, although I think Python is definitely more general purpose in either imperative/declarative programming. Just some tea. Also, if you wanna learn Ruby and Web. Please, for the love of god, just use Hanami. Soon, I believe it will be the Django but for Ruby. Mark my words.
@zealousprogrammer4539
@zealousprogrammer4539 10 ай бұрын
Are they still supporting Ruby?
@Codemycom
@Codemycom 10 ай бұрын
Of course
@alexcrowder1673
@alexcrowder1673 8 ай бұрын
I think im in the wrong place.... I like Pythons and Rubies, but idk what any of this means lol.
@Codemycom
@Codemycom 8 ай бұрын
lol
@nocopyrightgameplaystockvi231
@nocopyrightgameplaystockvi231 10 ай бұрын
Python. Hands down.
@Codemycom
@Codemycom 10 ай бұрын
Agreed
@gabriel-cor
@gabriel-cor 3 ай бұрын
or just use Elixir.
@EconTech_Insights
@EconTech_Insights 10 ай бұрын
Sir big fan plz pin me I have learned ML & Flask from you!!!❤
@Codemycom
@Codemycom 10 ай бұрын
Awesome!
@mz7640
@mz7640 6 ай бұрын
Joke: Ruby on rails is difficult to learn 🤣
@Codemycom
@Codemycom 6 ай бұрын
lol
@SubinKrishnaKT
@SubinKrishnaKT Ай бұрын
Abstracted piece of...
@bhaskarraj_2
@bhaskarraj_2 4 ай бұрын
Python! Python! Hip hip hooray🙂
@Codemycom
@Codemycom 4 ай бұрын
yep!
@grass324
@grass324 5 ай бұрын
without the start and end backets in python turns me off
@Codemycom
@Codemycom 4 ай бұрын
weird
@freibuis
@freibuis 4 ай бұрын
I use both... but the one python pain point.. rubygems is better than pip.... hands down. Gemfile vs ? requirements.txt ... like really.
@sma1gdz
@sma1gdz 10 ай бұрын
python is the best
@Codemycom
@Codemycom 10 ай бұрын
yep
@berkefekeskin9172
@berkefekeskin9172 10 ай бұрын
@Codemycom
@Codemycom 10 ай бұрын
:-)
@Faybmi
@Faybmi 10 ай бұрын
I am first!!!!
@Codemycom
@Codemycom 10 ай бұрын
Fun
@garfield-pro
@garfield-pro 10 ай бұрын
This is 🐂💩. You say Ruby is super easy to learn and in cons of Ruby you mention it is hard to learn.
@Codemycom
@Codemycom 10 ай бұрын
No I didn't, you didn't pay attention. I said Ruby on Rails is hard, not Ruby. They are 2 different things. If you want to be an obnoxious troll, at least pay attention.
@vishnuprasanth4725
@vishnuprasanth4725 8 ай бұрын
Rails is hard because of It's conventions, not because of ruby
@Codemycom
@Codemycom 8 ай бұрын
@@vishnuprasanth4725 sure
@EightNineOne
@EightNineOne 8 ай бұрын
The biggest issue with rails I think is the documentation. Sure it’s comprehensive, but it’s written in such a way that it assumes too much. It’s bad for beginners as it doesn’t move slow enough and bad for devs from other platforms as it’s not concise enough to use a reference. You get long periods of fun and smooth sailing and then a brick wall of something that isn’t actually that obscure a question follows by three hours of googling.
@Codemycom
@Codemycom 8 ай бұрын
@@EightNineOne very true
@member.x.from.sai-teiki
@member.x.from.sai-teiki 6 ай бұрын
SHELL SCRIPT NUMBER ONE! HIRE ME PLEASE! I AM THE POSIXISM ENGINEER!
@Codemycom
@Codemycom 6 ай бұрын
huh?
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 477 М.
Python Vs. PHP - Which Is Better?!
4:12
Codemy.com
Рет қаралды 16 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
A Legendary Web Framework is Reborn... In Rust
9:49
Code to the Moon
Рет қаралды 104 М.
Rails 8 + AI = Magic: Watch This To Do List Come to Life! #rails
4:52
Rails Quest by Kaleb Lape
Рет қаралды 5 М.
Avoid these 9 mistakes when learning Ruby on Rails
14:01
webcrunch
Рет қаралды 4,6 М.
RUBY VS PYTHON | FULL COMPARISON IN 5 MIN
4:54
Jelvix | TECH IN 5 MINUTES
Рет қаралды 60 М.
How I Would Learn Python FAST (if I could start over)
12:19
Ruby on Rails in 100 Seconds
3:33
Fireship
Рет қаралды 505 М.
Python Vs. Javascript - Which Is Better?!
4:25
Codemy.com
Рет қаралды 23 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 891 М.
Python Vs C++ Vs Java!
4:41
ByteByteGo
Рет қаралды 597 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН