How to organize your elixir programming supplies

Elixir takes up very little physical space, so “supplies” here means the small set of things that keep a project moving: a place for experiments, a place for credentials, a snippet file, and a habit for naming things. Organise those once and the daily friction mostly disappears.

Separate the three kinds of folders

Most clutter is conceptual, not physical. Keep three top-level folders and never mix them: learning for tutorials you are following, experiments for code you may delete, and projects for work you intend to finish. When a folder in experiments starts to matter, move it — do not leave it there and start caring for it in place.

Inside each project, let mix own the layout. Do not reorganise lib by hand for the first month; the generated structure is teaching you where things belong.

Give credentials a home that is not code

API keys and database passwords must not live in files you commit. Use environment variables read at startup, keep a .env.example listing the names with placeholder values, and make sure the real file is ignored. Check with git status before the first push, every time.

  • One password manager entry per project, not per key.
  • Rotate any key that ever appeared in a screenshot.
  • Never paste a live token into a chat or an issue tracker.

Keep a snippet file

Every time you look up the same thing twice, paste the working version into one document with a one-line note. A supervisor skeleton and a test setup block are two entries that save a surprising amount of time. Keep it flat and searchable rather than nested in folders you forget.

Reread it before starting something new. Old snippets are also a record of what you used to get wrong, which is more useful than it sounds.

Name your experiments

Use a date prefix and a verb: 2026-03-json-parser. Random names guarantee you will not know what is inside in a month, and then you keep the folder out of guilt. A dated folder is safe to delete after a year, and that is a feature.

Physical supplies and an end-of-day habit

A second screen helps more than any peripheral, but it is not required. Beyond that: a notebook for sketching data shapes, a comfortable keyboard, and a charger in the bag. Keep cables labelled if you swap machines, and keep one spare USB cable in a known place — the search is always for the cable, never for the code.

At the end of a session, write one line about what you were doing and what comes next, then close the laptop. The note removes the ten minutes of re-reading that otherwise starts every session. Organising is not about a perfect desk; it is about not paying the same setup cost twice.