Fragments

Brief thoughts, kept along the way.

An open question

When does an interface start to feel like a place?

Perhaps when its small details agree with one another, even when nobody is looking directly at them.

On the desk

Three things worth returning to tomorrow.

Item Next step
Note Reread
Sketch Simplify
Question Keep open

A small tool

Keep the useful values. Let the empty ones go.

const notes = ['first', null, 'next', undefined];
const kept = notes.filter((note) => note != null);

console.log(kept); // ["first", "next"]

A margin note

Leave room for the next thought.

A note to myself, written at the edge of an unfinished page.

One change at a time

A small change, a pause, another look.

Keeping the comparison simple makes it easier to notice what actually improved.

First light

The room was still dark when the first line finally made sense.

Sometimes the useful part of a night of work is knowing what to leave for morning.

02 · Code only, with indentation

const signal = {
  source: 'matrix',
  preview: true,
};

function receive(message) {
  if (!message) return;
  console.log('received', message);
}

receive(signal);

03 · Text, image and code

A green trace from a late-night terminal. This note combines prose, an image and code.

Pixel character wearing headphones

const signal = {
  source: 'matrix',
  preview: true,
};

function receive(message) {
  if (!message) return;
  console.log('received', message);
}

receive(signal);

10 · Three images in one note

Three images: wide, square and portrait. The homepage previews the first; the feed keeps all three.

Wide

Square

Portrait

11 · Inline code and prose

Run npm run dev, then inspect fragment.preview. The path src/content/fragments/en/ should wrap naturally.

12 · Raw HTML code block

const x = 1;
  console.log(x);

// indentation and an empty line stay visible

Comments