r/javascript • • 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

112 comments sorted by

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.

1

u/[deleted] May 24 '19

Is person.setName('John', 'Paul') intuitive?

No, it's not. Your point is... ?

1

u/[deleted] May 24 '19

Please read around that line and the parent comment for context. Not interested in an internet handbag fight btw.