I thought the two hardest problems were:
1) naming
2) cache invalidation
...
3) off-by-one errors
1) naming
2) cache invalidation
...
3) off-by-one errors
1) naming
4) concurr2) cache invalidationency
...
3) off-by-one errors
0) Race consegmentation fault (core dumped)
(I know I was ninja’d but didn’t see until after)
Alas.
- a good name should be descriptive
- avoid being overly clever, call a spade a spade
- don't optimise for generalisation, naming things is a time to be specific
- aim for short but not at the expense of losing context
- avoid redundancy in naming of things nearby, leverage spatial context
- avoid qualifiers or type information where possible - type should be obvious from context and use, if it's not qualify or refactor
Anything else?