4 ms·
Contrary take, all programs are little languages. They are, of course, written in a larger language that has more capabilities, but every program is reducing d
by taeric 4y ago
Contrary take, all programs are little languages. They are, of course, written in a larger language that has more capabilities, but every program is reducing down to the parts that are getting used. And moreover, most of the bugs are when people don't keep themselves to this reduction.
Is why most "little languages" should probably not aim for complete capabilities. The smaller you can keep these little languages, the better.
But, this means you will get more things like regex as a little language. Format strings. Basic workflow validation programs. Not full programming interfaces.
- ssivark 4y agoCompletely agree that every program (domain model) is in essence a little language. But I don’t follow your comment about bugs corresponding to when programmers don’t stay within the reduction. Do you mean simply that every “bug” is (literally) a misunderstanding of the domain semantics , or are you making a stronger/constructive statement?
- taeric 4y agoApologies, I was not trying to say all bugs. But it is not surprising to find bugs in code when someone pulls in new libraries/functions/whatever to a piece of code. More so if it ships out any data to use those things.
- Izkata 4y ago> Completely agree that every program (domain model) is in essence a little language. You almost called them by name: domain-specific language(s).