• he/him

programming, video games, dadding. I happen to work for Xbox, but don't represent them.


more blog
dev.to/knutaf
discord
knutaf

posts from @knutaf tagged #work

also:

i am lucky to have received a sabbattical from work, and today i submitted the last PR i needed to get done before i head out. tomorrow i can wrap up any last bits, but suddenly i'm feeling kind of free. the last 4 weeks or so have been a lot of work. late nights almost every night getting a large feature done so i can leave my team in good shape to build on it while i'm done. 2 months off, haven't had that since my last paternity leave



after like 3 weeks of work i managed to finally get out the PR i've been working on. 67 files touched, ouch. this is not a brag. that's a bad thing. but this was also a "rearchitect how the main messaging component works", which is tied in with a lot of other parts, so I could not figure out how to do this in small, incremental pieces without ripping off the bandaid.

rip my team for having to review this thing. it does have some killer unit tests with it, though.



in the middle of phase 3 of my huge code refactor for my component at work. managed to get myself into a ridiculous web of callbacks and locks, leading of course to some classic AB/BA deadlocks. then managed to fix those and get all my ~50 unit tests passing.

tired but accomplished



i've been working on a code change off and on for a few weeks (keep getting randomized by other stuff). it does some major refactoring of a protocol implementation I own to set it up to unit test most of the code. i had to write the thing earlier in a hurry, or else I would have done it this way to start with.

anyway, i'm extremely happy with how the refactoring turned out. it's like... beautiful to look at, haha. the refactoring took one of the protocol endpoints and split it into core protocol logic and command handling + bytes transportation, so i can now do things like "transport" over an in-memory queue to test dropped packets, timing conditions, etc.

next i have to refactor the other endpoint of the protocol to consume this common core and write a bunch of unit tests