Wanna Builders

For a quote form you don’t need any of it. A form, your price table, and a person sending the quote. Add a model when the typing starts to hurt.

The person is the most reliable component, yes.

Same with every client I’ve had. Eight out of ten “we need an agent” conversations end in a cron job, a prompt and a table.

And the other two end in a cron job, a prompt, a table and a person who reads the output.

The person is the most reliable component, yes.

That asymmetry is real and I don’t think most builders price it in.

I now ask clients “what happens when it’s wrong, and who hears about it?” before I quote anything customer-facing. It kills about a third of the projects, which is good.

Five wrong out of 140 is better than most people manage on a Friday night, though. Did you measure the human service the same way?

No, and that’s fair. But a person getting the address wrong gets forgiven. The machine getting it wrong is a story they tell their neighbours.

That asymmetry is real and I don’t think most builders price it in.

I now ask clients “what happens when it’s wrong, and who hears about it?” before I quote anything customer-facing. It kills about a third of the projects, which is good.

Measuring the old way first is the step everyone skips. I ask clients to count errors for two weeks before we change anything. Most can’t, which tells you something.

One SQLite file is the right size for this. Do you back it up anywhere?

Nightly copy to the shop’s cloud drive, and a USB stick my brother takes home on Fridays. Belt and braces.

His blog, honestly. He posts most days and tests things himself: https://simonwillison.net/

Same. The first three months with any client are net negative. I tell them that up front now.

Any builder who can’t read SQLite isn’t someone you want building your dashboard.

Ha. Fair, but I’ve met plenty of them.

Turn on WAL mode and set a busy timeout. Writers wait their turn for a few milliseconds. At your volume you will never see it.

PRAGMA journal_mode=WAL;
PRAGMA busy_timeout=5000;

And don’t put the file on a network drive. That is the one way people actually manage to corrupt SQLite.

SQLite, without much doubt. One file, one user, backups are a file copy. 900 orders a month is nothing; you’d need to be a thousand times bigger before it matters.

sqlite3 shop.db ".backup /backups/shop-$(date +%F).db"

That line on a nightly cron is your whole backup plan.

That line alone is a good argument. What about when the agent and a script write at the same time?

Turn on WAL mode and set a busy timeout. Writers wait their turn for a few milliseconds. At your volume you will never see it.

PRAGMA journal_mode=WAL;
PRAGMA busy_timeout=5000;

And don’t put the file on a network drive. That is the one way people actually manage to corrupt SQLite.

Counterpoint: if you ever hire someone to build a dashboard on it, Postgres is what they’ll know. That’s a real cost.

Any builder who can’t read SQLite isn’t someone you want building your dashboard.

Ha. Fair, but I’ve met plenty of them.

Useful if you build for more than one client. Write the connection to their stock system once and any assistant can use it.

That’s why I posted it. I’ve written the same booking-system connector four times for four tools.

“Look at your data” is advice everyone agrees with and almost nobody follows. Me included, until something breaks.

Underrated idea for small tools. A quote, a job or a print order as one file you can email, open and query.

A month is a good rule. You find out what the process actually is, not what they think it is.