3 ms·
Hard to find bugs often come from violation of an invariant between two distant parts. Somewhere, part A assumed that part B would do X. If this is neither mach
by Animats 8y ago
Hard to find bugs often come from violation of an invariant between two distant parts. Somewhere, part A assumed that part B would do X. If this is neither machine checked nor well documented, and the program has a long life, at some point someone will change B and break something. Or A and B will become unchangeable for fear of breaking something.
This is one of the primary mechanisms by which software ages. It is also the real justification for comments and internal documentation.
- damagednoob 8y agoIf you're talking about code comments to me that's a prime example of what you're talking about in the first paragraph.