DEV Community

Discussion on: Clean code... Why bother?

Collapse
 
ehorodyski profile image
Eric Horodyski

For me, name booleans with question identifiers. Like "is updated" or "hasBeenUpdated". Then you get code like "if(hasBeenUpdated)" and it makes more sense linguistically. However, if you work with members who aren't super fluent in English it becomes tough, because English is totally a tricky language.

Collapse
 
paulasantamaria profile image
Paula Santamaría

I try to do this as well, makes it easier to read.