Just how does one document software?
I'm a complete autodidact when it comes to software, but I've been writing microcontroller software for most of my career, and no-one has ever has asked me to document it. Now, I'm thinking of retiring within the next few years and whilst I could behave like a complete bastard and just leave my successor to sort out the mess, I'm not that sort of bloke; and perhaps it really should be properly documented now.
Whilst I might like to think that I write perfectly lucid code that is perfectly obvious to anyone reading it what it does, that might just be a matter of opinion; so, are there standardised ways of documenting C, beyond writing the odd comment line? To what level of granularity should it be explained?
And how? In natural language or by flowchart?
I'm a complete autodidact when it comes to software, but I've been writing microcontroller software for most of my career, and no-one has ever has asked me to document it. Now, I'm thinking of retiring within the next few years and whilst I could behave like a complete bastard and just leave my successor to sort out the mess, I'm not that sort of bloke; and perhaps it really should be properly documented now.
Whilst I might like to think that I write perfectly lucid code that is perfectly obvious to anyone reading it what it does, that might just be a matter of opinion; so, are there standardised ways of documenting C, beyond writing the odd comment line? To what level of granularity should it be explained?
And how? In natural language or by flowchart?
























