Generic interfaces
Adding type parameters to interface types is surprisingly powerful
Adding type parameters to interface types is surprisingly powerful
Whither the weather? In another extract from the not-yet-award-winning book The Secrets of Rust: Tools, let’s write a simple API client that can tell us if it’s sweater or swimsuit season.
A function that satisfies f(-x)=f(x) for its entire domain is called an even function (also sometimes referred to as symmetric). Its graph is symmetric w.r.t. the y axis. Some examples of even functions are f(x)=x^2 and f(x)=cos(x): A function …
Quick takeaways Go in the AI era: Go is excellent for AI applications, as the built-in concurrency makes orchestrating parallel API calls much easier than languages like Python Architecture philosophy: Clean Architecture isn’t always necessary. Start simple and add layers...
#560 — July 2, 2025 Unsub | Web Version Go Weekly An Interactive Tour of Go 1.25 — Release Candidate 1 is out, RC2 is expected next week, the draft release notes already make for good reading, and things are on schedule for a...
"All Thirteen: The Incredible Cave Rescue of the Thai Boys' Soccer Team" by Christina Soontornvat - a very nice account of the unusual event that kept the world enthralled in 2018. "The Frontiersmen: A Narrative" by Allan W. Eckert - tales from the US frontie...
As your test suite grows, you need ways to toggle certain kinds of tests on or off. Maybe you want to enable snapshot tests, skip long-running integration tests, or switch between real services and mocks. In every case, you’re really saying, “Run this test only if X i...
As your test suite grows, you need ways to toggle certain kinds of tests on or off. Maybe you want to enable snapshot tests, skip long-running integration tests, or switch between real services and mocks. In every case, you’re really saying, “Run this test only if X i...
Control Go test behavior with custom flags instead of build tags or env vars. Enable integration and snapshot tests with discoverable CLI options.