Interfaces in the Go programming language are very simple but they are subtle. 👉 This video is a part of my Go Bootcamp online course. You can buy the full course using this link: www.udemy.com/...
Пікірлер: 106
@princeofxane3 жыл бұрын
I respect when the creator put so much effort to make the viewers understand the content by incuding real life example anyone can relate with, it becomes absolutely worth watching it rather than someone explaining from an abstract level. Thank you.
@winter_light2 жыл бұрын
I don't know why such amazing creators stop making videos. This was so much better than what I have seen elsewhere and it's my humble request to the author to please continue to upload more.
@GeorgeGaleMusic3 жыл бұрын
I’ve been struggling to understand Interfaces for ages! Thank you for making it so visual! Great video!
@learngoprogramming703 жыл бұрын
Glad it was helpful!
@YBWang-pi9qq3 жыл бұрын
go interface confused me , I went through several tutorials , this one explains in the best easy way. Your examples shine. Thanks
@dmitrydmitriev2554 Жыл бұрын
Thank you a lot! It is a one of the best explanation videos. - Explanation is clear. - Examples are interesting and selected shrewdly. - Animation and layout are selected with a taste of real architect. Brilliant.
@0xf012 жыл бұрын
just found your channel after i bought the course on udemy, dude, developers need more people like you, that can explain things in a visual way, i wish you'd come back to making videos too
@CJ-ix1ov3 жыл бұрын
Why have you stopped making such incredible videos?
@wilfred-almeida2 жыл бұрын
3 minutes into the video and I subscribed, liked. This is what I call quality education.
@yogeshdharya3857 Жыл бұрын
Amazingly clear examples , all real-world related and breath taking visuals
@Stevesteacher2 жыл бұрын
Thank you! In under 2 minutes you have made me understand what interfaces are and why we would want to use them!
@AntonyMapfumo4 жыл бұрын
One of the best explanations I have come across. Thank you.
@inancgumus41253 жыл бұрын
Thanks! Glad to hear!
@lancer876 Жыл бұрын
Where are you? It's amazing! It's amazing the way that you explain the interfaces. Thanks a lot, because I didn't understand its useful.
@iwolfman37 Жыл бұрын
This is the exact video I needed, I've been having a hard time wrapping my head around and visually being able to understand interface implementation. But this helped me visualize it sooooo well! THANK YOU!!
@alyssa67383 жыл бұрын
I've been staring at code for so long and looking at other tuts but just not getting it, the non-code example and visuals were so helpful!
@Avocado.777 Жыл бұрын
I wanna hug you for making me acquire this knowledge so easily
@justadude87162 жыл бұрын
Calling it a protocol is a really neat idea and helped me understand it. When it came to interfaces the Tour of Go just brushed past it and went straight to exercises on readers and stringers, that even when I completed I still didn't understand the utility/power of interfaces. Thank you for your video!
@savingday10 ай бұрын
Interface type is an awesome concept and you explain it very well
@w300x2 жыл бұрын
This is the video that made me understand interfaces. Thank you very much!
@thisisreallyme31309 ай бұрын
Best video on Golang interfaces, and I watched every one on YT. I still have trouble with the concept (I come from other languages and didn’t do OO). If you ever revisit, maybe show how to convert a medium sized,working non-interface code over to Interfaces? Or something else… it’s both a simple concept and difficult to know when to apply it.
@dassyareg7587 Жыл бұрын
Best explanation so far. Thanks. Subscribed!
@janz.79942 жыл бұрын
This is how programming tutorials should be made
@guhkunpatata31502 жыл бұрын
Your explanation make it looks very easy. Amazing.
@days.lee23 Жыл бұрын
You're a genius thank you so much Edit: just realised this is the last video you've posted. Unfortunate, but subscribed if you ever make more. Alternatively please let us know if you have anything on any other platform 👍🏼
@DavisTibbz2 жыл бұрын
Best explanation of go interfaces
@chrisclark59002 жыл бұрын
Great video, demonstrates the power of interfaces in Go in such a clear way. Gr8 job m8
@oemperore8353 жыл бұрын
The best explanation I have seen. Thanks, I finally understand interfaces.
@yagisanatode8 ай бұрын
This was the best explainer video for interfaces I have come across so far. Great work. It must have taken days of editing and prep to get this together.
@victorsanchez0013 жыл бұрын
Excellent explanation, I've searched everywhere for a good one and finally found the best, thank you for your time
@zoloto99463 жыл бұрын
Very well explained WHY we do need interfaces! Thank you!
@mikeyo51542 жыл бұрын
Very good description. Thanks for explaining so clearly
@garybonner7499 Жыл бұрын
By far the best explanation of golang interfaces. Thank you for the time and effort you put into this
@jsteezeful4 жыл бұрын
I've been poking around for over an hour and it still wasn't clear to me. Within the first 2 minutes of this, I understood the point of an interface. Great analogy!!!
@inancgumus41253 жыл бұрын
😊 I'm glad that I could help you!
@renishb104 жыл бұрын
Clearly explained.. Keep up the good work!
@inancgumus41253 жыл бұрын
Thanks!
@TheAmazingXizde2 жыл бұрын
this tutorial is really good about interfaces!
@pratikshitole3913 жыл бұрын
Awesome explanation , Please cover entire Goalng
@pitzel2 жыл бұрын
best explaination i've ever seen
@safwatimran53102 жыл бұрын
Really well done! Appreciate the effort.
@hjman29342 жыл бұрын
Hi, why you not making videos?? your videos are so good I learn a lot. please start making video again. thank u.
@ABHISHEKSINGH-nv1se2 жыл бұрын
Please make the output font a bit bigger . BTW nice video.
@inaccessiblecardinal93523 жыл бұрын
Man, I forgot European sockets had 4 holes... good video on go too.
@mr.psychedelic95953 жыл бұрын
thanks for the video. what vscode theme name in this video?
@Zarkoublack3 жыл бұрын
This video is what i've been looking for, Ty very much!!
@parthokr3 жыл бұрын
Hey man! You just nailed it. One of the best interpretations.
@quyvominh98602 жыл бұрын
Can you make more video about Golang, all of your video are so good
@rajendragosavi22332 жыл бұрын
Gold standard video it is :) Thank you very much
@НикитаНеговора-з8е5 ай бұрын
thank you for the video! a lot of hard work on this video indeed
@mamtachahal12772 жыл бұрын
THE BEST EXPLANATION
@debanjanbarman72123 жыл бұрын
thank you very much for giving it free
@batiandanielliu35983 жыл бұрын
There are many tutorials on web with same examples of the interfaces for area of shapes, they were just copying from each others. This one makes sense. Well, that's say the interface is a method which calls all all the methods which has the same name from different types.
@learngoprogramming703 жыл бұрын
Thanks!
@_hologram2 жыл бұрын
Thanks for the video, very clearly explained. As many in the comments, would really like to know what theme you are using on vscode, looks neat
@luismelo4131 Жыл бұрын
W explanation, it's just perfect
@tommasogagliardi60513 жыл бұрын
Excellent explanation, subscribed
@denizszr83162 жыл бұрын
hocam 10 saat doc okusam bu kadar iyi anlamazdım emeğinize sağlık
@luv2stack Жыл бұрын
So good!! Instant subscribe
@SushantShekhar-my7eu Жыл бұрын
great explanation. pls post more.
@vurmyr3 жыл бұрын
Marvellous explanation
@learngoprogramming703 жыл бұрын
Thanks a lot
@sideantunes2 жыл бұрын
Hi, what's your vscode theme?
@abinashpanda3934 жыл бұрын
Oh, that's how it works. Thank you.
@borzoomoazami82017 ай бұрын
Amazing video. Thank you very much
@DentrifixoRam883 жыл бұрын
Great video.
@randomness32313 жыл бұрын
excellent example!
@esra_erimez Жыл бұрын
Excellent video! Brilliant!
@Demik109Xx3 жыл бұрын
Thanks for the awesome tutorial! What vscode theme is this?
@ijyotir3 жыл бұрын
Why do u stop? Keep the good work going
@tesohh Жыл бұрын
Thank you for this tutorial. What theme are you using?
@yigitaltunay3 жыл бұрын
clear expression, thanks..
@learngoprogramming703 жыл бұрын
Glad you liked it
@bschaatsbergen2 жыл бұрын
Hey great video. I was wondering which VSCode Theme you are using? Would love to know. Thanks in advance,
@zaphkiel_3371 Жыл бұрын
me too D:
@kafin35043 жыл бұрын
superb lecture!
@mk98343 жыл бұрын
very informative, thanks
@mwnkt Жыл бұрын
if it swims it's a duck, that's all i needed to understand interfaces? after struggling for a month. thanks.
@Pimphats3 жыл бұрын
thank you for the video :)
@beakid71264 ай бұрын
Hi please continue tour video
@wah1dx3 жыл бұрын
The duck example was enough for me. 🤣 Ps. I already knew abt interfaces just couldn't visualise it's applications.
@MaheshCRegmi3 жыл бұрын
You are the best
@ИгорьТ-х6м2 жыл бұрын
All this is good, but how do I access the fields of the concrete types when using interfaces? Let's say I have a book with a price on it and I have a game with a price on it. Within the loop call to x.Price is not available. Yes, I can implement both methods in a book and in a game with getPrice() and add it to the Printer, but 1 it wouldn't be a printer anymore 2 what If I don't want to do that?
@inancgumus4125 Жыл бұрын
Interfaces are about behavior rather than state. You should tell the types what to do without knowing how they do it. `getSomething` is not a behavior; it’s like poking into the internals of that type.
@InsanPrasetya3 жыл бұрын
Hey, I'm quite new to go and its pointer concept, can you please explain why you used pointer in game receiver but not in book receiver? Thank you!
@learngoprogramming703 жыл бұрын
The book print method doesn't have a pointer receiver.
@sechangpark88463 жыл бұрын
omg thank you
5 жыл бұрын
very well described
@inancgumus41255 жыл бұрын
Thanks, Ugur!
@base24462 жыл бұрын
This is interesting when coming from OOP languages. In C++ you'd create a "product" interface because the products also share title and price. But it seems that in Go interfaces are more granular. What would you do in the the case that you need to ensure a type has a "title", "price" and "print" method?
@danimunf2 жыл бұрын
i'm curious about this as well
@dapodix Жыл бұрын
Interfaces in go deal with behaviours of types only. Srructs would be where you define what attributes your types take on (guitars, books, pencils) and you can nest srructs if that makes sense for your use case. By splitting the behaviours of types away - you get arguably better flexibility and with implicit matching, you simply add interfaces as you go to have existing types automatically take on new behaviours.
@inancgumus4125 Жыл бұрын
When declaring interfaces, restrict them to the behavior you want others to implement without considering the other types. Only consider what you need from the perspective of the package that needs that behaviour.
@RobertLugg2 жыл бұрын
Why did you use pointers for the games?
@inancgumus4125 Жыл бұрын
It’s because the game type implements the print method with a pointer receiver.
@ismail21982 жыл бұрын
Merhaba iyi günler. Bir sorum olacaktı bu videonun Türkçe hali bulunuyor mu
@alperen60563 жыл бұрын
İnanç abi iyi günler.Ben senin go kursunu almıştım da oradaki themeini çok sevdim nasıl yaptın veya hangi theme kullandın söyler misin kurstaki benzer bir soruyu cevaplamışsın ama ben yaptım farklı ve kötü bir şey oldu
@rd-pb5tj4 жыл бұрын
excellent
@danimunf2 жыл бұрын
could you or anybody here explain why the minecraft and tetris have the ampersand(&) ???
@joshuamarcano350 Жыл бұрын
🔥🔥🔥
@michaeltesfaalem34464 ай бұрын
do i really want to code? nah? do i need to build a life stlye that needs to income? yes
@MaksymMinenko2 жыл бұрын
Where's the github repo?
@xuzhangning3 жыл бұрын
11:09 nice to know
@reesewilson3 жыл бұрын
Do I really think I understand Go interfaces? Yes, I thought I did. Then I watched this video, and I still think I did
What type of programmers did you expect to address in this video? Why spent so much time explaining what an interface is at the same time throwing things like type list []*game (yes, a pointer to a game) but []book (no, no pointer to book) and glossing over the details? Worse, there's nothing revealing as your title suggests beside the normal polymorphism concept any tutorial already addresses.