GoLang: 10+ UNIQUE Concepts/Conventions that Beginners Should Know About!
Ғылым және технология
Go is an incredible language with a ton of pretty unique features. Today I wanted to break down 9 concepts that are fairly unique to Go as well as a couple of conventions recommended by the creators.
READ THIS: go.dev/doc/effective_go
twitter: / benjamin41902
insiderviz: www.insiderviz.com
timestamps
0:00 intro
0:28 package names
0:53 mixedCase
1:12 switch/if assignments
2:07 := reassignments
3:06 for loop
4:20 multiple returns
5:29 defer
6:55 new vs make
9:30 _ operator
10:20 struct methods
11:48 scope
#golang #programming #beginners
Пікірлер: 44
I've just recently came across your channel and I must say there so much quality content. Specially being so transparent with your InsiderViz examples. Thank you for sharing with us.🙌🏽
Congrats on the initiative to building these tutorials, it makes it much easier for people to get into GO, and your style of teaching is very practical. Keep going and the channel will grow for sure
I love those concepts/conventions type of content when learning new stuff. Please include more for more advanced topics as well. Quickest I grasped something in a while was with this video. Thanks.
You are covering great topics with these 10-15 min vids! They are also super informative for people who have knowledge in other languages to get a grip on Go ! Cheers
For someone starting with GO, these seem really helpful. Subscribed.
Great video Ben. I’ve really been enjoying your channel lately. I’ve just started learning Go and backend development a few weeks ago. I’ve been doing front end for a long time. I find your videos like this one really helpful in understanding some of the concepts and features of Go.
@remix_me
Жыл бұрын
I have been doing frontend for a long time and it's beginning to grow on me. I switched to go recently and i chanced on channel. great one and a new fan
Great video, learned a lot! This is gonna make my backend much better :)
Exactly what i needed! Thanks!
"And you, young Davis; we shall watch your career with great interest." Palatine or something. Great vid, subbed
Wow thats one of the best beginner-oriented Go videos I have seen
great content, information density is just right
Very helpful, thanks 🙏
Thanks, awesome stuff.
I just refreshed my learning after seeing this concept now I know how defer keyword works in go ☺️. 😊
Good video as always.
Nice video. I noticed you are using a vim plugin. You can use ~ to toggle the case of a character, also g~
the documentation 101: "the convention is to use camelCase" me: "you know what? I'm gonna snake_case even harder"
@BlueIsLeet
2 ай бұрын
gross
Omg the capitalization as export is just hilarious ffs
Great video.
Great video, btw what theme you use for vscode and font?
I love the scoping feature (capital letters) in Go compared to JavaScript. No need to worry about writing "export" for each function or learn different standards such as CJS or ESM.
Great!
Just a suggestion, you should really explain the concept of multiple returns before explaining the concept of := reassignments. The := reassignments concept is making use of the multiple returns concept so for those who are new to Golang might be confused on the a, err := foo() syntax
thank you
Which theme are u using?
"multiple returns" = returning a tuple?
Whats that Spotlight search bar in your vscode ? an extension? name please.
@bmdavis419
Жыл бұрын
Cmd +p
@abdu5822
Жыл бұрын
@@bmdavis419 i mean that's pop up for me but for you it's a search bar?
@bmdavis419
Жыл бұрын
@@abdu5822 for me its CMD + p = "Go to file" which is the searchbar at the top of my screen, you can find it in keyboard shortcuts
@abdu5822
Жыл бұрын
Thanks, man for your replies but after a bit of googling, I found out Its enabled by adding "window.commandCenter": true," in user setings.json or the UI.
You mention the craziest thing in Golang, it's interfaces.
next video on Contexts in Go
Please help me save these jobless rust developers 😢😢😢😢😢😢I BEG
@bmdavis419
Жыл бұрын
XD
@esra_erimez
Жыл бұрын
🤣
@nellatl
Жыл бұрын
What's the joke. I mean i get it but are you being sarcastic saying rust devs actually have
@user-nw7jo5xw9x
11 ай бұрын
Go is a great language, but the Gophers fan boy are not so great...
Also, it's not a good practice in Go to make setters. And totally not if you have a public field anyway.
Ok, I'll just say the new keyword and builtin is useless. I've never seen it used in out production code. we just use var to have things initialized to zero values, including nils for pointer types. For a language that likes to have a single way of doing things, "new" is doubly useless.
worst syntax since cobol
@raianmr2843
Жыл бұрын
looks like someone never wrote java