Stack vs Heap Memory - Simple Explanation

Alex Hyett • November 25, 2022
Video Thumbnail
Alex Hyett Logo

Alex Hyett

@alexhyettdev

About

Idea. Build. Launch. Profit? Hi, I am Alex, a professional software developer who has been writing code for over 30 years. My aim for this channel is to help you take your side projects from idea to launch. I will show you everything you need to turn an idea into a profitable project that will hopefully let you quit your 9 to 5. ————————— Some of my video descriptions contain affiliate links to products that I personally recommend. In some cases, I earn a small commission if you buy something from one of my links at no extra cost to you.

Video Description

I take a look at Stack and Heap Memory and how it affects your application. Knowing how memory is handled in your application can help you understand your variables' scopes. šŸ“ Video Transcript: https://www.alexhyett.com/stack-vs-heap-memory/ šŸ“Ø Free Newsletter: https://www.alexhyett.com/newsletter/ — Join my free weekly newsletter for advice, technology and more. ā¤ļø Support my channel: https://www.alexhyett.com/supporters/ — Say thanks by buying me a coffee or becoming a loyal supporter. šŸŽ“ Courses: https://www.alexhyett.com/courses/ — Like the way I teach? You might like my courses too! šŸ‘Øā€šŸ’» All Code: https://git.alexhyett.com/alexhyettdev/youtube-code — Links to all the code for my YouTube videos can be found here. ā³ CHAPTERS 00:00 Introduction 00:18 Three main parts 00:28 Stack data structure 00:51 Call stack 01:19 Heap differences 01:50 Variable storage rules 01:58 Value types and reference types 02:23 Local variables 02:40 Reference types on heap 02:57 Value types on heap 03:20 Garbage collector 03:53 Exceptions to the rule 04:40 Asynchronous methods šŸ”— SOCIAL LINKS 🐘 Mastodon — https://social.alexhyett.com/@alex šŸ’¼ LinkedIn — https://www.linkedin.com/in/alexhyett/ ā˜ļø Bluesky — https://bsky.app/profile/alexhyett.com šŸ§‘ā€šŸ’» WHO AM I I’m Alex, a Software Developer and YouTube working in the UK. I make videos about software development to help developers with the skills they need to be senior developers. As well as this YouTube Channel, I also write articles on my website (https://alexhyett.com) as well as write a regular newsletter that contains some thoughts to help aspiring developers. #coding #programming #developer