Readable code tips: Use “is” or “has” for Boolean variables/functions
Previous Tip: Don’t inline everything! This is a little naming convention that I find really helpful. If a variable is Boolean type, or if a function returns a Boolean type, then consider if you can name it with an “is” or “has” prefix (or somewhere in the name). Because in many cases, not doing this […]