Interfaces in Go - Discovering Behavior

  Рет қаралды 783

Matthew Sanabria

Matthew Sanabria

Күн бұрын

Пікірлер: 12
@Cspartan_1291
@Cspartan_1291 3 ай бұрын
MOM! Wake up! Matthew uploaded a new video!
@sudomateo
@sudomateo 3 ай бұрын
This is the way!
@sudomateo
@sudomateo 3 ай бұрын
Please excuse the nasally voice. I recorded this just as I was getting sick so I was a bit stuffy.
@selvamp5775
@selvamp5775 3 ай бұрын
👏👏👏
@aniellosgambato
@aniellosgambato 2 ай бұрын
I like this content. Just one thing I know this is a jus a simple example but you are not testing the SendNotification function at all here. I see that you want show how you can take benefit of interfaces to create mocks that can help during unit tests, but this is a little bit misleading on how write a good unit test. By the way I appreciate your efforts and I am waiting for other content related to Golang. B.R.
@sudomateo
@sudomateo 2 ай бұрын
Thank you! More content will be coming soon. I wasn't going to include any testing in this video at first but the I was like ah heck why not? I really wanted to show how one can implement interfaces to be used in tests rather than writing a perfect unit test. I probably should have asserted on the message to test the behavior specific to SendNotification. In the current form it's really just testing that the notifier(s) get called.
@indifferentghozt
@indifferentghozt 3 ай бұрын
Don't forget to hit that bell!
@sudomateo
@sudomateo 3 ай бұрын
Like. Subscribe. Hit the bell. Grow the beard. All the good things!
@0lange
@0lange 3 ай бұрын
Loving the go content, so clear and easy to grasp. I would pay for your courses 😆
@sudomateo
@sudomateo 3 ай бұрын
Thank you for the kind words! I'm not against creating course content, I would just need to dedicate time to creating the content and make sure it's financially accessible to everyone. I have some strong opinions on some of the course content out there that takes advantage of aspiring engineers.
@0lange
@0lange 3 ай бұрын
Fair enough :I) Also a future video suggestion: concurrency stuff (channel and mutex)
@sudomateo
@sudomateo 3 ай бұрын
@@0lange I got you! Concurrency stuff is next on the list. I ranked some suggestions based on frequency and concurrency was top 3. I'll be recording that when I'm back from GopherCon.
Go Concurrency Concepts - Goroutines, WaitGroups, and Channels
27:14
Understanding Go Context - Everything You Need to Know
18:56
Matthew Sanabria
Рет қаралды 763
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 120 МЛН
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 74 М.
The standard library now has all you need for advanced routing in Go.
13:52
Nano in Rust: A Deep Dive with Colin LeMahieu
1:44:35
Gustav Schauwecker
Рет қаралды 428
Linux CLI Crash Course
1:02:59
Matthew Sanabria
Рет қаралды 1,2 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 87 М.
OAuth2 Crash Course with Go
22:21
Matthew Sanabria
Рет қаралды 1,9 М.
Golang: The Last Interface Explanation You'll Ever Need
17:58
Flo Woelki
Рет қаралды 14 М.
Shell Scripting Crash Course
26:58
Matthew Sanabria
Рет қаралды 688
I Just Can't Wait to Be Senior - NJ Code & Coffee
48:51
Matthew Sanabria
Рет қаралды 226
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 400 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН