Coding 2025-07-22
Ugh. The code I wrote for paths and constraints feels terrible to work with, actually.
I think there are two separate things I did wrong, and it's going to take me some time to figure out what I should be doing instead:
- "I should make a path-like structure using __rtruediv__ on a base 'component' class to build things up."
- "I'm bundling together nodes and context; I should write methods with narrowed self types on the bundled class that just forward to the method implementation on the wrapped node."
Both of these seem to get really unhappy in the context of my funky modular node types. The method forwarding is also a bit questionable from an implementation standpoint, because I kept finding myself reassembling the bundle that destructured itself as part of the method forwarding. Like, the stuff I thought was going to make things easier just kind of made it way fiddlier.
I've got a few things I'm trying out now, but I'm going to need more time than I have right now to really evaluate them, so I'm going to wrap things up for now.
Good night.