You know those “ten years ago vs now” drawings artists sometimes, where they redraw something they made when they were still learning?
I’m currently in the process of rewriting the first Urbit application I ever wrote — precious talkbot — and it’s a little bit like that. Back then I wrote it in a style that screamed “let’s try and get something working quickly because that makes learning fun”. And I did learn quite a few things. Writing pretty Hoon code wasn’t one of them, and I wasn’t even concerning myself with proper architecture yet.
Now, I’m doing the whole thing different! Well, architecturally different. It’s going to retain largely the same set of features, but it’ll be way easier to add in new ones. The combination of refreshed architecture and code style makes such a big difference, I can barely recognize it as the codebase I’ve tinkered on for so long.
That’s a good thing, though. Whereas the old talkbot was a good example for the newest of newcomers to show “here’s how you do things fast and easy”, this’ll be an interesting piece for slightly less novice programmers to look at and see “here’s how you do things in a slightly more structured way”.
Put in some more effort during the weekend, and maybe I can have it done and ready to go by next week!