Breaux Arts on Nostr: People talk a lot about "functional core, imperative shell", but the inverse--a pure ...
People talk a lot about "functional core, imperative shell", but the inverse--a pure functional shell around a demon core of packed array data and primitive bitwise magic--is actually pretty great. Write your generative tests in the functional landscape, validate that the imperative evil thing works correctly, then seal it away behind a functional API.
Published at
2024-11-26 22:05:23Event JSON
{
"id": "a63ccecdcaf815f1d33159d491f0bf6d4cb26c085f30099880788d651810b27f",
"pubkey": "6b3ace8bd8bded4874dd9773b25f9c258aa3112c33a4ef5983010da8ba8fe83c",
"created_at": 1732658723,
"kind": 1,
"tags": [
[
"proxy",
"https://woof.group/users/aphyr/statuses/113551522105094358",
"activitypub"
]
],
"content": "People talk a lot about \"functional core, imperative shell\", but the inverse--a pure functional shell around a demon core of packed array data and primitive bitwise magic--is actually pretty great. Write your generative tests in the functional landscape, validate that the imperative evil thing works correctly, then seal it away behind a functional API.",
"sig": "40a5b9ff117f9ddf02ea5426304deba1c8dae49a492b1f4a178ef1bdf10bb6e59b0043caadcfa35f979b42df7df1244e55bb3ed059cc8468665efce9a94cdbb7"
}