Memory layout and mechanics of arrays and slices | Golang | intermediate level

preview_player
Показать описание
We discuss the memory layout of arrays and slices in Golang. This provides a good mental model for writing efficient and bug free Go code that includes slices.

0:00 Intro
0:27 Arrays
1:35 Slices
4:19 Initializing a slice
4:48 Passing slice as function arguments
7:05 working of append operation
10:35 Gotcha with slicing large slices
11:36 Nil vs Empty slices
12:22 range loop variable semantics

References:
Рекомендации по теме
Комментарии
Автор

The best explanation of how slices work in Go I've ever seen! Thank you.

themarian
Автор

Great explanation!

This channel is the place if you want to get your fundamentals cleared!!
The community needs more and more of contents like this !!!

gaurabdey
Автор

Great video, love the layout of the content

favio
Автор

Awesome content! More golang videos please ;)

maksymilianbiruk
Автор

Thank you very much. Your explanation is great 👍😇

zhadyra
Автор

Ive seen all yr vids about python. The way you explain is really amaizing, especially how variables work. Can you do additional vid about how data stored in sets and dictionaries pls? Or provide a link about this topic.

jen
Автор

What software do you use to create such visualizations?

exaaltare
Автор

How do you animate these videos? It's quite effective :)

PeterCooperUK
Автор

I hate the computer generated voice. Please use a human voice it doesn’t matter if you have heavy accent

Maximus