DEV Community

Discussion on: Clean Code Applied to JavaScript — Part VI. Avoid Conditional Complexity

Collapse
 
swarupkm profile image
Swarup Kumar Mahapatra • Edited

I think the whole intent of this article is "let the client code/ calling code do the if/switch and pass on messages"...
Conditionals can be delegated IMO, but cannot be eliminated.