DEV Community

Discussion on: Back to basics: Naming

Collapse
 
stepanstulov profile image
Stepan Stulov • Edited

"If am I developer?". Your code is a set of commands and statements. It doesn't ask its reader questions like how their day is. And everything, that's not some Email class's own function (a'la email.isValid) and that starts with "is" sounds like a question.

Only emailIsValid(email), rain or shine.

Also constructions like "if email is email" make no sense. Of course it is. You need to have a quality (such as "valid") to be used to distinguish good emails from bad ones.

Cheers