No video

Master Golang with Abstraction

  Рет қаралды 3,571

Kantan Coding

Kantan Coding

Күн бұрын

Пікірлер: 15
@TheMouseJerry-du1md
@TheMouseJerry-du1md 3 ай бұрын
Wow.. this is amazing video and I want to tell you I have seen so many videos on youtube on same concept(kind of) and none of them explained the way you did. i.e you were clear on who develops what, for example bringing in the real time scenario of one team developing a module/package and then how you could use them without knowing anything about the implementation. This is the by far the best video I have seen on youtube. Please keep it going. One question though, sometimes I see external packages will have Interfaces and how do we use those interfaces in our applications and when and what was the reason? also I see applications embedding structs from external packages and sometimes interfaces from external packages, can you give clarity on this or create a video to demystify this confusion please? also, if u are looking to create videos on some more topics, I would say If possible create some videos on kubernetes operator using golang, if you can or grpc videos (practical).
@kantancoding
@kantancoding 3 ай бұрын
Hey! Thank you for the kind feedback and the suggestions. Comments like these really help me to determine what type of content you all want to see. Thanks for watching 🙂
@Zmey5656
@Zmey5656 2 ай бұрын
Is the habit of using "this" from another language?
@kantancoding
@kantancoding 2 ай бұрын
It's a keyword in OOP languages like Java etc.
@vikasrathod6681
@vikasrathod6681 3 ай бұрын
can you name your vs code theme
@kantancoding
@kantancoding 3 ай бұрын
Sure, I think this one is Dracula
@jimbo0o
@jimbo0o 8 сағат бұрын
could u plz remove keyboard noise, on my nerves
@memeherp166
@memeherp166 3 ай бұрын
this is remind me of depedency injection
@kantancoding
@kantancoding 3 ай бұрын
That’s because it is dependency injection 😉
@kevinb1594
@kevinb1594 3 ай бұрын
So why even bother with an interface? Why not just make everything an imported function?
@kantancoding
@kantancoding 3 ай бұрын
I think you can get a more complete picture if you also watch my video on interfaces: kzbin.info/www/bejne/f5O7hHh9d51_iNU
@kevinb1594
@kevinb1594 3 ай бұрын
Watched it and it makes sense to me but I'd imagine any newer users wouldn't be able to follow all that since it requires understanding of databases/databases connections. I feel like this video could have been better with a second thing to demonstrate the flexibility of interfaces over functions for abstraction. For the vending machine example it still seems like a regular function would have been better choice to avoid all that boilerplate.
@kantancoding
@kantancoding 3 ай бұрын
@@kevinb1594 it actually doesn’t require understanding of db/db connections since all of the db stuff in that video is “abstracted”. That’s the point. Back on the subject of this video. The point of this video is to teach abstraction. We use the interface to define the contract. If we just use regular functions there is no boundary first of all, not to mention the code that is “abstracted” will become tightly coupled with the code that uses the methods if we remove the interface like you suggest. The above point I explain in the video but since this is a rather complicated topic… I’d suggest watching the video multiple times if you aren’t fully understanding it 😊
@kevinb1594
@kevinb1594 3 ай бұрын
@@kantancoding I guess it depends on what level of 'new' someone is. I was thinking about folks who have never actually looked into databases at all. They would have no idea that different databases have different underlying mechanisms and requirements for connecting/querying but I guess that is the hard part of teaching, you never know what gaps someone has and those of us with the knowledge/experience take these small details for granted. With that said, I appreciate the content and the effort you're putting into making these videos. Not sure if I've been rekt by JS and functional programming because I've always struggled to wrap my head around OOP concepts.
@kantancoding
@kantancoding 3 ай бұрын
I’m actually not taking those small details for granted. Leaving out details about database is intentional since like I mentioned before, you don’t need to understand that stuff to understand the topic of that video which is interfaces. Not to mention, going over database stuff will just convolute the explanation of interfaces. If you are stuck on the database stuff just replace database in your mind with something else. For example, sticking with the audio interface example I used to explain, imagine that there are multiple different microphone brands/models that you want to connect to the application. And the interface method is getSound(). As long as all of the microphones implement the method to getSound() defined in the interface.. they can connect to the app. As you can see it’s the exact same example without the databases . That’s why I’m saying the database stuff is irrelevant and therefore isn’t something that you need to understand to understand the topic of that video which is interfaces. Now back on the subject of this video. If you still can’t grasp abstraction and why I used an interface in this video, don’t get too discouraged. It is a bit of an advanced topic. Just keep trying to understand and eventually it will click. Also, nobody with extensive “knowledge/experience” is watching these videos and there’s also nothing to prove here. So you don’t need to justify your lack of understanding oop concepts or anything else. The important thing is you are actively learning 👍🙂 Anyways thanks for supporting! Hope you come to an understanding soon!
Master Golang with Composition
27:31
Kantan Coding
Рет қаралды 4,1 М.
Master Golang with Polymorphism
18:17
Kantan Coding
Рет қаралды 3,3 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 39 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 46 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 2,3 МЛН
Why I Switched from Python to Go Lang for AI Deployment
6:12
Code In a Jiffy
Рет қаралды 54 М.
learn the Go concurrency pattern that blew my mind
27:49
Kantan Coding
Рет қаралды 5 М.
Master Golang with Interfaces
21:54
Kantan Coding
Рет қаралды 11 М.
Improve Go Concurrency Performance With This Pattern
34:16
Kantan Coding
Рет қаралды 12 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,1 МЛН
Dependency Injection in Go
11:19
Adib Hanna
Рет қаралды 3,6 М.
Rust vs Go : Hands On Comparison
50:40
ThePrimeTime
Рет қаралды 219 М.
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 39 МЛН