With modern IDE and AI there is no need to save letters in identifier (unless too long). It should be "sizeInBytes" instead of "size". It should be "byteOffset" "elementOffset" instead of "offset".
When correctness is important I much prefer having strong types for most primitives, such that the name is focused on describing semantics of the use, and the type on how it is represented:
I agree. Including the unit in the name is a form of Hungarian notation; useful when the language doesn't support defining custom types, but looks a little silly otherwise.
When the same name is used a thousand times in a codebase, shorter names start to make sense. See aviation manuals or business documentation, how abbreviation-dense they are.
pveierland|10 days ago
Strong typing of primitives also help prevent bugs like mixing up parameter ordering etc.
kqr|10 days ago
groundzeros2015|10 days ago
ivanjermakov|10 days ago
layer8|10 days ago
I once had a coworker like that, whose identifiers often stretched into the 30-50 characters range.You really don’t want that.
throwaway2027|10 days ago
post-it|10 days ago
0x457|10 days ago
Onavo|10 days ago