INDEPENDENT NOTES ON CODE & THE WEBGO · HTML · CSS
small systems
The notebook / All

The guide library

Nine focused guides. Real examples, a manageable scope, and a place to go next.

Go

A small HTTP server, without a framework

Start with the standard library. Add a route, return JSON, and give every request a sensible time limit.

3 min read
Go

Errors that keep their context

Return useful errors from the place where something failed, and handle them where a decision can be made.

3 min read
Go

Test an HTTP handler without opening a port

Use httptest to verify the contract a caller sees: status, headers, and response data.

3 min read
HTML

A page structure that does some of the work for you

A practical document outline with landmarks, headings, and links that still works before you add CSS.

3 min read
HTML

Forms people can actually complete

Labels, input types, and useful validation are a better starting point than a clever floating placeholder.

3 min read
HTML

Images that fit without jumping around

Set dimensions, describe the useful content, and let the browser pick an appropriately sized source.

3 min read
CSS

A responsive grid with fewer breakpoints

Let the available space decide the number of columns, then use media queries for the exceptions.

3 min read
CSS

Make the text comfortable first

Line length, line height, and spacing do more for a reading page than a long list of fonts.

3 min read
CSS

Focus states belong in the design

Make keyboard navigation visible without making every mouse click look like an error.

3 min read