In the previous article, I said the first one would be about a tiny tool, so small I felt awkward calling it a product.
This is it: RimeBak.
I use Rime, which is called Squirrel on macOS.
Its configuration is scattered across several places: one file for the schema, another for the dictionary, and yet another for the user dictionary. If I broke something while editing, I had to start over.
Eventually, I had enough. I decided to write a script that would package up the entire configuration directory as a backup.
I started that afternoon and finished it that evening.
One shell script, an install script, and a README.
I was pretty pleased with it. Everything worked, and it felt smooth to use, so I put it on GitHub.
Only then did I realize the real work was just beginning.
The first problem: it only worked on Mac.
In October, I added Windows support. That was when I learned that Rime is called Weasel on Windows, and that its configuration directory is in a completely different place from macOS, with an extra Weasel layer in between.
That change took several days and added a pile of operating-system checks.
The second problem was even more awkward.
It could make backups, but it could not restore them.
Of course, you make a backup so you can restore it. But the first version really only had a backup command. When I needed it, I had to dig through the directory myself, find the archive, and extract it by hand.
The following January, I added restore, a backup list, statistics, and Git sync all at once.
I added Git because the backups kept piling up and taking up space locally. Pushing them to my private repository meant I could pull them down on another machine too.
That same month, I looked into Homebrew.
The reason was simple: every time I installed it, I had to clone the repository and run the install script. Even I found that annoying.
Now installation takes two lines.
This October, I split it up.
Everything used to live in one rimebak.sh file. Now it is a main script plus eight modules, with CI and issue templates added as well.
At last, it sounded like a proper project.
It has two stars so far.
I hesitated before writing that number down.
Then I decided to leave it in. This series was never about success stories.
What this little tool taught me had little to do with technology.
In the first version, I only thought about how I would use it.
So there were no installation instructions or error messages, and I never considered that someone else might have a different directory layout.
Every change after that was prompted by a specific problem.
It was only when I tried to support Windows that I discovered the extra layer. It was only when I tried to make installation easier for someone else that I realized how annoying clone-then-install was.
Put simply, the gap between something that runs for you and something other people can install is not just code. It is a pile of small things: documentation, installation, compatibility, and edge cases you never thought of.
I still maintain it. It is also the first tool of mine to last more than a year.
It is not a success, but at least it is not dead.
The next project was a little bigger. It also grew out of a frustration, but that frustration was not mine. It came from work.