ManuTheCoder
ManuTheCoder's Blog

ManuTheCoder's Blog

Python: Is it worth learning in 2022?

ManuTheCoder's photo
ManuTheCoder
·Feb 28, 2022·

3 min read

Python: Is it worth learning in 2022?

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Many developers choose to learn Python because it’s a backend language. JavaScript can be used for the frontend and backend, too. Python is a programming language developed in the late 1980s by Guido van Rossum. Its structure emphasizes code readability with its use of indentation. On the other hand, Javascript is a programming language developed in 1995 by Brendan Eich. JavaScript can be used as a runtime environment, as well as a frontend language. Almost every developer loves Python because it is readable and easy to understand. This is great, but is it a good starting point? Is it worth learning in 2022, even though big companies, such as Google, use it? Python’s a bad language to learn because it’s slow, memory inefficient, and unhelpful when learning new languages.

Python is a slow language. Python code is always interpreted during run time rather than being compiled to native code, like C, C++, and Java. One of the main reasons why Python is a bad programming language is because it’s slow. “Python is slow mainly because of the way that the language is built” (Medium.com). Python does not allow developers to bring in optimizations to compile and interpret that as easily as in other languages like Java. This means that Python is slow because the language is built that way. Developers will need to write extensions to make the language, but this requires C++ knowledge. This brings another problem. Learning a language after Python requires more understanding.

Python forces developers to make code readable. This language requires more testing and also it has errors that show up at runtime because the language is dynamically typed. As per geeksforgeeks.org, “Python is a simple programming language which is also the biggest disadvantage. It can indeed be a problem. Its syntax is very simple which makes a programmer more of a Python person which might make a person not learn other “unnecessary” languages”. It concludes that with its late-binding dynamic models and extensive libraries. Shifting to a new language from Python gets difficult as the user has to adjust to its vulnerable nature. For example, string interpolation is simple in other languages: Create a string, and insert expressions in it. However, in Python, you will need to call the “format” function. This wastes developers’ time and can be an inconvenience.

Many developers can run the “gc_collect” command to free up some memory space, but this is a problem. This is only a temporary fix, as developers will have to keep running the function, resulting in repeating code. As per Stack Overflow, Python does not free memory back to the system immediately after it destroys some object instance. It has some object pools, called arenas, and it takes a while until those are released. In some cases, you may be suffering from memory fragmentation which also causes processes' memory usage to grow. Python eats up memory space. This causes the RAM on your PC to go up. This is very inefficient when building web applications, as your users will have to wait longer for your page to load. This can significantly impact businesses. This results in people having to buy better computers, which costs significant amounts of money.

Python’s an overrated language because it’s slow, eats up memory space, and prevents beginner developers from learning new languages. Learning Python might be a great starting point for developers of all ages, it isn’t a good choice to learn first because it prevents them from extending their knowledge on other programming languages.

Hope you enjoyed this article!

 
Share this