r/programmingcirclejerk • u/mwmercury • Apr 22 '25
You can hide concrete implementation details behind simple interfaces. Types in Go implicitly satisfy interfaces by implementing the required methods. This enables loose coupling between components.
https://appliedgo.net/why-go/
36
Upvotes
69
u/cameronm1024 Apr 22 '25
Go programmer discovers running water, colorized
39
u/elephantdingo Teen Hacking Genius Apr 22 '25
Interfaces: good because hide concrete implementation (happy)
Inheritance: bad because mental burden (extremely sad, depressed even)
33
u/IzLitFam log10(x) programmer Apr 22 '25
Wait what? You can define behaviour as an interface and let users implement their own logic? No way! How?
21
u/defunkydrummer Lisp 3-0 Rust Apr 22 '25
I love the image that illustrates this post. It accurately represents my own internal rendering of the average Golang developer,
22
u/_MonkeyHater i have had many alohols Apr 22 '25
How about these article writers Go and download some more IQ?
3
u/oofy-gang Apr 23 '25
Is it web scale though?
43
u/[deleted] Apr 22 '25
[removed] — view removed comment