4 ms·
This is a particularly insightful (if snarky) comment. The project I just had to refactor had a DSL that was completely unnecessary and had a ton of business l
by mVChr 11y ago
This is a particularly insightful (if snarky) comment.
The project I just had to refactor had a DSL that was completely unnecessary and had a ton of business logic tangled up within the domain language itself. I ended up being able to remove the DSL and parser completely in lieu of using simple config files and extracting the business logic into middleware.
The DSL was probably originally created due to some Slideshare presentation that had just hit the top of HackerNews 3 years ago. The original devs molded the problem to fit the ability to use a DSL and cool parsing library rather than figure out what the most suitable design for the problem was.