DEV Community

Cover image for Why you should learn JavaScript and Python in 2022

Why you should learn JavaScript and Python in 2022

Andrew Baisden on January 04, 2022

A new year brings new opportunities for aspiring developers and people who are trying to leave their non tech role so that they can get hired as a ...
Collapse
 
teij04 profile image
Tejas •

what about freamworks, which is the best for 2022?

Collapse
 
andrewbaisden profile image
Andrew Baisden •

JavaScript
React
Vue
Angular
Svelte

Python
Django
Flask
FastAPI

Collapse
 
rickymelida profile image
Ricardo •

Could you speak about the difference between them?

Thread Thread
 
andrewbaisden profile image
Andrew Baisden •

In another article sure 😅

Collapse
 
mithunbl profile image
Mithun BL • • Edited

For JavaScript backend we have a framework called -Node Js

Thread Thread
 
j471n profile image
Jatin Sharma •

Make application with Next.js, it provides server (backend) as well as frontend on top of React.

Collapse
 
azlan_syed profile image
Azlan-Syed •

I am learning js and learnt python did learn tkinter library in python too and made some of my softwares

Collapse
 
eljayadobe profile image
Eljay-Adobe •

When someone asks me what programming language they should learn, I've always said Python for the past 20 years, and I still think that's the best language to learn first. (I also encourage using PyCharm CE for those beginners, too. Because JetBrains rocks!)

Why? The language is mature, it does a superb job at the principle of least surprise, the syntax is very approachable, it does not have the oddities and historical anomalies (Python 3 shed all the deadweight that I hated with Python 2) that are in other popular languages (I'm looking at you, C++), it's useful as a serious programming language as well so is a durable skill to have in one's toolset, and can do many amazing advanced things well too.

Granted, by my own simple measurement, my well-written C++ programs are about x300 faster than my well-written (but not hyper-optimized by using NumPy or whatnot) Python programs.

Still, my ML developer coworkers will develop in Python, and when that's working great only then will they translate that work into C++. Python is fab!

JavaScript... I don't advocate for that as the beginner's first language. (And I've done my fair share of JavaScript and TypeScript; and dabbled in Elm and GorillaScript and CoffeeScript.) JavaScript has a lot of skeletons in its closet, and unlike Python 3 it (probably) cannot jettison the skeletons and start over.

Collapse
 
billyston profile image
billyston •

Great piece. Thanks a lot.

Collapse
 
cess11 profile image
PNS11 •

So what you're actually saying is 'learn PHP', since it has the characteristics you point out plus optional static typing with a sophisticated and flexible type system.