I prefer the first example in both cases. Specificity depends on the context. Does the function care about the "store" or not? Could Godzilla exist somewhere else, heaven forbid?
My go-to is to default to writing booleans in a way that makes them read more sentence-like in context. For example:
if ( godzillaExists && mothraExists ) {
doBattle(godzilla, mothra)
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I prefer the first example in both cases. Specificity depends on the context. Does the function care about the "store" or not? Could Godzilla exist somewhere else, heaven forbid?
My go-to is to default to writing booleans in a way that makes them read more sentence-like in context. For example: