How to organize your web development supplies

There is a folder called final-final-2 sitting on an enormous number of laptops, and inside it are four copies of one stylesheet with slightly different edit dates. That mess is not laziness; it is what happens when a tool offers no fixed place to put anything. A small amount of structure fixes almost all of it.

One folder per project, with a README at the root

A project is a folder, not a scattering of files on the desktop. Inside it, keep the handful of things every project needs: the source code, an assets directory, a README, and a way to run it. If a project has a build step, the built output goes in a directory you never edit by hand — and if that rule feels fussy, remember that hand-editing build output is the same mistake as editing a photocopy.

The README earns its place the second time you return to a project after a month away. Three short sections are enough: what this is, how to run it, and anything unusual about it. Future you will not remember which command starts the dev server.

Name files so that sorting helps you

Consistent lowercase names with hyphens, no spaces, and a date only where the date is genuinely meaningful. Avoid the suffixes that mean nothing a week later: new, old, final, test2. If you want to keep an old approach, that is what version control is for — a folder of abandoned copies is a symptom of not trusting your history.

Keep a strict separation between things you write and things you download. Vendored libraries and assets belong in their own directory, clearly named, so you can update or remove them without hunting through your own files.

Collect the fragments you actually reuse

The supplies of web development are mostly text, and text is cheap to store but hard to find. Build two small collections and keep them current:

  • Snippets — the meta viewport tag, a form reset, an accessible skip link, a responsive grid you trust. Store them in your editor’s snippet feature or a single file you can copy from.
  • References — links to the documentation pages you keep returning to, saved with a note about why. A bookmarked MDN page with no note becomes an unvisited tab.

Prune both occasionally. A snippets file with forty entries you cannot remember is worse than ten you use weekly.

Keep secrets out of the project entirely

API keys, database passwords, and tokens belong in environment variables, loaded from a file that is excluded from version control. Keep a committed example file listing the variable names with placeholder values, so a new machine knows what to supply without exposing anything. Rotating a leaked key is annoying; rewriting a git history after committing one is worse.

Write a learning log you will reread

A single dated file where you note what you tried and what broke turns scattered tutorials into a record of your own reasoning. Include the error message verbatim — it is searchable later in a way that “the build thing failed” is not.

Spend an hour setting this up, then stop organising and build something. Structure exists to keep the work moving, not to become the work.