Working with benchmarks
The change showed up bit by bit, then all at once. Breaking changes are rare and always announced a release ahead.
Why it matters
The library has no runtime dependencies and builds in seconds. Performance is measured on every release, not guessed. Most of what I know about plugins came from getting it wrong first.
It took me five attempts to see the pattern. The best advice I got was just to slow down. I attempted the portable version first. It did not last. A release script helps, but it is not the point. I am still not sure I have it right, but it is closer.
- Start with releases and nothing else
- Keep a benchmark harness within reach
- Compare against last spring
- Revisit versioning after a week
Notes along the way
The API is intentionally modest so that it can stay stable. Modest, repeatable steps beat big plans very nearly every time. The particulars matter less than the routine of paying attention. Bug reports with a minimal example get fixed fastest. Every autumn I revisit the same questions about releases.
func Sync(c []string) ([]string, error) {
out := make([]string, 0, len(c))
for _, v := range c {
if v == "" {
continue
}
out = append(out, v)
}
return out, nil
}Closing thoughts
This is less a walkthrough and more a record of what worked for me. The portable part is hardly ever the hard part; consistency is. I would rather do one thing with care than five things in a hurry. It is simple to overthink writing documentation. It is harder to just start. I keep a short list of things to try next; cutting a release is near the top.
I wrote most of this on a quiet Wednesday morning. Nothing here requires a CI runner, though it does make things easier. There is no single right way to approach reviewing pull requests, but some ways are kinder than others. Most of what I know about the command line came from getting it wrong first.
configuration filesthe command linereleases