4 ms·
At the risk of sounding uncool, if I was stuck I would flow-chart the gosh-darned thing. I once did this for an engineering subsystem with more than 10,000 lin
by phugoid 15y ago
At the risk of sounding uncool, if I was stuck I would flow-chart the gosh-darned thing.
I once did this for an engineering subsystem with more than 10,000 lines of FORTRAN. It took me more than a month. We were relocating a flight simulator from Italy to Spain where it would go through testing and customer acceptance before being put back in service.
By the time I was done, I could debug the system almost as if I had written it myself. It made me look like a freaking genius.
The point is _not_ about flowcharts being wonderful. It just forces you to trace the path of execution through the code, and figure out what each bit is trying to do. The tangible documentation (i.e.: stack of flowcharts) that you end up with is great for building your confidence, and convincing your boss that progress has been made.
- geoffw8 15y agoYou mean manually create them? Or is there a generator tool you could suggest?
- phugoid 15y agoYes, I mean manually create them. Again, the flowcharts themselves are completely useless when you're finished. It's the process of preparing them that forces you to start digging through that little mountain of code.