r/learnjavascript • • Mar 02 '21

Understand computer memory for JavaScript programmers

https://youtube.com/watch?v=mQvD9-4ni2I&feature=share
154 Upvotes

4 comments sorted by

6

u/tibbon Mar 02 '21

This is a good educational step, but as the following tweet points out, it's just a high level approximation of how computer memory actually works. The rabbit hole of computer memory goes significantly deeper, especially when dealing with a language like JavaScript that does GC, and varies a lot with runtime environments.

https://twitter.com/David3141593/status/1363455476332126209/photo/1

For the next step (which again, is just one step), I'd read the MDN

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management

3

u/3dCodeWorld Mar 02 '21

Thanks for the comment. I fully agree. What is presented is just scratching the surface.

The main objective of the video is to present a model so that a person learning JavaScript at least starts thinking about memory. These models will be very useful once we start talking about objects, copying objects by reference, etc.

3

u/merla_blue Mar 02 '21

I wish the learning styles fad would die. It's been debunked pretty thoroughly.

1

u/puyih Mar 03 '21

nice! thanks for sharing.