DEV Community

Discussion on: The Art Of Writing Clean Code: My 5 Go-To Tricks

Collapse
 
hsalem profile image
Hassan

Nice article. But for second point I think better to order them based on the order of the action, for example: findUserByNameAndAge(name, age)

And the third one is not so clean, I agree with expressive names, but if the name is too long that means it does too much. Even if it is a variable, a class, or a function.

Collapse
 
ishakmohmed profile image
Mohmed Ishak

Yeah for third one, needa find the sweet spot between expressive names and long names..