Coding 2024-10-02
I have some things to complain about in the journey that I took to get here, but at this point, I now have to do the following things, down from the list two days ago:
- Write styling code.
- Figure out how to put text where I want it in SVG.
I would have gotten everything else done more quickly if it hadn't been for two weird bugs I hit. Basically:
- Jinja doesn't seem to want to remember variables named self when it's working with contexts.
- Creating an enum.Flag member with value 0 in a base class appears to work, until it very obviously doesn't.
I've filed a bug on the former, and have worked around it with a mixture of hand-written {% self_ = self %} and injected {% self = self_ %} blocks.
I haven't filed a bug on the latter, because I'm not totally sure how many bugs I'm even looking at, but I've devised a workaround based on forcing _member_map_ to be truthy.
...
And I've just discovered that that workaround doesn't quite go far enough.
...
There. Now it's better.
Anyway, I should have finished this entry before I started it.
Good night.