Comment on Friendly attributes pattern in RubyparentComments−dudeinjapan10moIf there is one DSL which is a central abstraction of one’s entire app, used in 100s of places—this is fine.If there is a DSL such as Rails’ URL routing, which will be the same in every app—this is also fine.When one makes 100s of micro-DSLs for object creation, that are only ever used in one or two places—this is pure madness.
Comments
If there is one DSL which is a central abstraction of one’s entire app, used in 100s of places—this is fine.
If there is a DSL such as Rails’ URL routing, which will be the same in every app—this is also fine.
When one makes 100s of micro-DSLs for object creation, that are only ever used in one or two places—this is pure madness.