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

  • @richardamare3575
    @richardamare3575 Жыл бұрын

    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.🙌🏽

  • @dev_intheshell
    @dev_intheshell Жыл бұрын

    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

  • @case6339
    @case633910 ай бұрын

    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.

  • @abhiramsatpute
    @abhiramsatpute11 ай бұрын

    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

  • @sahilchhugh2974
    @sahilchhugh29744 ай бұрын

    For someone starting with GO, these seem really helpful. Subscribed.

  • @MarkStrus
    @MarkStrus Жыл бұрын

    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

    @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

  • @franmaric
    @franmaric Жыл бұрын

    Great video, learned a lot! This is gonna make my backend much better :)

  • @ashutoshkaushik9118
    @ashutoshkaushik9118 Жыл бұрын

    Exactly what i needed! Thanks!

  • @MattBidewell
    @MattBidewell Жыл бұрын

    "And you, young Davis; we shall watch your career with great interest." Palatine or something. Great vid, subbed

  • @adriancruz2822
    @adriancruz2822 Жыл бұрын

    Wow thats one of the best beginner-oriented Go videos I have seen

  • @user-nw7jo5xw9x
    @user-nw7jo5xw9x11 ай бұрын

    great content, information density is just right

  • @joerivde
    @joerivde9 ай бұрын

    Very helpful, thanks 🙏

  • @GeorgeDonnelly
    @GeorgeDonnellyАй бұрын

    Thanks, awesome stuff.

  • @lakshmitech4702
    @lakshmitech4702 Жыл бұрын

    I just refreshed my learning after seeing this concept now I know how defer keyword works in go ☺️. 😊

  • @IkraamDev
    @IkraamDev Жыл бұрын

    Good video as always.

  • @AHairyBum
    @AHairyBum Жыл бұрын

    Nice video. I noticed you are using a vim plugin. You can use ~ to toggle the case of a character, also g~

  • @hakim_jazuli
    @hakim_jazuli11 ай бұрын

    the documentation 101: "the convention is to use camelCase" me: "you know what? I'm gonna snake_case even harder"

  • @BlueIsLeet

    @BlueIsLeet

    2 ай бұрын

    gross

  • @ddruganov
    @ddruganov Жыл бұрын

    Omg the capitalization as export is just hilarious ffs

  • @kvelez
    @kvelez11 ай бұрын

    Great video.

  • @AbdulWahab-ev2ct
    @AbdulWahab-ev2ct20 күн бұрын

    Great video, btw what theme you use for vscode and font?

  • @Xe054
    @Xe054 Жыл бұрын

    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.

  • @mr.x5582
    @mr.x5582 Жыл бұрын

    Great!

  • @irahazda
    @irahazda3 ай бұрын

    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

  • @naranyala_dev
    @naranyala_dev Жыл бұрын

    thank you

  • @danyaljaved6483
    @danyaljaved648310 ай бұрын

    Which theme are u using?

  • @vitorhmtts
    @vitorhmtts Жыл бұрын

    "multiple returns" = returning a tuple?

  • @abdu5822
    @abdu5822 Жыл бұрын

    Whats that Spotlight search bar in your vscode ? an extension? name please.

  • @bmdavis419

    @bmdavis419

    Жыл бұрын

    Cmd +p

  • @abdu5822

    @abdu5822

    Жыл бұрын

    @@bmdavis419 i mean that's pop up for me but for you it's a search bar?

  • @bmdavis419

    @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

    @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.

  • @CheefCoach
    @CheefCoach11 ай бұрын

    You mention the craziest thing in Golang, it's interfaces.

  • @abdu5822
    @abdu5822 Жыл бұрын

    next video on Contexts in Go

  • @fredrickdenga7552
    @fredrickdenga7552 Жыл бұрын

    Please help me save these jobless rust developers 😢😢😢😢😢😢I BEG

  • @bmdavis419

    @bmdavis419

    Жыл бұрын

    XD

  • @esra_erimez

    @esra_erimez

    Жыл бұрын

    🤣

  • @nellatl

    @nellatl

    Жыл бұрын

    What's the joke. I mean i get it but are you being sarcastic saying rust devs actually have

  • @user-nw7jo5xw9x

    @user-nw7jo5xw9x

    11 ай бұрын

    Go is a great language, but the Gophers fan boy are not so great...

  • @adicide9070
    @adicide90709 ай бұрын

    Also, it's not a good practice in Go to make setters. And totally not if you have a public field anyway.

  • @adicide9070
    @adicide90709 ай бұрын

    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.

  • @iZeb0x
    @iZeb0x Жыл бұрын

    worst syntax since cobol

  • @raianmr2843

    @raianmr2843

    Жыл бұрын

    looks like someone never wrote java

Келесі