The BEST Programming Language To Learn In 2022

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if you want to work at a crypto startup the answer is solidity if you want to work at a high frequency trading firm the answer is c plus and if you want to know the best programming language to learn in 2022 then there's only one thing i need you to promise me that you'll stop thinking about programming languages in terms of job opportunities the market is constantly changing what's hot today might not be in demand tomorrow so you want to focus on learning and growing so you'll be able to pick up any new technology framework or paradigm and the languages in this video will help you do just that the last thing to remember what matters most is doing not which programming language you're using so if you're currently learning a language not mentioned in this video that's okay keep going and then come back and pick up one of the languages i recommend thanks to hubspot for making this video possible today there are three things i'll be using to decide the best programming language ease of use documentation and community and real world application and though not formally a criteria i'll also make sure that the best programming language allows for all the theoretical principles like object-oriented programming abstraction and functional methods remember theory is great but it's even better in practice i want you to be able to get started quickly so if you can't go from installing the language to executing hello world in five minutes or less or if the syntax is super confusing then the language isn't easy to use and when you start out stack overflow is your best friend but if it takes you hours instead of seconds to get answers to your questions that might mean the community or documentation aren't that strong lastly we learn languages to use them at hackathons and interviews or for our own personal projects so if you're learning cobalt because it feels nostalgic but you'll never actually use it to build anything real you might want to reconsider and the answer to the age-old question the verdict on the best programming language to learn this year will be the same in 2023 and 2024 and maybe even 2025. my advice today is evergreen let's get into it if you're here just for the answer i recommend either javascript or python and i know i said best programming language singular but i ran both these languages against the criteria above and they were tied let me explain while javascript has a robust community and lots of real world applications it's not the easiest to use and while python is super easy to use and has great documentation it's not used for as many real world projects so what's the final answer what's my recommendation if there was a gun pointed to my head and i was forced to pick just one well i'll tell you and we'll break the tie together but either way i'm gonna give you plenty of free resources for either language so no matter what you pick you'll be in good hands let's battle it out starting with ease of use i like to think of ease of use in two ways how easy is it to get started and how easy is it to keep going so think of the first criteria as literally how many seconds until i can see hello world in either the terminal or the browser and the second criteria measures how intuitive the syntax is and if the language behaves as you'd expect is it easy to get started it's incredibly easy to get started with javascript to write javascript code locally you open up your favorite editor you type in some code you save the file with the js extension which stands for javascript of course and you're done pretty easy right and to run your code in the terminal to see output you just have to download node.js which is an open source server environment and you don't have to understand what that means just think of it as a way to run your javascript code so you install node you go to your terminal you type node followed by the name of your file hit enter and you'll see your code run concretely we've gone from nothing to seeing hello world in the terminal in like less than five minutes in fact the slowest step in the entire process was probably downloading node which depended on your internet speed another way to see your javascript code is in the browser so as you might know html is the way we write web pages so if you inject javascript code anywhere within script tags in an html file and then open that file in any browser you'll see your javascript code run pretty cool right so far so good it's also ridiculously easy to get started with python in fact most laptops today come with python pre-installed so all you have to do is open up your favorite ide type in some code like print hello world save the file with the dot py extension and then you can see it almost instantly by going to the terminal typing in either python or python 3 followed by the name of the file and hitting enter it's a little more complicated to see python in the browser because you're going to need some framework like django or flask but we'll cover those later and 99 of the time when you're working with python it's locally with the terminal or you're doing back end development so you don't really care about the front end anyway is it easy to keep going well both python and javascript are untyped so you know how in java before you type any variable you have to write like string or integer or when you're writing a function you have to explicitly include the return type like void or again integer or string well in python and javascript you don't it's inferred so if you just typed x equals five the languages go okay cool well then x must be a number well type languages are better because they're more readable they're less error-prone and there's a variety of other reasons but since both languages aren't typed i guess neither has the advantage though i will say for python you have my pi which is like a linter that kind of enforces typing and for javascript you can use typescript which is like javascript with typing so again there are alternatives to get that typing in there but something to note now leaving typing aside javascript can be insanely confusing and by that i mean it doesn't always behave the way you'd expect like let me give you a few examples for example one exclamation mark is different than two exclamation marks or as people like to call them bang or bang bang and then there's the whole truthiness and how it relates to null or not a number nan or undefined and the fact that there are three different things to represent similar things always confuses me i always have to look up on stack overflow which one does what and then there's all the messiness when you try to add or subtract different types of things and it does weird things and as you get more advanced one of the core concepts of javascript is the idea of callbacks and promises and that's also really hard to get your head around in fact i've written javascript code for a while now and i still have to look those things up so though it's really easy to get started with javascript it's also pretty easy to get stuck and before you know it you're an uncharted territory but for python it's really easy to keep going the syntax is super intuitive it reads like english and there's no funky behavior operations just do what they're supposed to it's also really easy to instantiate lists and maps and sets and you get a lot of stuff for free like iterators which are really powerful honestly even as you get more advanced in your python journey and become more and more proficient i feel like the language is the same you just know how to use it better and that's amazing so with all that in mind i think python takes this category barely but it still takes it so 1-0 to python since python has the advantage for now let me tell you about some amazing free resources you can use to learn the language our friends at hubspot have published an entire introduction to python ebook completely for free they'll email you the guide i browse through some of the topics and honestly they're amazing the ebook does a great job starting from the absolute basics to slowly ramping up to some of the more advanced topics even i learned something new you can download the ebook with my link in the description and again it's 100 free now let's talk about documentation and community both languages are mature which means that their documentation and communities are extremely strong finding answers is simple just go to python.org or the mozilla website or stackoverflow in fact i wouldn't be surprised if python and javascript were some of the most frequently searched keywords on google and there are so many free blogs and tutorials and videos all over the internet so getting unstuck is pretty easy i know i mentioned that javascript can be confusing but the amazing community makes up for it i remember when i was in promise callback hell i was able to figure it out thanks to gods at stack overflow as for community the answer is very similar since both languages have been around for a while and are prevalent in everything from web apps to game development to data science there are so many open source libraries frameworks and tooling every week or so i see some new framework popping up for javascript or python and the fact that there's continuous innovation is a very promising sign and i know i mentioned don't care about programming languages in terms of jobs or companies but the fact that there are companies out there actively developing in these languages and open sourcing their contributions is great for example dropbox is famous for developing in python and they open sourced my pi which is like a type checker fun fact the original author of python actually worked at dropbox and then for javascript you have companies like airbnb and palantir which respectively open sourced a testing framework called enzyme and then the ts lint guide the fact that the industry cares about these languages means that they aren't going anywhere so i'll have to say it's a tie again both languages have a die hard community we're gonna have to get the top fans throw them in a ring and have them fight it out last but not least we come to real world applications we want to know if people use these languages to build in the real world and that they've picked these languages over all the other options out there building depends on what you're trying to accomplish scripting web development game development desktop apps whatever and once again both these languages are super strong python is really strong when it comes to scripting and data science in a few hours you can have a bot trading stocks for you you can easily read in command line input you can even scrape websites and for data science python is king i mean you can basically do cutting edge computer vision with opencv and there's nothing better than numpy and pandas and developing in jupiter notebooks even today many machine learning models are deployed through python and remember when i told you i care that these languages allow you to practice theory well it's unbelievably simple to write classes and think of object-oriented programming in python and with maps filters and iterators you can also write functionally the last thing i'll say is python is extremely concise in fact it's famous for it the same program in java that would take a hundred lines might only need three or four in python so no matter what i'd highly encourage you to pick python for your coding interviews javascript is strong for literally everything it's the go-to for web apps because of how easy it is to write front-end and back-end code which essentially means you can create full stack applications and that's because of the amount of open source frameworks out there in the front end you have react angular view or anything else ending with js and for the back end you have express or any other framework around node and forget about objective c and swift with javascript and the electron framework you can create cross-compatible desktop apps which is insane as for information passing i'm sure you've heard of json which is javascript object notation so yep once again invented with javascript other than data science javascript matches python scripting abilities in fact one of the most popular website scraping libraries cheerio is written in jquery which is another god tier javascript library and you know what javascript isn't that verbose either so you can use it in coding interviews even though python was my first true love i think this one goes to javascript since javascript has made a strong comeback and tied the score let me tell you about some free resources you can use to learn the language hubspot academy is a completely free portal where you can learn everything from sales to marketing to web applications you simply make an account and instantly get access to hundreds of free lessons ebooks and courses for javascript i'd highly encourage you to check out the building your first web app course it uses the newest technologies like express node and heroku i've watched a couple of the lessons and they're really well articulated again link in the description and i highly recommend you check out this amazing free resource all right we have a tie as i told you in the beginning python 1 and ease of use but javascript is just out there more in the real world and they were both tied for documentation and community however looking at the sheer number of things you can create with javascript especially when you include typescript i have to give javascript a win and yes i don't think you should care about job opportunities but we can make it a tiebreaker consideration there are a lot of startups out there that use javascript for the front end and the backend and then some database like postgres so learning javascript will also help you in the job market learn javascript and you'll be in very good shape but please promise me at some point you'll learn python it's just too good a language not to know it's still my go-to and i want to get something done quickly and that's it we broke the tie as promised i have now answered the age-old question of the best programming language to learn this year though for the next five years i'm gonna keep shouting javascript it's everywhere and that's the truth till next time cheers
Info
Channel: Namanh Kapur
Views: 58,759
Rating: undefined out of 5
Keywords: Programming, web development, learn programming, learn to code, coding, software development, top programming languages, top programming languages 2022, which programming language to learn, best programming language, programming languages, most in demand programming languages 2022, top 3 programming languages 2022, top 5 programming language 2022, become a software developer, software developer, freelance developer, how to learn programming, best programming languages
Id: jVY1vLbkzvo
Channel Id: undefined
Length: 11min 58sec (718 seconds)
Published: Tue Jul 26 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.