Encoding unit — one grounded idea

1 The name 'isValid' in a method typically implies a Boolean return value, but when used in contexts where additional data (like an internal ID) is returned, it creates a misleading semantic association that confuses callers.
“isValid gives the idea that a Boolean will be returned. Often this is the case but sometimes we try to be smart...”
spoken · 177s · 2022-05-20 · en-US · Strange Loop Conference · Felienne Hermans: How patterns in variable names can make code easier to read
id: bfdcfa2c7787792d
concepts in this idea