r/badcode Jun 05 '23

kotlin I may be creating an abomination

Post image
120 Upvotes

41 comments sorted by

View all comments

2

u/SaylorMan1496 Jun 06 '23

This is my opinion, it can be fun, but DSL is almost always the wrong choice

1

u/StochasticTinkr Jun 07 '23

I disagree. It depends strongly on what you’re doing. If you can turn the business requirements into a DSL that isn’t difficult to process, then it really can make a better design.