Domain-specific languages vs. library of functions

前端 未结 8 1446
予麋鹿
予麋鹿 2021-02-07 08:13

This may be subjective, I don\'t know: I have this problem, which I\'m kind of equating to the \"what language for this project?\" question, since I can\'t seem to solve it.

相关标签:
8条回答
  • 2021-02-07 08:53

    Use psuedo-code to explain your algorithms. That would be more generic than using a general-purpose programming language with library API.

    How complex do you feel your DSL will have to be? Will it take a lot for readers to become familiar with it?

    Although you would get to fill the back of your book with the source code to the library to fill those pages.

    0 讨论(0)
  • 2021-02-07 08:55
    1. Your audience are non-programmers.
    2. You are targeting a specific field.
    3. They need to get job done.

    I would choose a DSL over a general purpose language.

    0 讨论(0)
提交回复
热议问题