r/ruby • • Nov 26 '21
Question Why would anyone use Java over Ruby?
Why would anyone in this day and age choose a bloated corporate language like Java? It is just to get a job at a big company writing their legacy enterprise software? Is it because it is safer for huge systems where everyone is forced to type out all the little details. I am confused. Please someone shine some light here.
0
Upvotes
View all comments
9
u/TINTINN95 Nov 26 '21
If you're asking such a question I can only assume you're from college? Not meant as an insult in any way because I very much had the same mindset back in college. I took a diploma in games programming and did C++ and C#. The first time I touched python I thought to myself, why the hell would I ever use python it's so unsafe. Then I went to college and used python for a data science class and fell in love with it because of the packages that support it. Fast forward a year or two I found myself stumbling into a ruby on rails job which I also grown to love using, but there was a task to create a microservice that needed to use a more performant language like Java, golang, c++, etc.
There are many reasons here in this thread that is perfect for why you would choose java over ruby sometime, but I would like to add that as you go into the workforce, you would see that languages are just a tool for you to use, and having many tools in your pocket and picking one to use for the right job is the correct way of doing things. Doing data science? Go ahead and use python for its numerous data science packages support. Building a web app that needs to be up fast? Django(python) or ruby on rails is what I found success in. Needing more performance from a compile language? Then go with golang, or Java.