Python or JavaScript - Which One Should YOU Learn?
Vložit
- čas přidán 23. 05. 2024
- In this video, I dive into the age-old debate: Python vs. JavaScript. Join me as I break down the strengths and weaknesses of each language, helping you make an informed decision on which one is right for you. Tune in to discover the best fit for your coding journey!
If you want to land a developer job: techwithtim.net/dev
If you want to learn Web 3 & Blockchain: algoexpert.io/blockchain (use code “tim”)
If you want learn Python & Go: programmingexpert.io/tim (use code “tim”)
Skool community for free resources: www.skool.com/software-develo...
Discord server: / discord
⏳ Timestamps ⏳
00:00 | Python Or JavaScript?
00:18 | What Is The Same?
01:38 | Main Differences
02:54 | Frameworks & Libraries
04:30 | My Recommendation
05:03 | Keep This In Mind
06:57 | If You're Still Unsure
Hashtags
#Python #JavaScript #Programming #TechComparison #CodingDebate #TechTips #ProgrammingLanguages #TechWithTim
Which one are you picking? Regardless of your choice I have TONS of free videos on my channel and more premium resources, like this one: techwithtim.net/dev
Tim!!!! Let’s goooo!!! Great advice!! I’ve been going through your course through course careers and have learned tons! 99.99% of advice I’ve received all echo what you have said in a majority of your content. Decide what you want, pick a language and learn the fundamentals. I am pretty dead set on backend work! So looking forward to cranking out the latter half of the course and continue to chip away! Also, a lot can be said about the level of support you and others have given and continue to give to the community! Tim was watashino sensei des. Also learning Japanese. This roughly translates to Tim is my teacher! Thanks man!
Thanks so much man! Super happy you’re enjoying the program. Keep pushing! Can’t wait to hear more about your journey /)
Hi Tim,
What do you think about Django for as much as possible (maybe also use with htmx) for frontent. I like the idea of "batteries included Django" vs. more modules to plug together with node.js to do the backend ... I'm a beginner who has survived required CS courses for an EECS degree and work in hardware (no real coding for the day job). Been studying the whole world of website development and trying to land on a stack for a simple "ecommerce" site with only a few (or one) page to start. Potential for the site to expand in the future to many pages (1000s) with some dynamic content. I understand that it will be nearly impossible to totally avoid JS and am totally fine with using JS (I know it better than Python right now) a bit. However, I am very interested in seeing what can be done on the frontend with Django for what seems like a simple (done a million times) type project (ecommerce site). Also is SQlite ok for this project or should I go with mySQL? Any thoughts? Appreciate your videos -- Thanks!
in my work I use both, JS for frontend and python for backend and data science
Spent most of my development career using Php and always heard all the great things about Python so I have been learning Python for the past several weeks. Able to pick it up faster than I expected, likely because it is geared towards backend dev, much like Php ( though Php of course lends itself of front-end, too ). In addition, the goal with Python is to be able to acquire jobs related to Data Analysis/Science and even AI. Great video!! Thank you for sharing.
I started learning Python after I was struggling with JavaScript, and doing this allowed me to go back to JavaScript and understand what I was struggling with. So learning both at the same time actually helped me.
I did the same thing. They say learn one language at a time. I'm just stubborn and fooled around with both. I've already learned a lot of basic JS and Python in less than a year.
That is great! Glad I’m not the only stubborn one. 😉
@@alishagrace What are you planning to go into? Web development?
@@jtc9098 I’ve been into web development, but just was lacking the Javascript part of it. Mostly just front end.
Python syntax is more beginner friendly. JavaScript frightens me 😅
You are right, many of us are coding BOTH in Python and JavaScript,
you cannot solve everything optimally in only one of them,
you should use both to do your tasks.
As a junior dev, I appreciate this directional/guiding format of this content. Please keep them rolling, thank You Tim.
in my work I use both, JS for frontend and python for backend and data science, but in my opinion for new learners it's better to start with JS to learn the concept and get into Python as you advance
Thanks man, I plan on pursuing this same career path, with thesame tech stack
Its like asking which car is the best for driving to the store. Just pick one, learn the basics of driving and then it doesnt matter what car you choose. Some are manual some automatic. Driving it is still the same.
i m doing javascript after doing python's bascis I guess this was helpfull Thank you
Have a ton of comparison videos on youtube, and they look like trash, but this one is very very quality and really helpful for people who are stuck on this ! Thank you, man !
I'll re-state Tim's final point - if you don't know which you want by the end of this video, then you don't know enough yet to decide and/or either will be a fine choice. So pick one and get going. Both languages have TONS of free tutorials on line, making it possible to get started immediately. I'll also add that, once you know one and get a job, you'll then be exposed to software development teams, and their behaviors and tools - like Jira, git, docker, agile and whatnot. Those things are the mostly same between languages - which means, again, pick one and get going... you can always switch or add another language later. Both get you started and allow you to go from zero to hero.
Which is easier to learn ? JS or Python ?
@@itsmedeka As Tim said, they are in the same class of difficulty to learn. Getting started (one or the other will work) is the first step. Good luck.
I should add that there is no life-hack type thing for learning programming. Its not about picking the easy one - these are the easy ones. If you have motivation to stick with it, either will work.
@@BrianStDenis-pj1tq Thank you for the insight and response greatly appreciated !
@@BrianStDenis-pj1tqGlad you sd this. Sick of seeing questions “What’s easiest”, “How many hrs does it take to learn X Language”.
There is no hack. Just start, delve deeply, study hard, practice, build, write and then re-factor to get clean code.
As in life, there are few short cuts - aka “hacks”. Well, not short cuts that won’t have negative effects in the long term.
From my own experience I can just say. It doesn’t matter all too much. Choose one, get good in it and from there you can learn any other language quite easily and from there you can specialize in what you like the most or need the most in your life/job
Learn python then go to rust
why not go direct to rust ?? @@surajraika9245
Thanks for the guidance. I've been wondering which one to learn first, but I think with this, I can now decide which of the two programming languages to choose first.
Sometimes, instead of focusing which language you should start, why not focus which domain you wish to pursue then only learn the language required in that domain
Js is amazing... So easy to learn and master and so addictive
You just wanna build build build with no end... Total addict😊
Starting with python will also make it easier to learn gdscript or nim later on
Although I knew the basic differences between the two, your explanation gives a more nuanced understanding. It's really encouraged me to keep on pushing with Python. I guess I didn't realize just how similar they are as well. This is excellent! Thank you
The explanation in this video is very beginner friendly wich is absolutely amazing , ive been looking for a video like this for so long , thank you very much 🙏🏼
Maybe the real "best language to start" were the friends we made a long the way
You mean HTML and CSS, they were always nice to me 😅
@@alwinw64 CSS has always been nice to you?! 😅
@@Louisianish maybe i haven't studied enough 😂
Do you mean, networking?
@@alwinw64 CSS will swallow you whole if you're not careful! haha Ok, maybe I'm exaggerating, but 3 years into learning web development with a few paying clients under my belt, and I still struggle to get it to do exactly what I need it to do sometimes. lol It's like the more you learn, the more complex and difficult it gets. My biggest piece of advice to everyone getting into web development is don't sleep on CSS.
Great video. Both are great languages but my suggestion is learn Javascript first.
You are closer to the end consumer with Javascript (used in billions of web browsers everyday) which I have found a powerful advantage over the years.
All the concepts you learn in beginner Javascript will be applicable to Python but not the other way around.
Every person in tech should have their own website projects - even if it's just your resume site. Don't be invisible.
Once you understand Javascript learning Python will be a lot easier.
Thank you for this insight and helping me make a decision, much appreciated !
thank you tim i was little bit confuse you clear me everything
I’ve used js for the past year to learn coding but I started a computer science degree this spring and I’m starting cs classes in the fall so I’m doing Python to learn how to program with the ease of syntax. The classes will teach cpp, but if you know how to program, every language is basically almost the same with some differences/additions here and there that can be learned later on. I am also considering going into data after graduation.
Great video Tim...you've got that green screen lighting nailed down...looks great!
It’s not a green screen!
@@TechWithTim What ever you are using, it looks great.
getting into coding for the first time, this video helped alot. im choosing to with python for now.
This video came at the perfect time. Thank you, I've decided to choose PHP.
hahah, I wish you the best!
🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
Pop boss
😂
Nothing wrong with PHP as an imperative language...works just fine. Just be careful with the OOP bits. Version 5.6 is the best
Worth adding. Both languages are essential to Generative AI but in their own strength. Great video Tim!
Thanks bro I really appreciate what you do.....Keep it up!!!!!
Want to just learn programming concepts and "see" immediate results, learn HTML, CSS and JavaScript together. Most people want to build apps or websites so IMO, JS may be the the best way to go as a beginner to stay motivated and engaged. Python is great too, but you're going to have that extra learning curve of working with libraries and CLI to extend its functionality. If you're OK with just manipulating data and systems, then go with Python. If you want to visually design, be more about UX and make those designs functional and dynamic, go with JS. Most applications are web based now, just saying.
Thanks for reading my mind Tim, had this Dilemma in my mind all year.
Very insightful. Thanks a lot for that.
From my point of view it does not matter which language you choose. You should learn the concepts. Later you will notice you can lern any language. I personally choose my tech stack based on the use case. Data Science -> Python; Rest API -> TypeScript with express.js; Web -> TypeScript with Next.js; Smart Contracts on EVM -> Solidity; And in many other cases Rust
For Web development, the language strengths are: JavaScript - browser (front end) Python - computer (back end). JavaScript can run on the back end as well, but I would stick with Python for the back end. For other development I would stick with Python. However, for Micro-chip programming (Arduino, ESP32, etc...) I would use C++. For Game programming there are: C++ (Unreal Engine) GDScript (Godot) Lua (Roblox) Java (Minecraft).
I'm working on Java, Js, Python, C and Cuda programming at the same time in my current semester`s coursework and projects
Pick one, do not fuck up your brain
The less unnatural shit you know the better
IMHO this will just get you confused. Not your problem but IMHO most "programming courses" are developed by people who never wrote a program..
Don't learn multiple programming languages at a time, learn one and be good at it
Thank you. I started with Python, and I learned both in boot camp.
Have understood the fundamentals of python programming so am currently learning the basic of JavaScript. This video comes at the right time for me. I want to become a backend developer. (So python is a great choice for me) I'm starting out by learning flask(thanks for your flask Tutorial) I'm gaining alot
You dont need to move to Python keep focusing on JavaScript. Use node for backend and get a good foundation. Later on, learn a static language like Go if you want to expand you backend knowledge. By focusing on 1 dynamic languages (JavaScript) you will be able to learn the concept of both fromt and backend, without needed to worry about learning the syntax of another language.
@@theangelofspace155 Thanks. I really appreciate you for the feedback
I recommend beginners to start with Java to understand core programming principles, OOP, and use it to practice DSA
After that picking up JS will be a smooth transition. Build projects and so on
Every new developer need to watch this video for , perfect solution , thanks bro
Given the general uses of both languages I would recommend both honestly. If the question relates to career path, the more you know the more enticing you're going to be to prospective employers.
I'm interested in server architecture/development, cybersecurity and Linux administration. So I guess sticking with Python for the near term works out best for me.
Very helpful to know what each is good for
javascript can also be use as backend server with a runtime environment or called NodeJS
Your speech is very liked to me. I 100 percent agree with you. Thank you bro.
Lower spectrum of earning: JS for frontend
Medium-Higher pay: C/C++ and Python for doing the sidequests
A lot of mid level role mid/high pay react & react native jobs out there
What?
Find a job first.
It´s not about the language you use, it´s about the problems you solve with these languages.
@@codingcrashcourses8533 but the problems you solve with JS tend to be the lower paying ones.
Hope I won‘t get hated at but talking about the Web, I think PHP ist great to Start with. With modern PHP you can learn all the concepts and most important: there are thounsands of projects you can do privately. And the best Programming Language is the one you can make your ideas real with! And think beeing an PHP expert teaches you a lot about how the Web works!
JavaScript was my first programming language, and then I began learning Python. I discovered that it shares similarities with JavaScript. After becoming proficient in Python and JavaScript, I started exploring other languages such as PHP, Go, Perl, Julia, Lua, Ruby, R, Kotlin, Swift, Dart, and Raku. Through this journey, I realized there are 13 programming languages that share similarities with JavaScript and Python.
Wow, Great insight! I learned JavaScript first as well. I'm just now delving into Python and seeing the similarities as far as the concepts are concerned.
Once tou learn any lanfy, you will pick rhe other ones very quickly... At least for most task... I started with very little C++ then tony python, after that extensive JavaScript (jQuery and angular), some java and now back to C++ (unreal engine) and the transition was always smooth... I am not a specialist but everything i need to do i managed to do it. I am not looking for a job, i am more of an entrepreneur
Thank you Tim.🙏
When choosing a programming language to learn for a career path or career change, the first thing you should do is ask yourself: do I have the necessary background for a job that requires technical skills (which can be self-taught) and professional experience in a similar context, or can I also apply for jobs with academic requirements? There's no use in starting to learn Python to become a Data Scientist if you don't have a Master's degree, preferably in fields such as Computer Science, Statistics, Math, etc. In such cases, your academic qualifications will determine if you'll get the job or not. Knowing Python and/or being willing to learn languages/scripts that are necessary for the job would be a big plus, but not the main requirement: companies know/assume that someone with a Ph.D. or Master's degree will be able to pick up the necessary parts of the required programming language in a reasonable amount of time and at a sufficient level. On the other hand, it won't be easy or might even be close to impossible for a self-taught or bootcamp programmer to achieve the academic level of knowledge and mindset without going to college/university.
In short: if you are academically qualified, you can pick any programming language based on your interest (front-end, data science, machine learning, software engineering, etc.). If you have only self-taught and self-acquired technical skills, then pick a programming language for positions that ask for professional experience and specific technical skills, without necessarily requiring an academic degree.
Keep in mind that no matter what language you pick-especially as a beginner-don't mix but specialize in one. Absolutely, there are companies looking for candidates specialized in that language. However, there are none looking for someone who has only scratched the surface of three languages but can't do anything worthwhile in any of them.
This is my personal opinion, looking from the EU-market perspective.
Thank you so much bro.
Thank you, really appreciate it
Just choose one and start coding. You can make websites, scripts, desktop apps, pretty much anything with either one. Took me a while to figure that out when I got started.
Excellent practical approach. You could be watching youtube videos for the rest of your life to find an opinionated "best way". Better dive in at the deep end, learn from your mistakes and improve on what is important for you or your project...
thanks for the video, bro
Very useful ❤
Thanks
Software Alert 2024: Universal Software Model -- The future in the software world!
100 programming languages? Why not only one?
I built usmXX as an Operating System for managing any informational problem. The system is based on only three concepts: Parameters of the problems, Subjects (not objects!) and the Informational Individuals!
Great video 👍
Yeahhh yeah man . I'm finaily in IT community 😂😊😂. Thanks alot bro. U are amaizing. I'm new in that field. AND I startet with Python. After wanna try with Java . Thanks bro best luck❤
Great job 👏🏻👍🏻👏🏻
Thank you!
What are the best channels to learn Python?
Learning both is great option 😊
Agreed! But which to start with?
@@TechWithTimWinner is Python 🥳
Hm. I'm old and crotchety and learned JavaScript when all it did was muck around with the DOM. I don't want it on the server side, so I would use Python for server-side code (unless I used PHP, instead). When I want a language for desktop applications, I wouldn't turn to Electron and all that extra overhead when I could just use Python with Qt or other full-featured GUI libraries.
I understand the urge to try to equivocate and wave hands and say, "No language is better than another it's all what you want to build with it" but I don't believe that's a reflection of proximate truth so much as an expression of a prejudice toward conflict avoidance.
Man I wish I had any of your intelligence and charisma.... Big thanks for sharing.
Thanks! 😊
I have used many of programming languages in my career but after settling in data management and analytics path there are only two relevant languages I use SQL and Python. Never ever had to use anything else except maybe some basic DAX. So it is 70% SQL, 25% Python and 5% anything else.
Is using libraries like Flask good with Python as a replacement for JS?
I started with JavaScript, picked up Python later. Never hurts to know more
Maybe I'm old school, or unwilling to learn, but I can't wrap my head around JavaScript being used to write applications. I've always been a C++ compile to an exe kinda guy
Nothing wrong with type checking. But on the other hand...types should have been validated as soon as they are entered...IMHO type checking all down the road is a waste of cycles. And AFAIK compiled C++ does not run in a browser. That _could_ mean distribution problems...
I learned Python first, and I still appreciate python a lot because it get me into the programming world. But I would suggest any new comers to learn JS first for several reasons: 1. js is way faster than python due to the highly optimized v8 engine and JIT(just in time compile) although both being script language, JS is still way faster. 2. Both being general purpose language, JS is more adopted to build websites, and being able to build something you could visually noticed is very motivating which is IMPORTANT for a newbie to learn programming, 3. The syntax of JS is more C++ or general OOP language like, you could catch up with compiled lang faster if you are familiar with JS instead of Python. (not having `{}` is a huge pain imo)
Thank you for this insight and helping me make a decision, much appreciated !
Yeah JavaScript definitely prepares you better for learning other languages since it's a lot more like other languages, whereas Python is way different then most other languages due to its simplicity.
I think you have to learn both. They are similar and it is easy to
Tim, continuing my previous request, we need to talk, how can we.
Thanks again.
I am learning both
Hi
I worked for html and css. What should I choose Java or Python? Thank you
In light of recent AI development quite possibly best option is to learn prompt engineering :)
I would still suggest Python first. It's much more versatile and Python teaches other things, like good code structure. That makes for an excellent foundation moving forward.
The other thing is that most people just getting started don't really know what they want to do yet, so Python gives you the ability to test the waters in multiple ways.
This is very subjective. JavaScript will help get a entry level easier. There is not "good code structure" in python, yiu can right equaly awful or good code in both languages. JavaScript has node for the backend, and dominate in the frontend. So you will actually learn more going with JavaScript. Both languages use class so you learn the same OOP or function programing. Both has some type implememtations (jsdoc for JavaScript, or move to typescript). The second pagraph is misleading as well. JavaScript also help test the water in multiple ways (including AI). JavaScript can do pretty much anything a junior dev would want to do in python, the main difference is that python is pre-installed in most unix distro. 🤷🏻
For someone who wants to learn how to solve leetcode questions, is maining python a better approach due to its simplicity even though i will not necssarrily work with it in my field?
As someone that has conducted hundreds of interviews, I'd strongly recommend using the language you're most comfortable with. This is the language you use most often in your day-to-day. With algorithms questions, interviewers want to understand how you think in a language-agnostic way that can apply to any language. That's why places like Google allow you to interview in your language of choice.
For example, I see lots of professional JavaScript devs make the mistake of switching to Python just for interviews, and their unfamiliarity almost always bites them in ways they don't expect.
@@GordonZhugreat response!
I am 16 years old, and I want to say you really inspire me i started writing code since 13 and i watch most of your python tutorial.
Wow! Keep up the great work :)
@@TechWithTim thanks a lot I really appreciate you replying me.
My question is how to determine what you are best suited for in this field? Can you be tested to see what you're most suited for?
For some reason i feel you've done this video before 😂😂😂
I followed your roadmap and I learnt python first. Then js then C++ just to know how statically type language & complied languages work.
If so it was a LONG time ago! Glad it worked out for you, that is exactly what I suggest!
Yeah it was a very long time ago around the time you did the pygame series 6 years ago and 12 hours live coding session.
Everything I know about coding i learnt from you.
I'm really a big fan
@@itzAustin-qr8zx wow! thanks so much for the comment :)
I am a web developer in php. Mostly i worked for backend. The only problem in JS is i struggle to find the exact issue or bug while working with JS. N i am not good in frontend design. Should i go for JS or i should go for python?
I don't like frontend its like more graphic designing.
But I'm Interested in Data Engineering and ML, DevOps, MLOps, Automation, so I'll choose python for me.
That's how u do it
Thanks Tim but I was thinking you were going to mention the backend aspect of JavaScript Node.js and Express.js in particular.
I dont forget mongoose for the backend aswell...
Agree, JavaScript is mire completed. It is not just for frontend. It can be use in AI, the backend, CLI, server script, and the lost go on.
Yeah, I was wondering why he didn't mention the backend aspect of JavaScript.
I am interested in cyber security,I was wondering which code I should learn....
Yup. Just learn a programming language. That will make it a whole lot easier to learn another programming language. there is no BEST programming language, it's just that some programming languages may be better suited to the project you want to work on.
JavaScript is being used for a lot more than front end web development. With nodeJS and Dino you can just as easily do back end web development as well.
Adobe uses JavaScript as its in-application scripting language, and Apple offers it as an alternative to AppleScript for system automation.
Python is the in-application scripting language for Blender.
My favorite programming languages are C and Perl.
C for small and fast programs, Perl for easy and data-intensive programs. Nothing compares to Perl's Regular Expressions for slicing and dicing data.
JavaScript (like AppleScript) has a lot of LISP-like features so you might want to take a look at Scheme or Guile after you learn JavaScript.
I'm starting with Python, will learn Java Script soon.
bro! is it possible to make a real time social media application using django? please reply me whether it is possible or not.
Yes
Learn both and many others.
Solid video.
Thanks for actually saying React is a framework. It makes you write JavaScript in its own convention. It might not be as strict as Next but it’s a framework nonetheless because you’re coding JavaScript differently
What about golang ? I don’t understand which language it can go with
Do you have a Q&A forum for your lessons?
You can check my discord server, I also made a Skool community which can be useful: www.skool.com/software-developer-academy
How reasonable is to use JS to display the visuals of a game I made on Python?
Is combining languages a thing?
It is but you have to figure out how to get these languages to talk to each other . You could have them talk to each other through networking protocols
Using JavaScript to display the visuals of a game made in Python is a reasonable approach. Combining languages is a common practice in software development, especially when different languages excel in different areas.
In the given context, it is mentioned that JavaScript is more focused on the front end and visual aspects, while Python is often used for back-end development and data analysis. JavaScript allows you to create user interfaces, make websites, and build interactive applications with ease. On the other hand, Python is known for its capabilities in data analysis, AI automation, machine learning, and backend web development.
To display the visuals of a game made in Python using JavaScript, you can utilize the strengths of both languages. Python can handle the game logic and backend functionality, while JavaScript can handle the front-end rendering and user interface. This approach allows you to leverage the visual capabilities of JavaScript while utilizing the power of Python for the game's core functionality.
By combining languages, you can take advantage of the best features and tools available in each language. Python can provide the necessary computational power and data processing capabilities, while JavaScript can handle the visual rendering and user interaction. This combination can result in a more efficient and effective development process.
However, it's important to note that integrating different languages may require additional effort and knowledge of both languages. You may need to establish communication between the Python backend and the JavaScript frontend, which can be done through APIs or other methods of inter-language communication.
In conclusion, using JavaScript to display the visuals of a game made in Python is a reasonable approach. Combining languages can allow you to leverage the strengths of each language and create a more robust and visually appealing game.
5:50 2:51 3:02
Answer made by Talkbud
1:58 what about node?
hello TIM do you know about ODOO frame work please give me information if you know about it
I suggest learning HTML and CSS then learning JS as JS loads into browsers
hey tim, I'm 15 and I am interested in ML, but everytime I watch a tutorial, it's fine in the start but then I just don't understand the math, do you have any idea what I should do?
For ml you need to have strong knowledge in math, like you need to learn linear algebra, probability,calculus.
Then what about this? Python or Ruby?
start with Go
You guys, I’m starting my journey. Wish me luck. Mind you I’m a sophomore in college lol. Time to get in my first 1000 hours in Python. Don’t be shy ask me how my progress is going
great video
My advice is learn both. Learn python first. Before going to JS
“…as simply as possible” would be to just state which one, right?
Well it depends on your preference. As explained simply
Nice vid!
Thanks!
Are you coming for PyData Dubai?