npub1dv…7ttxk on Nostr: Trying to create complex #software managing kernel buffers. This needs tests. ...
Trying to create complex #software managing kernel buffers.
This needs tests.
"#functional core, imperative shell" - Testing management should not need the kernel.
I started mocking with a generic backend. Looks annoying.
"imperative shell"
The mocked generic is becoming a spaghetti horror.
"functional core" - and then it clicked.
I separated just the buffer manager, made it generic over buffer type. I can now feed it fake buffers and test it.
#testing #development #hexagonal
This needs tests.
"#functional core, imperative shell" - Testing management should not need the kernel.
I started mocking with a generic backend. Looks annoying.
"imperative shell"
The mocked generic is becoming a spaghetti horror.
"functional core" - and then it clicked.
I separated just the buffer manager, made it generic over buffer type. I can now feed it fake buffers and test it.
#testing #development #hexagonal