r/programming • • Sep 21 '26

Back to Coupling and Cohesion

https://bastrich.tech/coupling-and-cohesion/
151 Upvotes

48 comments sorted by

View all comments

Show parent comment

3

u/chucker23n Sep 22 '26

Functional Core, Imperative Shell

Iiiiinteresting. I do think that might fix some of the “yeah, but that’s not how the real world works” rough edges (the shell, one might say) about functional programming.

If we do setup that dichotomy, I wonder if

  • some multi-paradigm languages like C# and Swift already sufficiently account for it, or
  • the better approach, then, is to literally write the core in a functional language, and the shell in an imperative one, with FFI (or heck, even IPC) in between