Files
zeekayandHanzo Dev a6b1d7714b Write the guide instead of copying one
js.md reproduced Airbnb's guide and MDN prose without either notice, which is why the repo was archived rather than fixed. It is replaced by six original documents covering commits, naming, comments, architecture, TypeScript and Go, so the repo carries no attribution obligation and states the conventions the estate actually follows.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-08 12:51:16 -07:00

1000 B

Naming

Naming is the hard part, so spend the effort here rather than on the code that follows from a good name.

Name from first principles. Call the thing what it is. Prefer the academic, scientific or mathematical term the field already agreed on — ancestor, idempotent, invariant, fixpoint, projection, closure — over a coinage.

Avoid compound words. One word if one word will do. gateway, not gatewaysvc. A namespace already qualifies its members, so quasar.RoundSigner says what LuxRoundSigner was trying to say, without braiding the brand into the identifier.

One concept, one name, everywhere. A value that is org in the database is org on the wire, in the client and in the CLI flag. Two names for one thing is how they drift into two things.

A name is not a place. The address a capability answers at, the package it lives in and the store it opens are three separate facts. Renaming one does not rename the others, and a store key is never an address.