[-] FunctionalOpossum@programming.dev 4 points 7 months ago* (last edited 7 months ago)

The general idea is to not test things that need to be mocked, keep all logic out of those and keep them at the edges of the application. Then you test the remaining 90% of your code which would ideally be pure functions that don't need mocks .

The remaining 5% can be integration tests which doesn't care about DI.

In reality this doesn't always work, because sometimes it's better to write a complex query with logic and let your database do the processing.

[-] FunctionalOpossum@programming.dev 3 points 10 months ago

This is the closest job that I could think of to an open source advocate.

[-] FunctionalOpossum@programming.dev 1 points 11 months ago

What's your background? I've mainly used language with huge standard libraries and Go's intentionally small standard library feels very unergonomic sometimes (I miss sets).

Elixir feels very ergonomic to me, but a lot of programmers struggle with the lack of typing.

FunctionalOpossum

joined 1 year ago