Sitemap
Analytics Vidhya

Analytics Vidhya is a community of Generative AI and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com

From Java to JavaScript or Java and JavaScript?

--

Java and JavaScript are no teenagers anymore, they are mature languages besides from been almost twins because they own similar names that caused a lot of confusion until today, they were born almost in the same year and mainly have died at least for the specialists and therefore have revived a lot during all these years, today they standing uncontested as one of three most important languages dividing the podium with Phyton, but they are very distinct languages

When I started to program, javascript was merely used to perform dynamic things on the front end, yes there was a long time ago. But I have been hearing for years about javascript been running on the server-side and I need to confess, was hard to believe, especially if you lived the same period than me, where we didn’t considerate javascript a serious language or a language at all.

Some day, from nowhere, I started to think about how some languages lose space and how their programmers don’t see it happening. Today nothing indicates this kind of thing will occur with Java, but we never know, right?!. With this idea in mind, I decided to give a try to the momentum language, where there are a lot of people saying that we can pretty do everything.

Time to the second confession, yeah they were right and JavaScript is awesome.

As I said, I have been working with java for a long time, over 14 years, but after some days using JavaScript I started to question myself “why to use Java instead of JavaScript, once JavaScript is faster to program and we can save a lot of resources on the cloud?”.

NODEJS

NodeJS was created in 2009 and nowadays is used for thousands of companies like Netflix, Paypal, and LinkedIn and if you spend a few hours reading and using it, it is quite easy to get why NodeJS grew up this much, is very simple to start and to use. Just to make clear, I’m not saying that you going to become a master senior Jedi javascript developer in few weeks, but you will be able to build greats thing in much less time than other languages like Java for example, but as always this is just my opinion, based on my personal experience so far.

Get Andre Oliveira’s stories in your inbox

Join Medium for free to get updates from this writer.

Study JavaScript and NodeJS also helped me to understand better the changes suffered by Java and recognized something likeFunction Expression released in Java 8 and the “var” word-concept that came in Java 10.

Yes I know, I just said good things about JavaScript. You must be wondering, JavaScript is the so chased silver bullet? Until now I don’t see anything that JavaScript doesn’t solve well, but the specialists always say this kind of thing doesn’t exist, so let remain with them, it is quite possible they found or needed some specific thing or situation that I don’t.

I have been saying a lot of good things about JavaScripts and nothing about Java, but don’t give me wrong. I love Java and definitely, Java is a very very good language, maybe I’m just excited about a new thing as a child when they have a new toy. I continue working on my daily base with Java, and to the ones who want to learn Java, I strongly recommend, especially because nowadays when we have wonderful options to work on the Java universe as Spring and Quarkus where you can create a rest API in few minutes.

The reason to write this text is that it is not clear to me where/when one is better than the other one, or if I/we continue with Java or jump to JavaScript. Maybe the question is we need both? or They solve the same problems?

Maybe you can help me with your answer.

For now, I follow Malcolm X’s advice.

Education is the passport to the future, for tomorrow belongs to those who prepare for it today.

Probably the best advice is to study both languages and stay read for what comes next.

--

--

Andre Oliveira
Andre Oliveira

Written by Andre Oliveira

Tech Lead, Software Architect, Tech Enthusiast, Professional Scrum Master

Analytics Vidhya
Analytics Vidhya

Published in Analytics Vidhya

Analytics Vidhya is a community of Generative AI and Data Science professionals. We are building the next-gen data science ecosystem https://www.analyticsvidhya.com