Articles
- Functional Options Pattern: When It Helps and When It Doesn'tOct 2026Functional options keep the constructor stable as optional configuration grows, while providing defaults and validation in one place. This pattern suits APIs with many independent options, but only adds indirection if configuration is minimal or all fields are required.
- Go Interfaces: Implicit Implementation and Practical DesignOct 2026Go interfaces are satisfied implicitly by types with a matching method set, without an implements declaration. Small interfaces on the consumer side keep dependencies narrow, while the method set difference between T and *T determines which value satisfies the contract.