back

test based development should help.

2022-12-09

1 minute read

Yesterday flew by, I did some stuff though. I'm amazed at how much can happen with a little focus, I want to try to have more of that. Finally, that deep work book is kicking in.

tests in jest

I started using the jest js testing framework to write tests for Pompom. This was good because I've long claimed to be a proponent of test based development but have done shockingly little actual testing.

It was also good because it helped me catch a bad function I'd written:

test("CSV with bad line shouldn't be valid", () => {
    let rr = `
    round, 00, 00
    round, bad, 00
    round, 00, 00
    `
    expect(isValid(rr)).not.toBeTruthy()
})

I had written my CSV evaluating test lazily, and it was not doing anything at all. It's not the first time I've made mistakes writing conditional statements, I need to be wary of this when developing. Test based development should help.

Played another round of Hanafuda, got completely ruined

50 to 11, horrible.

Did a little conjugação work

I've been laying out a full conjugation table, deciding how to structure it and where to hide pieces. I think I'm better off doing a full table, then reducing it down. It may end up having a few different views, this is where a white board will help. I think some tenses are more relevant than others, at least they are for me, in portuguese:

Went bouldering

Still recovering from being sick, so it wasn't a huge session, but I had a good time.

What'd I do this morning

I read about Causal Theories of reference, Mediated reference theories, the Descriptivist theory of names, and Mr Ed all to try to write a return.horse comic. Art is sacrifice.

what else

I dilly dallied a bit this morning, and while writing this, so we're not going to get too deep into anything. Maybe tomorrow.

listening to

Another bandcamp purchase, Oncle Jazz

questions

From James Clear, through my brother