/blog/archive/Refactoring, cleansing the code to cleanse the mind

Refactoring, cleansing the code to cleanse the mind.

created: 2020-12-26T15:47:01Z
modified: 2021-01-31T19:32:58Z

I’ve been purposely working up to a big refactor of my toy CMS just for how it feels. Is it crazy that I wrote over a thousand lines of code I knew I could probably throw away? Maybe, a bit. But I like to think of it as exercise reps, while I’m learning a new coding lang like Rust it’s as much about the repetition of banging out code, noodling through the errors and trying different things, as it is getting it right in the first place. So for this use case I think this was a good use of my time, Rust is starting to feel natural and easy.

So it’s probably time to start moving my toy CMS from a toy to a real tool, probably throw a GraphQL interface on it, overlay a more sophisticated data model, build real content types, start building the security layers, add a user and permissioning system. Fun stuff.

  • Creative Commons License
  • Author: Gatewaynode