Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
erehweb
· 3y ago · 0 comments
The truly brilliant thing to do would be
#define SEVENTEEN 16
Comments
[–]
stephenbennyhat
3y ago
I worked for a while with a software engineer who insisted in encoding the value of the macro within the name:
#define MAGIC_16 16
his rationale was that you had to go through all the uses and consider whether the change would cause an issue.
It takes all kinds.
[–]
chii
3y ago
// the law changed, but we're too lazy to rename the constant