The Week #128
by
- We bought tickets to visit America for 2 weeks during February π. Leo will turn 5 in Texas. I'm really excited for him to meet everyone. I'm also excited to see what happens when he's throw into a pure English environment. It's only two weeks, but will he come back speaking more English, even if just a temporary boost? Ticket prices were still a bit painful, but not ludicrous like they were 6 months ago.
- The US not having a proper public transit system sure makes visiting a pain because it means you've got to rent a car. Which means me getting an international driver's permit (my US license expired and I can no longer renew it online). And also means me potentially futzing with a child seat after a 14 hour flight...so much better to just have trains that connect people to the places they want to go.
- Last week I started on some upgrades to Tanzawa that will allow me to update reply/bookmark titles without resorting to the Django admin. And as I started, I realized that there was a yak that needed shaving. It was time to do the next chunk of refactoring: moving my business logic out of views/django forms and into re-usable "application" functions.
It's a much larger chunk of work, but also very important. You see, to share as much code as possible during my initial development of Tanzawa, my micropub endpoint mostly just converts the micropub request format to that of my authoring views, and uses the same forms for processing.
This is problematic, not because not because it doesn't work, but because it's all too entangled together. It's a problem because it doesn't make sense that editing my author form will effect my micropub endpoint (so change it as little as possible π).Β
My functional end-to-end tests for posting just test micropub under the assumption that they're the same, so I never bothered writing tests for my author views because if it busted, I could always fallback to any micropub client for posting.
All of this is a long-winded way to say I've got a lot of refactoring ahead of me, but it's a lot of fun making things not just work, but making them right β with tests. - I started watching The Playlist, a drama about starting Spotify. I''m really liking it. Each episode is told from the perspective of one founding / important member or another, which is something I've never seen before.
- I made some overnight white bread with Leo, as his request. Each time I make this, I think I should make it more often. It's vastly superior to anything I can buy locally in the shops. If I could find a loaf like this, it'd be at least Β₯1,000.Β And because it's done overnight, it's much easier to manage the fermenting/timing of things. Slam it in the fridge and bake it the next day (or so) when you have some time.
Interactions
1
1
-
like