For example, suppose I have a buffer called char journal_name[25]
which I use to store the journal name. Now suppose a few lines later in the code I want to store someone's name into a buffer. Should I go char person_name[25]
or just reuse the journal_name[25]
?
The trouble is that everyone who reads the code (and me too after a few weeks) has to understand journal_name
is now actually person_name
.
But the counter argument is that having two buffers increases space usage. So better to use one.
What do you think about this problem?
Thanks, Boda Cydo.