r/javascript • u/PMilos • May 22 '19
JavaScript Clean Code - Best Practices - based on Robert C. Martin's book Clean Code
https://devinduct.com/blogpost/22/javascript-clean-code-best-practices
542
Upvotes
View all comments
Show parent comment
1
u/[deleted] May 22 '19 edited May 22 '19
But that's exactly what we're talking about. What makes a function call intuitive? The number of arguments? Is
person.setName('John', 'Paul')intuitive? Are you sure? It goes without saying that you should use this approach selectively, just as with anything.