About 65 results
https://rednafi.com/go/interface-segregation/ · 1 Nov 2025
Apply SOLID's Interface Segregation Principle in Go with consumer-defined contracts. Learn why small interfaces and implicit implementation matter.
https://rednafi.com/go/avoid-context-key-collisions/ · 22 Oct 2025
Master Go context keys with custom types, avoid collisions using empty structs, and learn accessor patterns for safe request-scoped values.
https://rednafi.com/go/lifecycle-management-in-tests/ · 30 Aug 2025
Master Go test lifecycle with t.Cleanup(), subtests, and TestMain. Learn per-test, grouped, and package-wide setup patterns effectively.
https://rednafi.com/go/di-frameworks-bleh/ · 24 May 2025
Dependency injection in Go doesn't need Dig or Wire. Learn why manual wiring beats reflection magic and how Go's design makes DI frameworks overkill.
https://rednafi.com/go/deferred-teardown-closure/ · 28 Mar 2025
Return teardown closures from test helpers to manage cleanup elegantly. Learn patterns for temp files, mock servers, and t.Cleanup() usage.
https://rednafi.com/go/middleware-vs-delegation/ · 6 Mar 2025
Compare middleware stacking with embedded delegation in Go HTTP servers. Learn when to override ServeHTTP for simpler request handling.
https://blog.nove-b.dev/posts/free-translation-api-minnano-auto-translate · 24 Jan 2025
マストドンのクライアントアプリに翻訳機能を追加するため、「みんなの自動翻訳」というAPIを見つけたので試してみた。 最初に実装結果 <iframe src="https://social.nove-b.dev/@nove_b/113854236337930111/...
https://rednafi.com/go/func-types-and-smis/ · 22 Dec 2024
Implement single-method interfaces with function types instead of structs. Master http.HandlerFunc patterns for middlewares, mocks, and adapters.
https://cbennell.com/posts/three-css-frameworks · 25 Nov 2024
I tested OpenProps, Bulma, and TailwindCSS while migrating to Bridgetown, and found they fall on a revealing continuum from pure CSS custom properties to all-in utility classes. Here's what I learned about each approach.
https://cbennell.com/posts/bridgetown-tailwind-kamal · 27 Oct 2024
Deploying a Bridgetown site with Kamal? Watch out for a sneaky Tailwind bug. When the jit-refresh.css file is gitignored, fresh checkouts fail silently during the build process, stripping all your Tailwind styles. Here's how to fix it with a simple esbuild...