Webmeister Digital

Python vs JavaScript

Reading Time: 6 minutes Which programming languages you should start first: Python or JavaScript.
February 15, 2021
Reading Time: 6 minutes

I would like to share my thoughts on Python vs JavaScript as a developer who likes to code on both programming languages.

This article is for people who have decided to start programming but unsure between Python or JavaScript.

I assume that you have already eliminated other low-level programming languages such as Java, C, or C ++ as an option.

These two languages are getting more and more popular. Therefore, I think that these two languages will come out numerically in the recommendations they receive from the people they consult.

About the Author

When seeking advice on any matter, the expertise of the adviser also determines how seriously the advice should be taken. For this, I think it is essential to talk a little about myself and my experiences with those programming languages.

First, what I should say is that I am not an expert in software. Please note that this post is only the opinion of someone who has been dealing with software for 3 years.

I will provide more detailed information about me in the following sections of the article, under the title Personal Recommendations.

Python vs JavaScript by Statistics

I will give a few examples from the survey of StackOverflow.

Most used programming languages

For example, in this info-graphic, the most used programming languages and technologies in 2020 are shown. Here, JavaScript has scouted first.

One point to consider is that JavaScript was the only logical programming language that worked in browsers. Naturally, it is a mandatory language for those who want to develop a website.

Note: With implementing Web assembly technology in 2017, codes written in other languages can now work in our browsers. However, these codes are still ported with JavaScript.

Most Commonly Used Programming Languages

Most Popular Programming Languages

In the image below, the interests of those who are currently developing with that language are shown in the future with that language. In this context, Rust programming language ranked first, Typescript comes second and Python comes third. JavaScript appears to be 10th.

Another thing to consider is that TypeScript is a JavaScript superset. Typescript is a language with features that are not yet available in the JavaScript and ultimately translates the written code into the JavaScript language.

Most Popular Programming Languages

The Most Wanted to Learn Programming Languages in the Future

This info-graphic shows the responses of developers who do not speak that language now but want to learn in the future. Python is by far the leader in this list.

Most Likely Use in Future Programming Languages

Python vs JavaScript - First Programming Language

Python is a high-level language developed by Guido Van Rossum. It is the first language I learned. Therefore, its place in me is different.

JavaScript has been developed by master Brendan Eich. Brendan Eich is also the founder of Mozilla Foundation.

Let us point out that the Mozilla Foundation is one of the 3-5 non-profit actors who are the game-setters of the internet. (Others: Google, Apple, Microsoft)
In short, it is the only actor who cares about the users, not the profit of their own companies.

As a nonprofit recommendation, I can also recommend using the Brave browser. It is a fast and Chromium-based browser developed by the team of Brendan Eich.

I would like to go through some points that need to be addressed behind this information and to clarify the subject of Python vs JavaScript myself.

The Software Will Teach You How To Think

You may call it a cliché, but its accuracy is beyond doubt. The software will teach you how to think. Therefore, the programming language you will choose first is important in this regard.

One of my experiences with the similarity of natural languages and programming languages is that I still get the feeling that I am writing in my native language while writing Python code.

Higher level languages abstract away technical complexity with the cost of somethings like speed.

In this context, if you intend to work with relatively lower level languages such as Rust, C, C ++ in the future, starting software with Python will bring some difficulties.

Because the first language you learn is Python, the way you think will be as Python dictated to you.

This also applies to JavaScript. However, JavaScript is more advantageous than Python since it uses the syntax of the C language family.

Personal Advice on Python vs JavaScript

I graduated from Boğaziçi University in 2017 as a civil engineer. When I graduated, my relationship with the computer did not go beyond being able to crack and format games.

I started to learn Excel, thinking it would be useful for companies when applying for jobs. I started my first programming language adventure with VBA, thinking that it was necessary to write macros while using Excel, but I realized I understood nothing.

Later, I started Python with the knowledge we gained with my roommate about the importance of Data Science and Analytics.

I’m sure many of you hold back on what’s popular. When you see what the mass likes, the most popular lost their attraction.

This is not the case with software. It may be a little pretentious, but a software language without a community is nothing.

Why are Communities Important?

Namely, while talking about an open source software language, someone has surely encountered the problems you have encountered before, mostly asked them in Stack Overflow and the answer was given. This means that you will find solutions to the problems you encounter more easily.

Also, there is no need to reinvent the wheel. Someone will have written a library before for a lot of things that you will need to code step by step from the very beginning. Using them will save you time.

Veri Bilimi ve Python

Python for Data Science and Statistics

When I learned the basics of the Python language, I was learning new things about Data Science and trying to apply them. Thus, I was improving both Data Science and my Python skills in its application.

Considering what I have mentioned above, there are justified reasons for recommending Python for data science. The NumPy and Pandas libraries, which are Data Science libraries, are libraries that will eliminate the disadvantages of Python, such as the slowness of speed because of being an interpreted language.

Python for Machine Learning and Artificial Intelligence

Whether it is Google's TensorFlow or Facebook's PyTorch, Python and open source developers in the fields of artificial-learning and artificial-intelligence seem to be ahead of JavaScript.

These and alternative libraries are also available for JavaScript. However, I think it is behind Python.

We Developed Our Python Application. And then?

I continue my own story. While learning a lot about data science, I realized the necessity of working on a project implementation. I wrote a program that calculates how many points people can give for a movie they don't watch, based on their cinematic taste. (Is currently retired)

I had several options to make this available to people. I would either share it as a web application or launch its mobile application.

Thinking it would be easier to publish on a website, I started researching how to make a website with Python. I settled on the Django library. I can recommend MDN's English Django Education Series to those who are interested.

JavaScript for Web Applications

Of course at that time, I was not aware of the front-end or back-end distinction. Django actually allows you to develop a full-stack application, however. In any case, the HTML and CSS markup languages ​​you should learn are mandatory.

Also, if you are not living in 2000 and are planning to design an interactive website, JavaScript is one of the essential languages to learn.

I started learning JavaScript to develop any type of web application I wanted.

I've had trouble getting used to JavaScript for a long time. I could do something, but I almost didn't know anything about how it works. After a year with JS, I got used to it and I love it.

JavaScript and Server Applications

JavaScript is an interesting language. This language, written to work in the browser, is now available for server applications with the development of Node. This causes an explosion in JS libraries.

Modern JavaScript Solutions

Contemporary Solutions for the Web

Especially after Facebook developed React and Google's Angular, it became possible to write effective code and make application quality websites with framework libraries such as Vue developed by Evan You and Svelte developed by Rich Harris.

JavaScript for Mobile

Of course, it is not just a website that the HTML / CSS / JS trio called front-end can do.

Using this triple technology in mobile applications was a situation that would benefit many website developers.

For example, let's consider the Instagram application. When we look at it, it does not need a very powerful graphics card. It is very easy to make up an ordinary web page.

Today, many applications such as React Native, Ionic etc. allow you to develop mobile applications with HTML, CSS and JavaScript and produce applications for both Android and iOS with almost the same code.

Webmeister
2021 Webmeister Digital. All rights reserved.
crossmenu