I have an Unity project with countless of C# script files and I'm working on it solely.
Although nobody else is working on it, I'm aware that some form of code documentation is crucial for my future self.
What I thought about is putting comment files like these into each file / class at the top for a better overview:
/*-------------------------------------------------------------------------------\
| Title |
+--------------------------------------------------------------------------------+
| Repository: |
| 2021 (C) Company |
+--------------------------------------------------------------------------------+
| This module was programmed by XYZ |
+--------------------------------------------------------------------------------|
| Version 1.0 |
+--------------------------------------------------------------------------------+
| CODE DESCRIPTION |
| ________________ |
| |
+--------------------------------------------------------------------------------+
| NOTES |
| _____ |
| |
\-------------------------------------------------------------------------------*/
I've read some counter-arguments to this. For example, code might change and I would have to update my code description in the comment at the top.
Now, what if I have my engine already set to go and I'm sure that there's not gonna be any more major changes to it? And even if I had to make changes, I would remind myself of updating the header comment, too.
Would you say that this is bad practice? And if so, why? And what else would be your suggestion for documenting game project/Unity stuff properly?
Thanks in advance!