Mahib's Margins

Command Palette

Search for a command to run...

API

  • November 1, 2025

    go
    Revisiting interface segregation in Go

    Apply SOLID's Interface Segregation Principle in Go with consumer-defined contracts. Learn why small interfaces and implicit implementation matter.

  • March 6, 2024

    go
    Dysfunctional options pattern in Go

    Discover a simpler alternative to functional options: method chaining with builder-style configuration that's 76x faster and easier to understand.

  • September 5, 2023

    go
    Configuring options in Go

    Compare three Go option patterns: exposed structs, option constructors, and functional options. Learn when to use each for clean APIs.

  • August 18, 2023

    go
    Interface guards in Go

    Use compile-time interface guards to verify type conformity in Go without runtime overhead. Learn the var _ Interface = (*Type)(nil) pattern.