miniblog.

← Back to all posts
23
Renaming code often exposes further needs for refactoring: https://www.fluentcpp.com/2021/04/23/make-bad-code-look-bad/ (I found the example really compelling!)

3 Comments

@wilfredh I always use the name “frobnicate” for functions. Never in checked-in code, just while making them (and there can never be two frobnicates at once). Especially when I’m not really sure what they do yet. Once they’ve been properly factored they can have nicer names.
@Sandra I've seen linters against foo. One day I'd like to see a project have the courage of its convictions to ban placeholder names in CI 😈
@wilfredh I like to use foo and the other metasyntactics in documentation and I keep my documentation under VC (but not CI).