Better HN
topnewbestaskshowjobs
Log inSign up

_256

42 karma · joined May 21, 2021 (5y ago) · 4 submissions

Submissions

comment 1y ago · link · parent

I don't care that much about defining a minimal interface or whether the producer or consumer defines it. the pain point for me is when you start passing interfaces up and down the stack and they become impossible to trace back to the concrete type. If you take an interface you should use it directly and avoid passing it down to another one of your dependencies. This keeps the layers you need to jump through to find the concrete type to a minimum.

comment 4y ago · link · parent

heres a good resource https://carta.com/blog/exercising-stock-options/.

comment 4y ago · link · parent

This is a simple LRU cache I made to get my hands on generics which is available in the go 1.18 beta. Feedback is welcome :-)

4.

Show HN: A LRU cache using go generics(github.com ↗)

57 points · by _256 · 4y ago · 11 comments