3 ms·
If I actually match a tech spec or a law, I usually put references to the related text in comments, next to the code handling it. E.G: I'll put the spec version
by sametmax 8y ago
If I actually match a tech spec or a law, I usually put references to the related text in comments, next to the code handling it. E.G: I'll put the spec version + page, or law paragraph number.
This way you know when you come back to it, what must stay, what must go, and what must change.
- riskable 8y agoForget the cleverness of the code... If I see comments like that (providing direct references to the spec/law) I will know I am reading the work of a true artisan! Hats off to you, you wonderful person!