Idiomatic Go Tells a Story - Kaylyn Gibilterra

  Рет қаралды 2,079

Gopher Academy

Gopher Academy

Күн бұрын

Пікірлер: 3
@soberhippie
@soberhippie 2 ай бұрын
I still can't get over the imperative of naming the receiver by the first letter of its name. First of all, it's much cleaner when you see a consistent name for a receiver and don't have to think about what that `t` stands for. Second, what happens if I want to rename my struct? Do I have to go over the whole file and change those letters? Why do I have to do that useless work and why do I have to put my code reviewers through the task of looking through the modified lines that didn't have to change anyway? What if there's already another var `t` in that function, especially considering that 1 letter names are considered good practice in Go? It makes me so irritated that I write youtube comments about it.
@dawnrazor
@dawnrazor 5 ай бұрын
Your comment about where interfaces needs clarification because I think what u r claiming only applies to a specific use case. If a component requires a callback then the interface has to be defined with the component. However, if the interface is for facade purposes then it can be left to the client to define
@sealoftime
@sealoftime 9 ай бұрын
Great talk, thank you! A code example would really facilitate understanding in my opinion. Majority of enterprise Go projects I've worked with look like this: ./internal ./internal/api ./internal/models ./internal/services (the actual application logic) ./internal/db Would this storytelling approach encourage the developer to put HTTP handlers, specific database queries and domain logic in one package?
Clean Up Your GOOOP: How to Break OOP Muscle Memory - Dylan Bourque
33:21
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 10 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4 МЛН
Meetup Codengage - SOLID - programação orientada a objetos - Eduardo Vendruscolo
24:29
Codengage Serviços De Tecnologia
Рет қаралды 2
Build Your Own Distributed System Using Go - Philip O'Toole
42:32
Gopher Academy
Рет қаралды 9 М.
How to test AI: Metrics
39:26
QAfeteria
Рет қаралды 122
Medicine Without Cruelty presents...The Science Behind Safety Part 1
10:49
Medicine Without Cruelty
Рет қаралды 189
Structured Logging for the Standard Library - Jonathan Amsterdam
20:06
Golang Testing for All at Scale - Brynette Stewart
8:03
Gopher Academy
Рет қаралды 845
Can ChatGPT Do My Job? - Michael Richman
7:05
Gopher Academy
Рет қаралды 684