This is why Go Channels are awesome

  Рет қаралды 15,318

Web Dev Cody

Web Dev Cody

Күн бұрын

Пікірлер: 41
@whitefluffycloud
@whitefluffycloud 8 ай бұрын
I'm coming from the JS world (feeling the same fatigue you mentioned in another video) and also dabbling with Go on my spare time. Hoping to see more great Go content from you as you learn and explore the language!
@TheFocusedCoder
@TheFocusedCoder 8 ай бұрын
Wow The fact Go allows you to bypass a million third party libraries is great. These videos are really helpful
@colbyberger1881
@colbyberger1881 8 ай бұрын
This is the reason why I spent the past year only coding in Golang....it's just such a nice experience.
@CrawlingPanther
@CrawlingPanther 8 ай бұрын
Love your videos man they've been very helpful the last 18 months as I relearn web dev. Nervous about the job landscape for junior devs but either way, channels like yours make it seem more fun than anything else.
@adilsonlc
@adilsonlc Ай бұрын
Straight to the point. Really good video, with zero bushing around the bushes.
@psydook
@psydook 8 ай бұрын
Go is Go-ing over my head xD i tried rust too but the learning curve is steep.
@prasanthrv4850
@prasanthrv4850 8 ай бұрын
Really like your GO related videos, what kind of resource you are using to learn Go and kubernetes, is it youtube, udemey course or just documentation?
@WebDevCody
@WebDevCody 8 ай бұрын
chatGPT and experimenting by just building stuff
@dhaw
@dhaw 8 ай бұрын
Go mention !!!
@SeibertSwirl
@SeibertSwirl 8 ай бұрын
Doin great babe ❤
@arsenyburekhin8462
@arsenyburekhin8462 14 күн бұрын
Once we enter the channel into the Reader function, why are we still dealing with the WaitGroup variable wg and wait for its Done? can we sync up the main function other than waiting for wg?
@mamun001
@mamun001 4 ай бұрын
Thank you
@wlockuz4467
@wlockuz4467 8 ай бұрын
Would be awesome if you could do a video on error handling in Go, I hear it has a really good primitives for it.
@richienguyen2703
@richienguyen2703 8 ай бұрын
I have not learned Go but are WaitGroup and Channel like Thread pool and (un)bounded buffer in traditional terminologies?
@WebDevCody
@WebDevCody 8 ай бұрын
Sounds accurate i think? Ask ChatGPT
@yassine-sa
@yassine-sa 8 ай бұрын
The wait group is almost exactly like semaphores
@qizhang5749
@qizhang5749 8 ай бұрын
You would use a buffered channel to implement semaphores in go. That way you can spin up as many goroutines or threads as you've allocated the buffered channel
@mohammed.haydar
@mohammed.haydar 8 ай бұрын
I've a general question. Would you say that Go is a great place to place my time on compared to Rust or is it the opposite way around? * I don't have a specific goal yet by learning a new language.
@WebDevCody
@WebDevCody 8 ай бұрын
I’ve never used rust, but if you want to actually be productive and build something real, I’d pick go. If you just want to learn new stuff, rust seems fine
@coffeeintocode
@coffeeintocode 8 ай бұрын
You should touch on races as well. Go routines are amazing but they have sharp edges that hurt 😂
@WebDevCody
@WebDevCody 8 ай бұрын
as in two go routines accessing the same variable which requires a mutex? is that what you mean by races?
@qizhang5749
@qizhang5749 8 ай бұрын
There's alot of concurrent primitives to avoid race conditions like atomic.Value or atomic.Pointer and sync.Map and as you mentioned using mutex on shared resources. It's really not hard to avoid. Go also has a race flag that helps you detect potential race conditions
@siya.abc123
@siya.abc123 8 ай бұрын
Theo: GO channels suck! Cody: GO channels are awesome!
@WebDevCody
@WebDevCody 8 ай бұрын
oh, did he recently say channel suck?
@xpamamadeus
@xpamamadeus 8 ай бұрын
@@WebDevCody he didnt say they suck but they arguing about why they work way they do. like they are nil if u dont put anything into them etc... u are really fast learner and doing great in Go!
@qizhang5749
@qizhang5749 8 ай бұрын
He was just saying there were some weird behaviors with channels like closed channels return 0 values and panic when you write to closed channels. He said it would have made more sense for channels to return an error
@Mirislomovmirjalol
@Mirislomovmirjalol 8 ай бұрын
would be very interesting your opinion about fiber framework which gives typescript developers easily get start
@codinginflow
@codinginflow 8 ай бұрын
I thought you were referring to Go KZbin channels lol
@vincentverweij1053
@vincentverweij1053 8 ай бұрын
One of your previous videos you mentioned that public methods in Go start with an uppercased character. Why is the make method with lowercase, isn't that a public method of some sort? It is not defined in your code, and still you can access it. Something totally different, or something missing the convention?
@WebDevCody
@WebDevCody 8 ай бұрын
That’s a built in global. No clue why they decided to make it lowercase
@wlockuz4467
@wlockuz4467 8 ай бұрын
If I had to interpret it with what I already know, can I say that this is similar to an event loop?
@divyamjoshi5782
@divyamjoshi5782 6 ай бұрын
What theme is that
@WebDevCody
@WebDevCody 6 ай бұрын
Bearded theme stained blue
@lili1223a
@lili1223a 3 ай бұрын
Is it really a round robin?
@sangwoohan1177
@sangwoohan1177 8 ай бұрын
What’s so special (beyond the cleaner syntax) about Go channels versus queues in Python and Java?
@WebDevCody
@WebDevCody 8 ай бұрын
I think queues are more of a data structure in python and java, but channels is a communication method built into go (that kind of acts like a queue)
@mohaamiin8767
@mohaamiin8767 8 ай бұрын
what do u think about golang backend frameworks which one do u want to learn or want to use
@WebDevCody
@WebDevCody 8 ай бұрын
idk I'm just using the built in net/http
@pepperdayjackpac4521
@pepperdayjackpac4521 8 ай бұрын
go is so great, u really dont need a framework
@constantinamundsen5487
@constantinamundsen5487 13 күн бұрын
Goroutines do NOT run on different threads. This is concurrency, not parallelism
@thoriqadillah7780
@thoriqadillah7780 8 ай бұрын
Not only go i fast, but also really fast and great. Using express + typescript eating my machine. 8 gb of ram is barely capable of doing the development
Goroutines Crash Course (Mutex, Channels, Wait Group, & More!)
15:42
Golang Channels Or Wait Groups? Let Me Explain.
18:32
Anthony GG
Рет қаралды 26 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 17 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
Is TypeScript (NodeJS) Faster than Go?? |  A server comparison
9:54
ThePrimeagen
Рет қаралды 225 М.
The BEST Tool to Structure Golang Projects
7:58
Melkey
Рет қаралды 39 М.
Lucia is gone, this is what I am using for auth now
9:58
Nev the Dev
Рет қаралды 2,8 М.
Python vs Rust vs C++ Speed Comparison
1:50
Mial Skywalker
Рет қаралды 121 М.
My Initial Impresson Of Go
12:39
TheVimeagen
Рет қаралды 102 М.
Why I'm learning Go
21:35
Web Dev Cody
Рет қаралды 69 М.
A subscriber said my website was slow, so I improved it
5:35
Web Dev Cody
Рет қаралды 21 М.
Why I’m Switching To Go in 2024
8:10
Awesome
Рет қаралды 90 М.
Learn Go context from code and its original blog post
6:45
Bitwise Man
Рет қаралды 10 М.