justforfunc #26: why are there nil channels in Go?

preview_player
Показать описание
I received a question on twitter asking if there was a good reason for nil channels other than completeness.

This is my short but intense answer to that question. I hope you enjoy it!

Рекомендации по теме
Комментарии
Автор

I love this format, short but teaches a valuable lesson.

ethangarnier
Автор

The background music at 11:24, and all the facial and body gesture from Francesc is so cute.

zhengchaodeng
Автор

That is incredibly informative. Thank you!

aareooon
Автор

channel concept is quite hard to get used to, but once get used to it, it is really awesome!

and now I learn more about channel, it feels always learning new thing ;( I doubt I can say I know channel at all... maybe this time...!

kesuskim
Автор

this is just perfect, thank you!
I demand more tutorials like this!

MrGreen-kqds
Автор

Great episode, really enjoyed the tips I learned from this short but very useful lesson

brianscott
Автор

Thanks for sharing this. It is very helpful.

rajendragosavi
Автор

Loved this episode. Please share more neat tricks with us.

ThisGuyRocksLikeCrazy
Автор

this is actually really great video! Good job man :D!

milossimicsimo
Автор

Awesome, very valuable as always, thank you for the excellent episode.

paulyeoh
Автор

Greate video! Love the short format. More code reviews please!

edwardrf
Автор

Learned something new today. Thanks Francesc! 👍

tunedmystic
Автор

I enjoyed this episode. It was short and well explained.

musale
Автор

I was interested in how you merge a variable number of channels in the "merge" function. It turns out you could solve this by using "reflect.SelectCase" and then replace the "select" statement with "reflect.Select" - maybe less efficient than when you know the number of channels beforehand, but useful where you want to add/remove channels whilst your program is running.

djthorpe
Автор

Thanks for explaining nil channel use case 😀

mrvil
Автор

@Fransesc Could you please link to the episode about the Runtime Tracer that you mentioned at #8:32 in the video description?

HerbertFischer
Автор

Awesome as usual! What's that epic audio towards the end, around 11:23? :)

mhausenblas
Автор

Owww yeah, a new just for func video!

AlbertoRestifo
Автор

Hey, I've always wondered how is dependency injection handled in Go. Can you talk about that next or point me to other material?
I've only used Java (So.. Spring/Guice and some other obscure library) which make things "simple" with annotations, but how does this work in Go?
I guess it's not that comparable to Java because there are no things like classes, but on a large system how are objects created and passed around?

Goodvvine
Автор

I see lots of post about using channels and goroutines to create pipelines but nobody ever talks about testing such pipelines

madoksback