Golang Tutorial #22 - Interfaces

  Рет қаралды 106,789

Tech With Tim

Tech With Tim

Күн бұрын

Пікірлер: 102
@michaelroof1969
@michaelroof1969 3 жыл бұрын
Been programming for 30 years and you have a special gift. You are not only smart, but are able to articulate your thoughts. In my experience, engineers struggle with one or the other. Most don't share the gift of both at your level. Keep shining your light Tim. We hear you.
@mikealejandro3938
@mikealejandro3938 2 жыл бұрын
agree
@PaxHominibusBonaeVoluntatis
@PaxHominibusBonaeVoluntatis Жыл бұрын
I'm almost 50 yrs old and I'm impressed how listening to you makes things so easy - I've never had so much fun with any programming language before. Thank you very much! Keep the good work! Cheers! Bye!
@swaminathbera6407
@swaminathbera6407 Жыл бұрын
@TechWithTim I must say that "You're one of the best teachers, makes me understand everything with less effort"
@RizwanIshakthesinister
@RizwanIshakthesinister 3 жыл бұрын
That was the simplest explanation of interfaces I have seen so far. Kudos for showing examples of usage.
@rewanthtammana
@rewanthtammana 2 жыл бұрын
It's amazing the way you back-linked concepts to your previous videos on structs & struct methods which are great. A really smart way of execution!
@xcvsdxvsx
@xcvsdxvsx 3 жыл бұрын
I've looked in many other places to try to understand interfaces. They are always like, this is how you make one, this is how you use one, okay next lesson. This is the first place that actually explained it. Thanks, I'm going to pick up from here following your tutorials instead.
@hangchen
@hangchen 3 жыл бұрын
Man you not only look so handsome but also make good explanations on this go interface.
@NoBrainCode
@NoBrainCode 4 жыл бұрын
tim i am waiting to see you post things about projects with golang because you are the best man, your tutorials are incredibles
@ivan.angulo
@ivan.angulo 4 жыл бұрын
I come from JS and wow I finally understand interfaces! I will enjoy the rest of my day.
@therealosose
@therealosose 4 жыл бұрын
Hey Tim I was wondering if you could do a video on projects you can do with golang
@arntxy
@arntxy 3 жыл бұрын
To be honest, basically anything.
@sc0820
@sc0820 3 жыл бұрын
Project : Let's cal the area of any circle you want
@SakayaNagii
@SakayaNagii 4 жыл бұрын
When next video? Goroutines, channels and some other things are still left
@aashaydhawal7274
@aashaydhawal7274 2 жыл бұрын
Probably the best explanation of Interfaces on internet, exactly what I was looking for. Kudos Tim and thanks a ton :)
@jasonshi6916
@jasonshi6916 Жыл бұрын
Great example, this tutorial the best one I found about interface on internet. thanks.
@dimtass
@dimtass 3 жыл бұрын
After almost 30 years of OOP languages with classes and objects, they managed to make interfaces in a way that's beats everything else in ugliness. That needs balls.
@privateger
@privateger 3 жыл бұрын
It does look bad.
@TroenderTass
@TroenderTass 3 жыл бұрын
Go is simply just a poor and ugly language.
@SJHunter86
@SJHunter86 3 жыл бұрын
Go is not an OOP language and isn't meant to be used as one.
@viswanath660
@viswanath660 2 жыл бұрын
Excellent Golang tutorial for beginners. Thanks Tim.
@indraappkey
@indraappkey Жыл бұрын
Thank you, this is what i was looking for.
@khanhsb15
@khanhsb15 2 жыл бұрын
Thank Tim, I know more about go lang programming, it's useful
@sylvestertweetyhunter1733
@sylvestertweetyhunter1733 3 жыл бұрын
Nice, this series was wonderful, I hope you continue this topic :)
@nathanbenton2051
@nathanbenton2051 2 жыл бұрын
FYI: it helps during the pointer vs. non-pointer examples to run this in main to kinda show the difference: fmt.Printf("fooShapes: %v ", fooShapes)
@christy
@christy 2 жыл бұрын
Your tutorials are wonderful, however I want to point to an issue I see with many tutorials and teaching programs, the naming of variables are too general sometimes so it makes it difficult understanding the connections between parts. For example there is an interface named shape and then we name shape as the variable a function receives and then we create a shapes slice and then we do "for _, shape := " so this makes it difficult to understand which ones are connected and not. When studying I tent to create random local names for variables such as "for _, shapeasdf :=" and this helps me focus more.
@MrAverageViewer
@MrAverageViewer 3 жыл бұрын
Tim, thanks for such a great explanation of Go Interfaces! I searched through several videos & articles, and your style of explaining it finally make it clear!!
@joelmontesdeoca6572
@joelmontesdeoca6572 3 жыл бұрын
Great series bro. I used it to remember the syntax but now I realized I want to give Rust a try. lol You are a great teacher/presenter, keep it going!
@raffiquemuir3887
@raffiquemuir3887 2 жыл бұрын
You have a great teaching style... getting to the point while giving examples 👍
@BanibrataDutta
@BanibrataDutta 3 жыл бұрын
Great tutorial series on Golang. I saw many of your videos while reading the Tour of Go, and few things became clearer on watching these videos. Next is to go for Effective Go. Only thing which I missed in your series is the coverage of Concurrency. Perhaps, if you come back to visit this topic some day in future.
@zahidulislam2068
@zahidulislam2068 2 жыл бұрын
Good video, Tim; impressed
@aiyushg1769
@aiyushg1769 4 жыл бұрын
Hey, Tim, are you thinking of continuing the playlist?
@Philantrope
@Philantrope 3 жыл бұрын
Thanks for demystifying interfaces. Hope for more Go tutorials from you!
@andrewpagan
@andrewpagan 3 жыл бұрын
This cleared a lot up for me thank you so much!
@hangchen
@hangchen 3 жыл бұрын
Sup 4 hour ago guy!
@xphis0528
@xphis0528 2 жыл бұрын
Great tutorial!!! Thanks!
@lakshaysharma1305
@lakshaysharma1305 2 жыл бұрын
Please post videos on concurrency, go routines and channels, you really explain very well.
@IlyesCodes
@IlyesCodes 7 ай бұрын
Thank you for the great video, but one crucial remark, in Go structs are not objects and cannot be referred to as objects they are like an envelope of defined data. Thank you
@j0chong
@j0chong 4 жыл бұрын
looking forward to the rest of the series!
@bhuvanpatel5262
@bhuvanpatel5262 3 жыл бұрын
thank you so much for golang series and making free😊👍
@shhhhhhKoiHai
@shhhhhhKoiHai 4 жыл бұрын
Your way of teaching is amazing. Waiting for concurrency concepts tutorials.
@PourdadDaneshmand
@PourdadDaneshmand 3 жыл бұрын
Hello Tim, Nice tutorial and very helpful. For meet with golang in basic level, I think this tutorial is perfect.
@prithviprakash1110
@prithviprakash1110 3 жыл бұрын
Great explanation, thank you for this!
@ffzz42
@ffzz42 3 жыл бұрын
3:11: "the point of interface is that any type/struct that implements the method defined in the interface is considered of that interface" me: wait, you mean any struct that implements the interface must implement the methods defined in the interface right? just like in java or c#? *sees the syntax* me: WTF
@Babe_Chinwendum
@Babe_Chinwendum 2 жыл бұрын
Thank you so much, really appreciate this
@zamboz01
@zamboz01 4 жыл бұрын
Will there be goroutines and channels?
@2cmarx
@2cmarx 2 жыл бұрын
Loved it. Thanks!
@Somethingsomethinglol
@Somethingsomethinglol 3 жыл бұрын
Great explanation - thanks!
@SarfarazAhmad89
@SarfarazAhmad89 2 жыл бұрын
rect area :D jokes apart you are an amazing teacher.
@dreamerpreethu5302
@dreamerpreethu5302 2 жыл бұрын
I understood the pointer concept and the use of pointer in normal variables and in methods , but I didn't understand the use of pointer in this interface. Can you please explain that why we want to pass the adress while using interface
@MikeJones-br5pl
@MikeJones-br5pl 2 жыл бұрын
bro great video and explanation
@hdrstudio8921
@hdrstudio8921 3 жыл бұрын
Finally I found, what is the reason for using interface..
@li-xuanhong3698
@li-xuanhong3698 3 жыл бұрын
Hope this series can be follow up ~
@MisterCloud6789
@MisterCloud6789 4 жыл бұрын
Yeah Tech With Tim is the best
@gnul
@gnul 3 жыл бұрын
Did you stop going to go with go? Access mod*** I mean naming, asynchronous stuff with e.g. goroutines, and project structure, file structure, conventions and so on is missing, would love to see more. :)
@cool8888rox
@cool8888rox 3 жыл бұрын
Very edifying. Thank you :)
@yuripiffer589
@yuripiffer589 3 жыл бұрын
Great video! Thanks
@salmaan6094
@salmaan6094 4 жыл бұрын
When will we see more golang videos @Tech With Tim? We are waiting eagerly for more videos.
@adilfarq3784
@adilfarq3784 Жыл бұрын
I completed Tutorials videos :). Then What to do Where do I implement this. How to implement into projects
@slayeeerrr
@slayeeerrr 2 жыл бұрын
This example for "interface{}" is overused in most videos and articles with the same variable, function, and struct names. Is it a copy & paste as well or what?
@slayeeerrr
@slayeeerrr 2 жыл бұрын
You should at least demonstrate the flipside that "interface{}", as it is the base type of any datatype in Golang.
@antisony2008
@antisony2008 3 жыл бұрын
I still don't fully get the point of interfaces. Why would I want to create an interface if I already added the area() method to the rect and circle structs?
@TechWithTim
@TechWithTim 3 жыл бұрын
You would create an interface so that you can treats all objects that implement the interface like the an instance of the same struct. For example, your function can only take an object of type circle or square if you don’t use an interface. By having an interface you can take a “shape” which means the square and the circle get treated the same, so long as they implement the interface. So you have access to the same method names on each object. Hope that helps!
@MustbeTheBassest
@MustbeTheBassest 3 жыл бұрын
Great video! It feels like GoLang's interface is a convenient form of abstraction? It feels similar to defining a new class in python.
@SriRam-fk9fq
@SriRam-fk9fq 3 жыл бұрын
Good one!
@krtirtho
@krtirtho 3 жыл бұрын
"JavaScript doesn't need/have interfaces" *Typescript enters in the room*
@RAHULROY-zo6by
@RAHULROY-zo6by 4 жыл бұрын
Hii Sir, I have learnt progamming in golang, How to start development side learning in go for building microservices, Rest . Can you please guide me any course or content
@robertpearce6642
@robertpearce6642 3 жыл бұрын
Thanks for the info
@webmaster246
@webmaster246 2 жыл бұрын
Well explained, thanks , you owned my vote & subscribe cheers !
@FPChris
@FPChris 2 жыл бұрын
Now how does generics alter this?
@AmolGautam
@AmolGautam 4 жыл бұрын
Thank you so much. it helped me a lot
@imteyazraja5613
@imteyazraja5613 4 жыл бұрын
Great tutorial Tim.. Really liked the way you explain.. Can we more advanced tutorial on golang? Rest / grpc API in golang... Thanks
@amankaushik5833
@amankaushik5833 4 жыл бұрын
Hi, Tim, I have been following your channel for a time now, I am a 13-Year-Old and wanted to know that how do you practice python because I still come across code that is written programmatically also which framework do you use for app development?
@craiglobo2165
@craiglobo2165 4 жыл бұрын
Kivy is generally what he uses with python app development or otherwise like Java based android programing
@wanderingwanderer1016
@wanderingwanderer1016 4 жыл бұрын
Kivy is used to make mobile apps with Python. If you want to build a web app, you can use something like Django, Flask or Fast API
@shivangitomar5557
@shivangitomar5557 3 жыл бұрын
Amazing!!!
@saurabhjain6745
@saurabhjain6745 2 жыл бұрын
can you please make videos on golang rest api's and advance golang stuff like channels, go routines
@TheF00L-h4d
@TheF00L-h4d 3 ай бұрын
Leave it to Tim to take you from zero to programming a chip-8 emulator in a day
@marcc1950
@marcc1950 Жыл бұрын
What about empty interfaces?
@ko-Daegu
@ko-Daegu 2 жыл бұрын
I can think of multiple issues this way we don't know what func got what interfaces thou as func doesn't implement it (for example like extending an interface in java)
@MarKac9090
@MarKac9090 4 жыл бұрын
where to download this code?
@dipanjanghosal1662
@dipanjanghosal1662 Жыл бұрын
You should do udemy courses. You have a knack for teaching.
@WLockIV
@WLockIV 4 жыл бұрын
Thank you for the lesson! I do wish implementing interfaces was more explicit in Go
@hemantpreetsingh2752
@hemantpreetsingh2752 2 жыл бұрын
thank you
@jacobstech1777
@jacobstech1777 3 жыл бұрын
could you please continue?
@caleb7327
@caleb7327 3 жыл бұрын
Please make a gui-toutorial.
@thachnnguyen
@thachnnguyen 9 ай бұрын
1. It'd help to organize before making the video (stop repeating yourself), 2. references are not the same as pointers. One last thing: the pointer has that C-stigma thing. Unless necessary, don't bring it up. Modern languages don't need to talk pointers all the time.
@alfabinomial6183
@alfabinomial6183 3 жыл бұрын
thanks
@noeldacosta7621
@noeldacosta7621 Жыл бұрын
This is great but you didn't cover scopes.
@sumayyahassan6682
@sumayyahassan6682 2 жыл бұрын
sheldon cooper?
@derrick7968
@derrick7968 3 жыл бұрын
Hi Tim, You are the best man, I love your explanation. keep going.
@mohamadkenway5140
@mohamadkenway5140 4 жыл бұрын
do u start golang pro course ? is this last video ?
@philippurwoko
@philippurwoko 4 жыл бұрын
Please create open ai gym tutorial next time
@abhishek7969
@abhishek7969 4 жыл бұрын
👍
@frenzygamer907
@frenzygamer907 4 жыл бұрын
2nd
@TheWorpler
@TheWorpler 2 жыл бұрын
very nice explanation.
Golang Tutorial #20 - Structs and Custom Types
18:49
Tech With Tim
Рет қаралды 52 М.
Advanced Golang: Channels, Context and Interfaces Explained
22:17
Code With Ryan
Рет қаралды 127 М.
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
A Practical Example How To Use Interfaces In Golang
14:42
Anthony GG
Рет қаралды 30 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 25 М.
Golang Tutorial #19 - Pointers & Derefrence Operator (& and *)
20:35
Master Golang with Interfaces
21:54
Kantan Coding
Рет қаралды 19 М.
Why #Go Interfaces? / #Golang Interfaces Tutorial
9:41
defer panic
Рет қаралды 39 М.
This is your last video about Golang Structs!
15:57
Flo Woelki
Рет қаралды 10 М.
Интерфейсы в Golang
14:22
Gopher School (Уроки по Golang)
Рет қаралды 49 М.
The Go Language: What Makes it Different? - Jay McGavren
44:47
ChariotSolutions
Рет қаралды 62 М.
Why I’m Switching To Go in 2024
8:10
Awesome
Рет қаралды 97 М.
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН