Learn Go in 12 Minutes
Vložit
- čas přidán 12. 06. 2024
- Learn Computer Science at brilliant.org/jakewright
An introduction to Go covering the fundamentals to get you up and running in 12 minutes.
The code is available on GitHub github.com/jakewright/tutoria...
----------------------------------------
Support this channel at / jakewright
----------------------------------------
00:11 Installing Go
00:20 Creating a Go project
00:54 Structure of a Go file
01:48 Compiling and executing Go
02:31 Variables
03:31 If statements
03:45 Arrays and slices
05:25 Maps
06:13 Loops
07:40 Functions
09:42 Structs
10:38 Pointers
MORE TUTORIALS
----------------------------------------
Learn Docker in 12 Minutes: • Learn Docker in 12 Min...
Docker Compose in 12 Minutes: • Docker Compose in 12 M...
Deploy Docker Containers • Deploy Docker Containe...
Learn HTML in 12 Minutes: • Learn HTML in 12 Minutes
Learn CSS in 12 Minutes: • Learn CSS in 12 Minutes
Learn JavaScript in 12 Minutes: • Learn JavaScript in 12...
Learn PHP in 15 Minutes: • Learn PHP in 15 minutes
SOCIAL MEDIA
----------------------------------------
twitter / jakewrightuk
facebook / jakewrightuk
instagram / jakewrightuk
snapchat jakewrightuk
jakewright.net - Jak na to + styl
At 2x speed you can learn it in 6
Damn I should have read comments first
That is so true
At 2x it's be ultrasonic.
yeah, so I can procrastinate the other's 6 minutes
@@beo7929 I always put off procrastinating as long as I can.
Alternate title : "Learn GO in one GO"
Let's go learning *Go*
I don't think that that would GO well.
😂
Dare I say the first time I have seen a CZcamsr actually zoom in on the code so I can read it.
IKR, literally all the Java tuts I watched were from 2008 on Windows 7 using Eclipse.
Agreed
for reals dude lol
@@retrodragon2249 some old people still uses eclipse .
Brilliant overview for developers that know other languages and the basic concepts already
I like to see pointers used again. They felt like such a headache when I was learning them, but over time I really like the usage. Lower-level memory control is always welcome. It's also very nice that pointers are by no means a requirement to understand in the language. In C, C++, etc. pointers are must-know.
Now if you're working production in Go... yeah, you almost certainly need to understand pointers. An existing codebase you're working on will almost certainly have pointers used.
@@ForTheOmnissiah same story here. We used pointers in first semester of college and they just flew by me. Now with more experience I always find them useful, and I miss them in Java
@@ForTheOmnissiah Pointers are pretty shitty for code readability though.
This 12 min video covered and explained a lot more than some 1-2 hour videos out there! Thank you!
That's also the idea behind golang
@@opensourceradionics true that, lol
I tend to be reticent with "Learn X in Y time units" kind of videos. However, I must say this is a very competent and well presented introduction to the main concepts and constructs of the language. Congratulations and thank you for sharing.
I completely agree!!!!
Thanks to jake!
Love the word reticent
i couldnt agree more with you!
well that's a legit 12 min course, and made me genuinely interested in Go.
Why, it looks ugly and clunky as fuck. I don't think it has a single feature that isn't done better in other languages. lol, why not just use c++, wich simply is more sober than this bullshit.
@@TroenderTass Man, you are probably some kid who picked C++ 3 days ago and think every other language is obsolete. Every language has it's own advantages, stop spewing your bullshit.
@@ananttiwari1337
Im just curious why this tutorial would make anyone curious about such a redundant language. You can just do c, this one seem to offer nothing new, and looks like it belongs to the 70s. You need to stop being sensitive about it, it is just at tool, and a really poorly desinged one from the looks of it.
@@TroenderTass I trust your vast experience and knowledge.
@@jarod1701 You should
One of the better youtube channels out there. No fluff, just quick and precise, straight to the point.
Truly an excellent crash course for people already versed in similar coding languages. Great work!
Fantastic introduction. This saved me some serious amount of time learning Go-specific syntax.
That short unintentional (pass by value | pass by pointer) explanation, was the best explanation I found so far
This is the second video I have come across about 12 minutes of awesome. I appreciate your clean, concise, easy to understand training style. You just gained a new subscriber!
Very clear, concise and fast pace. Couldn't ask for a better tutorial. Thank you Jake!
Big thanks! I am software developer with no experience in Go and this is exactly what I needed. Short, fast introduction to basic stuff so I can move on with in coding with Go. Subscribed. Thanks!
New to go and programming. Found your video most helpful and easy to follow along on my end. Fantastic explanation. Tks East Coast Sr (70 yrs young)! Never too young to learn!
as a programmer who already knows a bunch of languages, and doesnt appreciate it when every intro to a language vid feels the need to explain what an if statement is, I loved your tutorial
Thanks for the video! This was a really concise and well explained overview for someone like myself who is already familiar with almost all of the concepts you covered, but doesn’t know the syntax in Go.
Fantastic video; I love how quick and concise the presentation is. Makes me want to learn Go!
Great video. Short. Sweet. No babbling. I watch most educational videos at 1.5X or even 2X. You're already teaching at that speed and I greatly appreciate it.
I did not expect that much quality in 12mins, I'm impressed
simple, fast and enough for the beginning. Thank you ! :)
I think we should encourage Jake to make more educational videos. He would be a great instructor! There are a lot of tutorials, books, MOOCs on the Internet. Instructor's personality and empathy could make people learn better and be more motivated during their study.
Check out Mike Dane's channel.
Thank you!!! Probably the best, no-nonsense, not-boring, not-heavily-implied, no tiny writing on large res screen video tutorial I've seen in a while.
Also finally understood what pointers are, something that I've struggled to grasp after many years.
Brilliant tutorial within 12 min I found on CZcams 🔥
You teach me in these 12 minutes❤
Yeah if everyone can stop making new languages that I have to learn that'd be great
You don't have to.
Devon So are you
LOL :D
They give more flexibility for developers to pick which one suits their use case better. This is my first introduction to Go and it seems pretty cool.
An old friend of mine told me before entering my software carrer, "If you want to be good, dont learn all programming lenguages cause you will become useless, instead, pick one that you like and master it"
Joining all the previous commenters, I love how efficiently you explained it. Exactly what is needed, and none of the BS
So good video! Not too fast, not too slow and boring, most important aspects checked in short time, tips about how we can learn more about it, THAT'S GREAT!
Make more of this 12 min videos where You teach..... You're really good at it
You go ahead💪❤️
@barkley128 yeah the pace is good. But he should minimize the terminal window immediately after running so that we can see the code instead of staring at the terminal.
Indeed! MORE TWELVES! How about VueJS, K8s, Rancher .... -)
Wow this is such a great video . I finished this course and applied at google and got the software engineering job.
Edit : Sorry I was high when I applied and posted this and I later realized that the interviewers were mocking me sarcastically.
The video is good tho.
Bruh
Loved how quickly you gave the overview of the language, thank you
finally a video that does teach the basics in 10 hours.
Experienced engineers can learn in 20 mins.
It's amazing what you can get done just by accelerating the typing and reading from a well-prepared script. I get tired of other peoples' videos where they spend half the time clicking on keyboards and bumbling around.
and yet it took you more than a year to watch this.
@@brserralheiro Huh?
Cool intro to the language syntax, made me want to learn more about it. Great job Jake!
This will go down as one of those lessons that I will recall several times for the nice foundation it set to understanding the language. You're a legend in my mind. Thanks.
I like it! I did Go while back and moved on to other non-Go projects. it took me 12 minutes to recap the language! - thanks a lot Jake
So, C with some fancier syntax and built-in data types.
But without the performance and with unbelievable restrictions (just look at packages and tests). And interfaces are always dynamic dispatch and without default implementation. I don't get the need for that language.
@@Elite7555
The more you can avoid pointers, the less skilled programmers you'll need to hire. You need to know pointers in C, even for the simple stuff
@@user-hk3ej4hk7m Well yes but pointers aren't even a little complex..
Everyone always hates on interpreted languages/ oop languages calling them non PERFOMANT . If you stroke your dick off to the mirror cause you know how to waste time on pointers instead of writing a solution good for you. Programming languages are tools , and the hardware is there to support abstractions and things that can make our lives easier. If c is so great , why then most businesses don't use it unless it's for embedded applications ...
It's like oh yeah I'll use 40 lines to implement this solution and make myself feel good cause I'm doing more MANLY WORK. Reality is you could probs implement it in lesser lines by using a language that supports more abstractions .... Will it be as performant ... No , but will it do the job ... Ofc.
Try using c for server side , or heck client side lol.
@@abeplus7352 Seriously though, completely agree. CGI was a fucking nightmare, and things like Apache and Nginx are cumbersome if you ask me. You can launch a fully functional webserver in Go using like 10 lines of code.. You can even write C INSIDE Go programs if you're itching to jerk off to the nanoseconds you shave off something that doesn't really need the extra speed.
Nice overview tutorial. I don’t know if I like Go. I hadn’t looked at it before, so this was a nice introduction. I may play with it a bit more. It seems one can achieve class-like functionality by creating functions which take a struct (or any other type) as the first argument. It reminds me somewhat of the Actor language.
Thanks for making this tutorial.
Short, clear and to the point. All any existing programmer needs to learn the basic syntax.
Great job!
Watched at 1.25x while eating pizza in my lunch break.
Brilliant video. I'm an experienced dev and I have dabbled with Go in the past (modifying existing code), but wanted to learn the basics of Go quickly. This was well explained and got directly to the point. Thanks!
You are great man.... thank you for this amazing tutorial... keep it up...
11:53 Jake, so very logical and coherent, I really appreciate the thought you put into thinking!!! I would like to ask if there are any concise, coherent, and logical explanations of pointers, particularly related to Go that you would recommend, besides the Go documentation ;-)
Great stuff. breath of fresh air to have someone just blast through the stuff that mostly like other languages but just needs a quick example to get the point across.
Incredibly concise and clear introduction. Love it. Thanks for the video!
Loved it :) really helped me out
Man the type system for this language looks fucked up. I know they probably didn't want to look like C++ but surely `int x = 1` is easier to read and write than `var x int = 1`?
It was weird for me at first, too, but I found that reading "var x int" to myself as "x is a(n) int" makes it easier, and I got used to it after a few days. This might also help explain: blog.golang.org/gos-declaration-syntax
That is why you would write x := 1. But yeah, it is fucked. Building something complex is out of the question.
Go is already used to build some of the most complex systems in the industry today :)
its a great mix between c, basic and pascal - would have loved it if it had stuck to c syntax consistanly - but considering giving Go a chance against Python
If I have to guess I-d say they did it for a couple of reason.
Parsing speed > the parser can understand it is a declaration just just by reading a signle token. (same with functions) c syntax is pretty stupid parser-wise
Readability -> same thing but for humans :)
Best language I've come across. You explained quite eloquently.
For a person who just wanted to see the key structure of the language, this video is perfect! Thank you.
Types one letter, 5 new lines appear
I don't think the syntax is very intuitive ...
I know right. For a language made in 2009 its syntax if quite archaic but I guess it was made to be fast and be similar to C's syntax
@@randallgyebi978The syntax doesn't have to garbage to make the language fast, but go isn't fast anyway
@@DerH0ns Isn't it? Really? Poor Ken Thompson, was involved in development of C language. By now his name are related to a language who almost everyone thinks it's a joke.
@@Joe-ud1de Lol? Who thinks C is a joke?
@@SuperArjun11 I was talking about Golang. You dumbass.
Very on topic introduction to Go! Surpassed my expectations of a 12 min video and sparked genuine interest in the language!
The best go short video on youtube
Could you do a tutorial like this for java? i think it would be really helpful
This just sounds like python
but with extra steps
you sound like a python user
Didn't know I could learn go that fast. Thanks man!
It's been 10 years since I started my career. This guy explained pointers better to me than I think anyone else ever has.
That might be sad, but I haven't had to use them directly since college. I'm glad to understand them now though. Thanks!
I thought you were going to teach us the classic Chinese game "Go" before I clicked here... Sorry 😂😂
Sry mate 😂😂
it would take a lo longer to learn that than this lol
hhh thats funny
It takes you 12 minutes to learn the rules, and 12 years to get to a beginner level.
I wonder how many people have created Go in Go. Probably a lot more than have recreated Rust in Rust.
Ba dum tss
go seems like a mix of python and javascript, pretty cool
it's static typed, so more like a mix of c and a scripting language
really great 12 minute video! this helps me get started exploring go now that I have enough syntax to play around with
I literally understood more in your video than by reading an entire book about Go ( clearly i am the problem but that's not the point)
you're excellent, like really good at teaching,
Keep going cause you're helping alot of people !
Kind of like a more strongly typed javascript. However, I feel like you could get pretty creative with writing programs in go.
It prevents a huge amount of bugs. I've lost count how many times I've ran into errors using Javascript & Lua where a variable contained an unexpected value type. Especially with using third party libraries where I'm not entirely sure what arguments a function expects, and in what order. Errors like these are easily caught with a typed language and it takes essentially zero effort to specify the type of a variable. What's the advantage of NOT having types? Basically none. That said, I wouldn't say javascript "needs" types especially considering backwards compatibility. Flow or TypeScript is enough, in my opinion, for anyone that actually wants type checking in Javascript.
Yeah it has close to nothing similar to js lmao, Go shoots for a minimal API while JavaScript's just grows because of the poor initial specification
Yeah, not really.
I'm new and learning javascript, i was wondering why don't they design languages so you can't write erroneous code, javascript seems so loose compared to some other languages... i'm pretty sure js needs type when you work in a big company and in teams with huge projects... but if u work in small company or freelancer and doing just mostly websites with not so complex back-end you probably okay without no types ... i don't quite like how types are written "inline" in go...
I wouldn't mind them if u can define them them on top of the file where your imports usually are :P
var x int ... looks just confusing to me...
well javascript was written in 10minutes at coffee break... :P
i do agree that python and this go thing looks cleaner and more appealing syntax-wise...
Not sure why my friend suggested learning python as first languages instead of javascript(since im mostly interested in web dev, i don't think i have the mental capacity to do complex stuff like neuralnets, data science and all that jazz...)
I just took advice from some hackernoon or something similar post that coming from js it's easier to go over python than vice verca because of the ident being part of syntax...
What do you think.. ?
@Microphunktv I found it incredibly helpful to start with a strongly-typed language. I went from C++ to Java, and then on to assembly. Weakly-typed languages came later. Starting with a weakly-typed language will mean that you get used to writing code that could be sloppy or dangerous in other languages. If you start with a strongly-typed language, you get a better understanding of what's happening under the hood, and if you move to a weakly-typed language later on, you won't be taking bad habits with you.
Why don't they just write int variableName = value;
what's the point of writing var variableName int = value if you have to type it anyways
lets interpret it this way: variable varName is an int and it equals to value ;) now it makes sense doesn't it?
because you almost never use it, except when you declare variables which get assigned later on.
Often things like
var result string
if ... {
result = "abc"
} else {
result = "def"
}
fmt.Printf("derp is: %s
", result)
I never comment on videos. However yours is simply outstanding, while the depth of knowledge was fairly rudimentary, your way of explaining everything was amazing. Super engaging and fun!! You sir are a great teacher.
This is an excellent primer, thank you for taking the time to make this video.
Imagine getting this video demonetized too....
You have great teaching skills, however this "Go" language is very similar to C/C++, with some syntax differences
It's pretty dissimilar. Go has a garbage collector, while C relies on the programer to malloc/free and c++ has new/delete and RAII. Also Go has no generics, templates, or code-generation.
Really nice short & simple overview of the language. Thank you!
Short and quick introduction to Go. Great video. It was really helpful to me.
Why Go?
Why not Go?
@@jayankaghosh because it's a horrible shitty language
@@jayankaghosh let's go
@@jayankaghosh it doesn't bring anything new
This feels like destroying what ever Java was striving to build since past 25 years. Going back to pointers! Great......Just great..........
Enjoyed watching. Well organized.
Great quick overview without dead time Thanks!
please, python
thanks fella. i have been following him for a while but never knew that he has one about python)
Is python a language ?
I hated Go at first because of the syntax
Hated the syntax in comparison to what?
Everything.
Seriously what the fuck were they smoking when they came up with "var name int"?
C-style language.
yep in comparison to c style languages and tbh most languages follow similar syntax and this one just decided to not which makes it annoying to get used to.
I felt like I finished Full marathon in 12 mins.... Never ever learned anything that quickly.... Big thank you...
Really nice! 12mins to get the basics down where others take hours. Nice work 👍
You need a decent understanding of all the principles of programming before you watch this 12 minute video. So more like explore go in 2 years and 12 minutes.
I can handle camel case. I can even handle snake case, even though it takes more keypresses to type and thus slows down programmers. What I can't handle, though, is functions in a package being capitalized. That's classes and constants. Who designs garbage like this?
Wow, you must be really stable guy
I actually build shit and care about readability and quality. Not even Google heavily uses this shitty language.
Yeah. Coming from something like python the OCD starts to fuck with you...
com.company.package.SomeClass.someMethod()
God bless Java
Not many people see it that way, but yes, that actually is good hirachy and naming. Although I heavily prefer the snake case.
Pretty impressive intro to the language! Quick and easy to follow!
Superb short and simple introduction to Go Lang. Good work!
It really breaks my mind that every f*cking programming language needs to change the way you declare variables, functions, etc. As if they just want to make sure that you will have a bad time learning it. Wouldn't it be more efficient to define a standard for this standard stuff like declaration and then every language adds their own implementation and additions?
No colored error output? I am out of here!
If you've decided not to learn a language just because you didn't see colored error output, then not only are you a picky spoiled brat, but you're also a bad programmer for being so inflexible.
It's not something to be proud of, since the less willing you are to learn things you're not used to, the faster you'll be left behind and the more likely you will die poor and alone. It just means more jobs for us who aren't so spoiled.
its a fucking joke oh my god
Cause it's running on terminal , if ides supported it you might get a colored output.
This is the best 1 minute explanation of the pointers I have seen! 👏👏👏
Fast and painless. Really good video!
This is the perfect way for me to learn stuff. Thanks a lot. I understood 100%.
Great video for those who are familiar with programming concepts and want to see how to get started with go. Thanks!
Perfect into to go-lang for folks who already know how to program. To the point !!
Really good video. Thank you :)
No fluff, pure content.
Great video! Go seems like a simple language. As you said at the end, this is a great way to get started as someone who has knowledge in other languages. Makes it easier to jump into the use of libraries and understanding their guides on their usage.
I've only been coding for the past 4 months in java, And my internship said this is one thing they'd like me to learn, thanks for the video, it dazzled my brain a bit but it was straight forward enough that even I could mostly understand. Thank you
Must have took a great effort to design a super short video with so much content and that too in a lucid way. Thumbs Up!
Awesome I was looking for the shortest video I could find to understand what Golang is about and you nailed it, really appreciate your video.
Amazing tutorial. Took about 45 minutes for me to go through and do everything myself with more examples. Also I like the language. Gives me a reason to dig deeper.
Great video. You got me at pointers. My favourite feature of programming languages. Ken Thompson's role is clear.
Very well done. Very well condensed and informative.
Brilliant video, explained brilliantly by a brilliant person!
Lovely video. Thank you for the very concise overview
That was 12 minutes well-spent, thanks Jake ;-)
Thanks for the excellent crash course Jake Wright!
Amazing video man! I was able to learn the main overview in such an amount of time.
This is more than enough to get started with go. thanks