Using Go’s Standard Maps and Slices Packages
Go 1.21 added two generic helper packages to the standard library: slices and maps. Before that, these utilities lived in golang.org/x/exp, an experimental module where the Go team previewed features…
Practical guides for developers. Ideas for building and running software.
Go 1.21 added two generic helper packages to the standard library: slices and maps. Before that, these utilities lived in golang.org/x/exp, an experimental module where the Go team previewed features…
When you write Go code that checks whether a value exists, fetches a value by key, or removes duplicates from…
Terraform modules are reusable packages of infrastructure configuration. A module is a folder of .tf files that declares resources such…
An AI agent is software that decides what to do next and then does it, usually by calling external APIs…
Copying a JavaScript object is easy to get wrong. A shallow copy such as { ...original } copies the top…
If you have written more than a few lines of Rust, you have seen a borrow checker error. The borrow…
When you add an open source library to your product, the code works today. The real question is what happens…
asyncio is Python's library for running concurrent code with async and await. Calling a coroutine function defined with async def…
A webhook is an HTTP request a service sends to your server to tell you something happened, such as a…
"database is locked" is SQLite's error for a concurrency conflict: another connection holds a lock that your statement needs. In…
A free tier needs a budget. Start with the variable cost of one unit of usage. Decide how much you…
A browser test that saves data has to answer one question: when is the save actually done? The page sends…
A regression is a bug that appears after a change and did not exist before. You notice it when a…
When a Docker container stops with exit code 137 or keeps restarting, the Linux kernel has likely killed a process…
Suppose you are building a documentation assistant. Users ask questions about your product's API, and the assistant must answer from…