How to post about a refactor or migration on X (when users see nothing new)
By Naod Tadele · · 6 min read
Some of the most important weeks in a product's life produce nothing you can screenshot. You moved to a new database. You ripped out a homegrown auth system. You split one giant file into twenty small ones. The app looks the same as it did a month ago.
So you post nothing, and from the outside it looks like you stopped building.
That's a missed chance. Invisible work is still work, and developers on X are often more interested in how you rebuilt something than in another button. The trick is to write about it so people who don't care about your codebase still get something out of the post.
Why refactor posts are worth writing
- They explain the silence. If your feed went quiet for three weeks, a post about the migration tells people you're still here.
- They show judgment. Deciding to stop shipping features and fix the foundation is a real call. People respect it when you explain why.
- They attract other builders. Developers follow developers who share how things work under the hood.
- They set up the next post. A refactor usually makes something else possible. Post about the groundwork now, and the feature it unlocks has a story later.
Find the angle before you write
"Refactored the billing module" is a commit message, not a post. Before you write, answer one of these questions:
- What was hurting? The bug that kept coming back, the deploy that took forever, the file nobody wanted to touch.
- What does it unlock? The feature you can now build, or the speed you can now ship at.
- What did you learn? A mistake in the old design, a tool that surprised you, a plan that didn't survive contact with real data.
- What did it cost? Time, a rollback, a weekend. Honest costs make the post believable.
Pick one. A refactor post that tries to cover all four turns into a blog post squeezed into a tweet.
The structure that works
- The before. One line on what the old setup was and why it was a problem.
- The change. What you did, in plain words. Name the tools if they matter.
- The result. What's better now, for you or for users.
- One detail. A surprise, a number from your own logs, or a mistake. This is what makes it worth reading.
Example posts
These are for Nightshift, a fictional tool that writes incident summaries for on-call engineers. All details and numbers are made up for the example.
The pain story:
Spent two weeks on Nightshift and shipped zero features. Every summary was built by one 1,400 line function. Every bug fix broke something else. Now it's six small steps you can test on their own. The next feature took a day instead of a week.
The migration:
Moved Nightshift from SQLite to Postgres this weekend. SQLite was great until two workers tried to write at once during a busy incident. The migration took about an hour of downtime I planned and three hours I didn't. Lesson: test with real data, not the seed file.
The unlock:
Boring week on the outside: rewrote how Nightshift stores incident timelines. Why it matters: timelines can now be edited after the fact. That's the most requested thing we've never been able to build. Shipping it next week.
The deletion:
My favorite pull request this month removed more code than it added. Nightshift had three ways to send a Slack message. Now it has one.
Mistakes to avoid
- Jargon with no translation. "Moved to an event sourced architecture" means nothing to most readers. Say what it does.
- Posting the diff stats alone. Lines added and removed are trivia without the reason behind them.
- Pretending it was smooth. If the migration broke something, say so. People trust the post that admits the rough part.
- Promising speed you didn't measure. Only claim "faster" if you checked. For how to share real numbers, see how to post about a performance improvement on X.
- Apologizing for not shipping. You did ship. You shipped the thing that makes the next features possible.
Turn one refactor into a few posts
Big rewrites last long enough for more than one post:
- The decision: why you're doing it now. See how to post about a technical decision on X.
- The middle: the surprise or the thing that broke.
- The finish: what's better, with one concrete detail.
- The payoff: the feature it unlocked, when it ships.
How Loudcode helps
Refactors are easy to forget because they don't feel like news. Loudcode reads your GitHub commits, pull requests and releases, so a big migration PR shows up as raw material for a draft post in your voice, and you add the angle. On weeks where everything is under the hood, Ideas suggests things to post from your product and repo. Every draft waits for your approval before anything goes to X. For more on picking which commits deserve a post, see how to turn GitHub commits into posts people actually read.