3 ms·
Slowly over time clean up the code and educating though examples and approachs and standards and all agreeing and understanding them would be a good start, noma
by Zenst 14y ago
Slowly over time clean up the code and educating though examples and approachs and standards and all agreeing and understanding them would be a good start, nomatter the direction. Also if its viable to document, albeit organicly in a way that you have a process to control changes, it can only help. One day you will have it fully documented or cleaned up.
Slowly, slowly catch the monkey was a comment a COBOL programmer I worked with in the 80's would put in all his code (along with naming all his procedures after drinks, but lets not go there - shudder). I now, know why.
Knowledge based systems are great, but they do end up mixing the data into the code in a way that over time is fun.
I had to work on a real crazy bit of C code once that was larger than I cared for. I mearly found the parts that effected what I needed to do and changed that. It worked, no idea what most of the code did but the aspect of being to work with more than one radio controler was easily enough to change. No documentation and was a bit spag bowl. But it was a easy change and in many ways it was due to design of the programmer who had written it. He had allowed for such a change, not documented but was easy and changing a few variables mostly. Leason there is you can have code that makes no sence, but it gets the job done and if you need to change a particular part, if you can locate that part then you can read the effecting code and change what you need. If when codeing you plan ahead of possible future changes. Well nobody can ask any more.
If it works, why argue. If you can slowly and saftly make it work better then fantastic. Remember not all new wheels go faster or better than the ones they replace. Think about that incase you argue a rewrite. Rewrites for the sake of it one day and next you will be flying with the seagull managment.
Also worth factoring in that spaghetti code saves jobs and lives, I understand that joke now.