Static vs Dynamic Typing
19,415
Published 2023-03-07
Learn back-end development - boot.dev/
Learn Python - boot.dev/learn/learn-python
Like & subscribe for the algo if you enjoyed the video!
== Chapter Contents ==
00:00 - Intro
00:28 - What is dynamic typing?
01:12 - What is static typing?
01:59 - Is static or dynamic typing better?
03:18 - Type inference - why static typing is better!
04:08 - Why newer languages offer the best of both worlds
04:25 - If static is better, why learn dynamic languages?
05:26 - Outro
All Comments (10)
-
The recent videos on the channel have been crisp and informative. Please keep up the good work
-
dude your website is legendary. So much better than anything else out there
-
Loving these videos!
-
I am studying about entropy and i'im just fall in here seeing videos about python and everything i love about programming. Tks, Lane!
-
4:14 c++ has type inference using auto keyword
-
A big advantage of Static Typing was memory allocation. If you declare a to be an int, you knew exactly how much memory a would ever need. This also of course came with a whole bag of problems like array boundaries in C and such. Modern memory management and the huge amount of memory available for most applications renders this completely moot. You can also use type hints in Python to make clear what the intended type of a variable or function result is and a good IDE will find many potential errors that way.
-
Nice video but this is how I always felt about dynamic/static. I don't see you "var x int = 5" is verbose of hard to read? :) Okay, you need to know what an integer and a variable is, but hopefully, if you are gonna write code that doesn't run into other mysterious bugs down the road, you should probably know what an integer is and how it works?
-
Lets go feed the snake =)
-
Hello Lane, I sent an email more than 12 hours ago, could you please read it and respond? Thank you.