Go (Golang) Tutorial #5 - Arrays & Slices

  Рет қаралды 78,487

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 48
@dwayne6402
@dwayne6402 3 жыл бұрын
I've been following this course on Go each day as the videos come out. I find its just enough for me to go play with it and reinforce my learning as I go. I not only retain more but I gain a deeper understanding. Thanks for the great videos.
@imlautaro123
@imlautaro123 3 жыл бұрын
Shaun, this is the best course of GO for beginners in this kind of languages. I was trying to get started with GO (coming from JavaScript) and it was so hard but you make learning GO as simple as learning Python. You are definitely the best instructor.
@hunam_
@hunam_ 2 жыл бұрын
incredibly clear tutorial, thanks and congrats!
@NoahNobody
@NoahNobody 9 ай бұрын
Just discovering Go. Thanks for making these tutorials.
@drhastings
@drhastings 3 жыл бұрын
Will save this playlist for future purposes...just in case🙃
@sourcedecay
@sourcedecay Жыл бұрын
Mmm, a typed language with proper arrays and c-style string formatting. All in.
@osamagamal495
@osamagamal495 3 жыл бұрын
and that is freaking awesome, my friends.
@Sl4izer
@Sl4izer Жыл бұрын
Awesome tutorial! You are explaining it so well!
@mike-the
@mike-the 3 жыл бұрын
Published 20 seconds ago! My like is the second one! Yay!
@NetNinja
@NetNinja 3 жыл бұрын
Thank you :)
@soumadip_banerjee
@soumadip_banerjee 3 жыл бұрын
❤️ Thanks Shaun!
@borisakelovic9930
@borisakelovic9930 3 жыл бұрын
Skill of Ninja, yes my friends ...
@swagathshetty
@swagathshetty 3 жыл бұрын
your coures are so up to the point. the udemy courses I do are 30 to sometimes 50hrs long which makes me lose interest in them
@theone3746
@theone3746 Жыл бұрын
Most people don't understand that "keep it short, simple, and neat" is the most effective approach to take.
@sky_kryst
@sky_kryst 3 жыл бұрын
THIS!!!!!!!! Would love to see Rust and Elixir with Phoenix also in the future!
@sheruloves9190
@sheruloves9190 3 жыл бұрын
Thanks.. superb explanation..
@onlinehostpl
@onlinehostpl 3 жыл бұрын
Hello, will you continue the Django tutorials? I think you could make more videos about for example implementing the app into the webhost.
@mohammadmahdimdehaghi3465
@mohammadmahdimdehaghi3465 2 жыл бұрын
perfect👍👍👍👍
@MikeSmith-wr4yc
@MikeSmith-wr4yc 3 ай бұрын
4:26
@davidarubuike
@davidarubuike 3 жыл бұрын
Nice videos Ninja, a kotlin playlist would do nicely!
@e1tnz188
@e1tnz188 Жыл бұрын
thanks man that was helpfulll!
@NetNinja
@NetNinja Жыл бұрын
Good to hear :) thanks for watching!
@محمد.ميدو.حسان
@محمد.ميدو.حسان 3 жыл бұрын
Thank you bro 😎
@zerro361
@zerro361 8 ай бұрын
I am a golang beginer and I just have a warning anout slices and append. I loose hours because of a code like: path := []stuff{s1,s2,s3} Then later in a slice of slice I have a loop with something like: for _,s := range steps { currentPath := append(path, s) sliceOfSlice = append(sliceOfSlice, currentPath) } And here started my problems. Everything work as expected until I reach a certain point. The code behave like I append in the sliceOfSlice several time the last value of currentPath. This is because I reached the capacity of path. The ugly fix I found is to create a new slice with a capacity of path + 1, then add the content of path + s: currentPath := make([]stuff,0, len(path)+1 currentPath = append(currentPath, path...) currentPath = append(currentPath, s) Do you have a better fix than this?
@tronganhnguyenthanh1157
@tronganhnguyenthanh1157 9 ай бұрын
In your array name := [4]string{"yoshi", "mario", "peach", "browser"}. What happened if I print only 1 item in an array ?
@kvelez
@kvelez Жыл бұрын
Great
@MikeNugget
@MikeNugget 3 жыл бұрын
What is the use case of arrays with immutable length?
@artscheel
@artscheel Жыл бұрын
JUST IN CASE you haven't gotten a good answer in 2 years: Arrays with immutable lengths are typically for pieces of information that never change. Perhaps configuration options. Maybe there's a CSV file that you process frequently whose format never changes. var lengths [5]int = [5]int{5, 6, 10, 11, 14}
@MikeNugget
@MikeNugget Жыл бұрын
@@artscheel Nice, I've been waiting for you all this time. I think leg grows from C++, Java and other veteran languages where such arrays were mostly used for protocol implementation with strict scheme restrictions.
@Monster33336
@Monster33336 3 жыл бұрын
Do you deploy in C++ or Java?
@ratulr
@ratulr 3 жыл бұрын
Hey Shaun, please make such tutorials on Rust, please. this one doesn't have any good tutorials on youtube, you would be firstand people need quality Rust tuts
@hudamdnazmul4810
@hudamdnazmul4810 3 жыл бұрын
Please make tutorials on elixir.
@yassin_eldeeb
@yassin_eldeeb 3 жыл бұрын
Yeah please, no good Tutorials for it.
@hudamdnazmul4810
@hudamdnazmul4810 3 жыл бұрын
@@yassin_eldeeb u r right my friend,tutorials on elixir are so rare today.
@yassin_eldeeb
@yassin_eldeeb 3 жыл бұрын
@@hudamdnazmul4810 There is like 2 Playlists on it and they are from 3 to 5 years ago, soo bad and outdated, Perhaps you came from Ben Awad curious to learn Elixer like me right? 😅
@hudamdnazmul4810
@hudamdnazmul4810 3 жыл бұрын
@@yassin_eldeeb yessss😎
@101kawsar
@101kawsar 2 жыл бұрын
Just wanna know, why you guys are interested about elixir? what kind application do you wanna make with elixir?
@papa_ethan
@papa_ethan 10 ай бұрын
go range is very confusing
@jake115577
@jake115577 5 ай бұрын
Remember that index starts at 0 and the upper-bound is excluded.
@0xPanda1
@0xPanda1 3 жыл бұрын
♥♥♥♥♥♥♥♥♥
@basickarl
@basickarl 2 жыл бұрын
Good tutorial! But boy am I disappointed in Go's syntax...
@mike-the
@mike-the 3 жыл бұрын
Alright I watched it. And it feels like GO is just a dodgy version of JS. Even dodgier than TS. However I heard it’s pretty popular and many companies moving their backend from Python to GO.
@laragram
@laragram 3 жыл бұрын
Because it's super fast and has built-in support for concurrency
@mike-the
@mike-the 3 жыл бұрын
@@laragram doesn’t seem really fast. When ninja runs the file, it takes really a while to compile and run.
@TenshiProductionz
@TenshiProductionz 3 жыл бұрын
@@mike-the It's fast after compile into executable files. It's said to be 30x faster than Python.
@mike-the
@mike-the 3 жыл бұрын
@@TenshiProductionz as fast as 30 snakes? Damn that’s some light speed
@davidomar742
@davidomar742 3 жыл бұрын
@@mike-the you must be a troll.
Go (Golang) Tutorial #6 - The Standard Library
12:31
Net Ninja
Рет қаралды 58 М.
Learn GO Fast: Full Tutorial
1:07:53
Alex Mux
Рет қаралды 529 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Go Class: 10 Slices in Detail
30:20
Matt KØDVB
Рет қаралды 13 М.
Golang Arrays & Slices (Interview Question)
8:47
Esoteric Tech
Рет қаралды 4,8 М.
Mastering Inheritance By Struct Embedding In Golang
13:05
Anthony GG
Рет қаралды 32 М.
I Helped 2,000 People Walk Again
15:31
MrBeast
Рет қаралды 24 МЛН
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 370 М.
Go (Golang) Tutorial #7 - Loops
8:45
Net Ninja
Рет қаралды 46 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 91 М.
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 184 М.