Skip to content

Instantly share code, notes, and snippets.

Last active January 8, 2018 16:11
  • Star 26 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Notes and links for ideas about Gary Bernhardt's "functional core, imperative shell"
"Since none of the code written so far needed to know that a wall post
could have comments, he saw no value in cluttering up those files with
comment-handling code. Instead, he put the relationship between wall
posts and comments in the code that was responsible for doing
something with comments. His code was uniformly organized so that the
code dependencies were exactly isomorphic to the feature
"Your domain model is not in your classes, it's in the communication
patterns between the objects at runtime." growing-obj-oriented-software
"Both the user-side and the server-side problems actually are caused by
the same error in design and programming — the entanglement between the
business logic and the interaction with external entities. The asymmetry
to exploit is not that between "left" and "right" sides of the
application but between "inside" and "outside" of the application.
The rule to obey is that code pertaining to the "inside" part should
not leak into the "outside" part." Alexander Cockburn
"The facets of the hexagon represent different conversations that the
application is having with the outside world."
as a *pattern*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment