Should I go with Python, Java or Ruby in 2018?

・1 min read

I wanted to ask you all a question, as my first post on dev.to (If I may?).

I'm a 25 year old Autistic newbie to the Programming forte, and love python, Linux and web development (HTML, CSS, etc).

What would you personally, and professionally recommend be the "Go To" Language to spend a lot of time working on this year? 1) Python, 2) Ruby or 3) Java?

DISCUSS (15)
 

I would personally advise you to go with what you're comfortable with and good at. But starting out I found python easier to learn as a beginner

 

I definitely do love Python. Is it only good as a Scripting language though?

 

Python can be used in a wide range of things, it's used in data science, you can code GUI desktop applications, web development using one of its web micro-frameworks like Flask, or even a framework like Django, and of course my favourite, MACHINE LEARNING.

I have to admit, I had a hell of a lot more fun learning Python than I am learning Java.

I love Visual Studio Code and it's simplicity.

Personally, I reckon that if you genuinely feel you "love" a language (as you say you do with Python), then stick at that, at least in the short term. You'll get further learning a language you enjoy than by trying to slog through something you don't, at least in the first couple of years anyway.

You'll find learning your second language is much easier, so don't stress too much about learning "the right one" today.

IMO, at least. :)

 

It really depends upon what you want to do with it.

Python is good for data science/machine learning, prototyping stuff. Dynamic typing might bite you once you scale to a larger team.

Between Python and Ruby - I would choose Python. It's much better in many aspects and has a larger community of developers. And you are not losing much.

Java is a whole another beast. It is used by a number of enterprise(read big) organizations. There is a reason why Linkedin, Amazon, Google etc., use Java heavily. It scales from one machine to literally thousands of machines(distributed) with a rock solid runtime(JVM).

Some general pointers.

  • Python is probably the best language to learn programming.
  • If you are doing consultant work then I would recommend Python. Much less hassle to setup and maintain.
  • Python is actually as old as Java. So it's not exactly a modern one, but a language designed for a different purpose.
  • Static vs Dynamic typing (my own blog post)
  • Java as a language is getting modernized, but it's going pretty slowly. Remember that there are other languages on the JVM. Kotlin is one which I would recommend learning if you have any plans to get started with Android development.
 

+1 For Kotlin, especially from a professional point of view.
Kotlin is specifically designed to give Java users a language that's conceptually very similar, but has a decent share of modern language features. Being made by Jetbrains, the company behind IntelliJ Idea, you also get stellar editor support for free.
Since it's essentially a superset of Java, you'll be able to derive your Java Skills from learning Kotlin.

My personal go-to language on the JVM is Scala. Some of it's advanced features need to be handled with care but It allows to write a very practical mix of functional and object oriented code that keeps me most productive. It has excellent libraries and frameworks to tackle complex problems.

To tie that into your original question:
I would not recommend to pick up Java. While it introduced lambdas with Java 8, it suffers a lot of the need to be backwards compatible, and is progressing very slowly, as mentioned. There's a high chance that you will need to write Java code at some point, but with Kotlin and Scala, there is little reason why you should do that on your own time.

More than learning languages, I recommend picking up concepts. If you get the chance, pick up functional programming while you're still at university.

 

My personal favourite is Scala too. But its slightly complicated from a beginner's perspective. As you said, concepts are more important. I learnt Scala and when Kotlin came out I was already familiar with 90% of its features.

Java is moving slowly, but hey enterprise companies move a lot slower as well. They don't adapt to newer Java language features as they come out. You can be polyglot if you learn the concepts and with Java/Kotlin/Scala, it is a lot easier since they all target the JVM.

 

Welcome Chris!

I think you should use what makes you more comfortable. I have never professionally worked with Java so I'm going to jump to the other two.

I think either choice, be it Python or Ruby, it's not going to disappoint you. I use them every day and sometimes I even get syntax errors because I'm writing Ruby in a Python file or vice versa.

Although I have been using Ruby for quite a while I still think I am more proficient with Python.

For web development you can't go wrong either way. I would start with the most used frameworks for each language: Rails for Ruby and Django for Python.

There are so many resources you will definitely feel overwhelmed :-)

If you have specific questions ask away!

 

Not in the list but i think you can take a look at golang. One of the best programming language i've ever used.

 

Thanks for the comment! May I ask what you feel makes it the best?

 

Simplicity, documentation, strong stdlib, plenty of usefull lib/packages on github AND a one of the best community (with a lot of actions in favor of marginalised people : MOGAI, womens, etc...)

AND tooling, jesus I love Go tools (metalinter, goimports, fmt, ...).

 

Thank you for sharing great article related to Python vs java. I have shared some important points which help you to know python vs. java.

 
  1. Python or/and Ruby.
  2. Ruby or/and Python.
  3. You can explore more programmatic languages as you grow like Kotlin, Haskell, Erlang, Scala....
Classic DEV Post from Mar 29

Code of Conduct generator!

Tl;dr: I've just launched The Code of Conduct Generator! When I was asked to...

[getdate - 1992] Year old developer with Autism / Aspergers. Love quality over quantity and an absolute stickler for documentation.

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️