My/Principle/Declarative over Imperative/Discussion
Why I prefer Imperative over Declarative approaches in technology systems (and elsewhere, too)
- Imperative approaches are usually easier to get started with, because you just have to tell the computer what to do in a sequence, which is less abstract than understanding a system in which something even can be declared.
- Declarative systems usually exist at a higher point of Abstract/ion
- are easier to maintain. Therefore, considering that the vast majority of the total cost of ownership of a software system is in its maintenance and understanding.
- Declarative code tends to be more readable, easier to reason about, and opens more room for runtime optimization; reach for imperative code when you need explicit control over ordering, performance, or side effects.