DEV Community

loading...

Discussion on: What to choose: Ruby or Python?

Collapse
nitinkatkam profile image
Nitin Reddy

What to choose: Ruby or Python? This is a very subjective question. A startup or a project requiring quick development could use Ruby on Rails. If it's a machine learning application, Python is the preferred choice because of the availability of skilled programmers with experience working with Python's ML libraries. DevOps professionals use Ruby because of the tools they work with.

Ruby code looks very elegant (with ActiveRecord). Look at this...

Ruby:
3.days.ago

Python:
from datetime import *
date.today() - timedelta(days=3)

...but why limit yourself to only Python and Ruby? When you have complex code, C# has type-safety and syntactic sugar. If you're an O.O. purist, Java is your choice. Somebody somewhere is likely wanting to recommend C-server pages because the code is compiled and not interpreted and can serve a huge amount of traffic with fewer hardware requirements. Depending on what attributes you are willing to trade, you will pick a different programming language.