Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Interfaces in Go
Search
Ngalam Backend Community
July 21, 2020
Technology
0
48
Interfaces in Go
Speaker
Audi
Data Engineer at SpaceStock
Ngalam Backend Community
July 21, 2020
Tweet
Share
More Decks by Ngalam Backend Community
See All by Ngalam Backend Community
Web_Scraping_with_Scrapy.pdf
ngalambackend
0
70
Introduction to Flask
ngalambackend
0
98
Achieving API Performance and Scalability
ngalambackend
0
59
CSS in JS in action
ngalambackend
0
38
Productive Remote Working with Scrum
ngalambackend
0
56
Covid Tracker Kota Malang
ngalambackend
0
55
Supercharge Local Development with Docker
ngalambackend
1
92
Building Scalable and Flexible API by Leveraging GraphQL and BigTable
ngalambackend
1
280
Software 2.0 With Go
ngalambackend
1
40
Other Decks in Technology
See All in Technology
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
150
日本におけるデータエンジニアリングのこれまでとこれから
foursue
16
4k
検証を通して見えてきたTiDBの性能特性
lycorptech_jp
PRO
6
3.7k
チームでロジカルシンキングに改めて向き合っている話 〜学習環境と実践⽅法〜
sansantech
PRO
0
180
SPI原点回帰論:事業課題とFour Keysの結節点を見出す実践的ソフトウェアプロセス改善 / DevOpsDays Tokyo 2024
visional_engineering_and_design
4
1.8k
20240418_Google ColabにLLMが搭載されたようなのでPython x データ分析の勉強方法を考えてみる
doradora09
0
120
元インフラエンジニアに成る / Human Resources to Human Relations
bobtani
4
890
レガシーをぶっ壊せ。AEONで始めるDevRelの話 / Qiita Night 2024-2-22
aeonpeople
3
1.2k
Compose Compiler Metricsを使った実践的なコードレビュー
tomorrowkey
1
210
MLOpsの「壁」を乗り越える、LINEヤフーの Data Quality as Code
lycorptech_jp
PRO
3
120
4年前、あるじゃん老害エンジニアLT合戦に登壇、米国西海岸コンピュータ歴史博物館体験記の続編
toshi_atsumi
0
220
ここが嬉しいABAC ここが辛いよABAC #再解説+補足編
masahirokawahara
1
260
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
36
2.1k
Rebuilding a faster, lazier Slack
samanthasiow
72
8.2k
In The Pink: A Labor of Love
frogandcode
138
21k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
658
120k
Clear Off the Table
cherdarchuk
83
310k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
Done Done
chrislema
178
15k
How STYLIGHT went responsive
nonsquared
92
4.8k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Being A Developer After 40
akosma
56
580k
Transcript
Interfeces in Go
Interfeces in Go
None
What is Interface? • abstraction • hide implementation details •
contract
Why Interface? • allows multiple implementations • limits scope of
implementations
Go Interface • implemented implicitly • generally defined in consumer
• composition > inheritance
Interface Pollution
Go Proverbs on Interface • the bigger the interface, the
weaker the abstraction • interface{} says nothing • accept interfaces, return structs
Takeaways • be lazy whenever you can • refrain from
defining interface • if you need, define interface in consumer