Use Uncertainty to Drive Design Decisions
The programmer as decision maker
We, as programmers, are making tons of technical decisions everyday:
- As a programmer, your job is to make technical decisions.
- It seems to me that programmers often defer too much authority to their managers.
- Technical decisions
- If your job is programmer, software developer, or similar, the value you add to the team is that you bring technical expertise.
- Even if the project manager or other superiors used to program, unless they're also writing code for the current code base, they only have general technical expertise, but not specific expertise related to the code base you're working with.
- You are decision makers.
-- from The programmer as decision maker
Among these technical decisions, design decisions that affect how we architect our application are the most important yet the most difficult ones. So how to make these kinds of design decisions?
Use Uncertainty As a Driver – Medium
In this article, Kevlin Henney gave us a great answer.
- Difference between effective and ineffective architectures
- An effective architecture is one that generally reduces the significance of design decisions in the areas of greatest change.
- An ineffective architecture will amplify significance.
- Instead of trying to decide between options A and B, the question becomes “How do I design so that the choice between A and B is less significant?”
- The most interesting thing is not actually the choice between A and B, but that
- there is a choice between A and B
- the appropriate choice is not necessarily either obvious or stable.
- Structuring by uncertainty is not new. (On the Criteria To Be Used in Decomposing Systems into Modules)
There is no silver bullet in the technical world. Every choice has its trade-offs. So the best choice is to make the choice less significant. Or to make the switch between these different options easy. So that we can test them easily or switch to another if we find the current one doesn't suit our use cases.
Maciej Kaszubowski - Modular Design in Elixir - ElixirConf EU 2019 - YouTube
Speaking of On the Criteria To Be Used in Decomposing Systems into Modules, it was mentioned in this talk about Modular Design in Elixir as well:
- Modular Design
- On the Criteria To Be Used in Decomposing Systems into Modules
- One big problem
- smaller, simpler modules
- strong boundaries
- low coupling
- Each module can be:
- understood in isolation
- modified in isolation
- tested in isolation
- replaced or removed
- Extracting behaviour
- Isolate important decisions
If you are into Elixir and want to see how to use uncertainty to drive your design in an Elixir application, you can't miss this talk!