Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Schweine FEin
2,671 PointsRuby or Python?
Hello there, I struggle lately with the question which of the both languages I should learn. Ruby or Python? Well I tested both of them a little bit and I have to admit I like them both. Also I like the concepts of both languages. I like the fancy and new way of Ruby but also I like the way of Python which is safe but good an so on.
The problem is, I look for a language which I can use for Web Apps but also for Server Apps and Desktop Apps. Would I go only for the web thing I think I would say Ruby but Ruby isn't that good for normal applications. Than also I think Python is a good bit faster than Ruby what would be a good reason for Python, but than I don't know how it is with Ruby 2.2 and Python 3.4 now.
You see I have a really big problem choosing on of them...
Perhaps you can help me
2 Answers
Ricky Catron
13,023 PointsI am heavily biased towards Python because it is very general purpose. You can build websites (Django and Flask), phone apps (Kivy), Desktop software(PYQT and Tkinter), do scientific computing (Numpy and Pandas) and so much more. The community is huge, tons of people use python so theirs lots of jobs.
Python and Ruby are very similar in their ecosystem and programming. Almost everything I said python can do Ruby can do too. Its Tea Vs Coffee.
I say Python but its a small gap.
Goodluck! --Ricky
Schweine FEin
2,671 PointsWell in the moment I would go for Python since the community is bigger and not so focused on Web only. But I would like to hear other opinions.
Schweine FEin
2,671 PointsSchweine FEin
2,671 PointsThanks for your answer. Have you any idea about the differences in the performance? Because I often read Ruby is pretty slow?
Ricky Catron
13,023 PointsRicky Catron
13,023 PointsThey have similar performance and neither is a good choice for a speedy application. They focus on development speed over application speed. If you wanted a speedy application you should use C, C++, or try one of the newer choice maybe Rust or Go.
Goodluck! --Ricky
Schweine FEin
2,671 PointsSchweine FEin
2,671 PointsWell, I'm aware that both are not designed for time critical applications. But I often read that Ruby would be much slower than Python. I think I will go for Python since the community is a bit bigger and not so focused on web only. Thanks for you help!