3 ms·
Spot on. Whenever you add a DSL like this, you need to carefully weigh costs and benefits. A hidden downside is that every new person who views your code base (
by the__alchemist 5y ago
Spot on. Whenever you add a DSL like this, you need to carefully weigh costs and benefits. A hidden downside is that every new person who views your code base (And you in the future!) has to become proficient with the DSL. The base tech it wraps (HTML + CSS) is more fundamental; less overhead.
Another way of saying this, is that Tailwind adds cognitive overhead.
- iovrthoughtthis 5y agothe classes you define become the new dsl though. so you keep the overhead of learning + the effort of writing and maintaing your own dsl