DEV Community

loading...

Discussion on: Tips on naming boolean variables - Cleaner Code

Collapse
luigiminardim profile image
Luigi Minardi

isTwoLoggedIn?
areTwoLoggedIn?
isThereTwoLoggedIn?

What should it be? Any other option?

Collapse
stepanstulov profile image
Stepan Stulov • Edited

Two of whom? :)

twoUsersAreLoggedIn

Collapse
dlattynjt profile image
David Latty

Good stuff

Collapse
michi profile image
Michael Z Author

That's a tough one.
What came to my mind was also
isPairLoggedIn
isPairOfUsersLoggedIn

Never ran into this case before though :D

Collapse
dlattynjt profile image