Software Design/Choose programming language or framework similar to the language of the problem domain
Appearance
Examples
[edit | edit source]- A functional language for a compiler with transformations between immutable representations: source code, IR, machine code.
- Object-oriented language for a game with characters.
- A declarative language or framework for static descriptions, e. g. of a user interface, or configuration.
- Actor platform or framework for situations when actors and state machines match the problem domain language.
Why
[edit | edit source]When the program's language is similar to the problem domain's language, the code is more natural to read, like a DSL.
Related
[edit | edit source]Sources
[edit | edit source]- David Thomas; Andrew Hunt (2019). The Pragmatic Programmer (20th Anniversary ed.). Addison-Wesley Professional. ISBN 978-0135957059.