Blog Post: Boolean Variable Names #20
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Random notes:
Variable names for booleans: avoid names that are already a negation (notReady, headless).
find examples in OSS (Gitea notify)
Read PoP and PoSD for bool blog post
Use an unambiguously negatable name. No context should be needed for understanding. Ex: “FlexibleName”
Going between configs is problematic. Ex: confA.UseProd = !confB.NoProd
Should be in the affirmative (useProd, not noProd)
answerable with yes or no (true or false)
@steverusso my best thought for an image for this blog post is a yin and yang symbol. Can you get me an image that would look good (in your opinion) on a blog post? You can upload it here and I'll put it in the PR.