A practical tour of stack vs heap in Go, how escape analysis works, how to inspect compiler decisions with -gcflags='-m', and how to connect them to generated assembly.

@SilentGopher
Backend development blog.
A practical tour of stack vs heap in Go, how escape analysis works, how to inspect compiler decisions with -gcflags='-m', and how to connect them to generated assembly.
How to stop passing boolean flags and empty strings to your Go constructors. A deep dive into the Functional Options pattern — when to use it at constructor level vs method level, and when not to use it at all.
Structural, contractual, temporal, functional and deployment coupling explained with real Go code. Includes a migration war story, async events pattern, and a decision table for choosing the right coupling level.
Real production Go code organized by component, not layer. Contracts, dependency injection, error boundaries, and the AppContainer pattern — with the actual bugs we shipped and the lessons they taught us.
Stop copy-pasting Clean Architecture diagrams. This is how it actually works in production Go projects — with real failures, component boundaries, and contracts that let your team move fast without breaking things.
Stack, Heap, Escape Analysis
A practical tour of stack vs heap in Go, how escape analysis works, how to inspect compiler decisions with -gcflags='-m', and how to connect them to generated assembly.
Functional Options Pattern
How to stop passing boolean flags and empty strings to your Go constructors. A deep dive into the Functional Options pattern — when to use it at constructor level vs method level, and when not to use it at all.
Coupling and Cohesion
Structural, contractual, temporal, functional and deployment coupling explained with real Go code. Includes a migration war story, async events pattern, and a decision table for choosing the right coupling level.
Package by Components
Real production Go code organized by component, not layer. Contracts, dependency injection, error boundaries, and the AppContainer pattern — with the actual bugs we shipped and the lessons they taught us.
Clean Architecture
Stop copy-pasting Clean Architecture diagrams. This is how it actually works in production Go projects — with real failures, component boundaries, and contracts that let your team move fast without breaking things.