Re:A short fable of software engineering vs. regular enginee...
by Someone on Sunday January 10, 2016 @04:03PM
(#10877197)
"This is exactly what debugging is"
Yes and no. Debugging (in the sense that programmers do it) stops when you learn "X wasn't initialized" or "that buffer isn't long enough for the trailing zero".
This is root cause analysis (https://en.wikipedia.org/wiki/Root_cause_analysis). It goes way deeper into "why the problem happened". The buffer may be undersized because the programmer isn't educated well enough, because (s)he was too tired to think properly, because the spec specifying the maximum size was wrong, etc.
Each reason leads to a different fix, often through more iterations of asking "why?"
The programmer's lack of education can be caused by a problem in hiring practices, by low quality of internal courses, etc.
The programmer may be tired because of long working hours, because of troubles at home, because (s)he goes out too much, etc.
That buffer size might be a typo, an OCR error, somebody declaring the maximum size to be N because, otherwise, the data couldn't be fit in the current hardware, etc.
Each explanation comes with a different way to prevent the problem from occurring again (something that traditional debugging does nothing about. Initializing that variable makes the problem go away, but in itself does nothing from you writing code with initialized variables in the future)
Yes and no. Debugging (in the sense that programmers do it) stops when you learn "X wasn't initialized" or "that buffer isn't long enough for the trailing zero".
This is root cause analysis (https://en.wikipedia.org/wiki/Root_cause_analysis). It goes way deeper into "why the problem happened". The buffer may be undersized because the programmer isn't educated well enough, because (s)he was too tired to think properly, because the spec specifying the maximum size was wrong, etc.
Each reason leads to a different fix, often through more iterations of asking "why?"
The programmer's lack of education can be caused by a problem in hiring practices, by low quality of internal courses, etc.
The programmer may be tired because of long working hours, because of troubles at home, because (s)he goes out too much, etc.
That buffer size might be a typo, an OCR error, somebody declaring the maximum size to be N because, otherwise, the data couldn't be fit in the current hardware, etc.
Each explanation comes with a different way to prevent the problem from occurring again (something that traditional debugging does nothing about. Initializing that variable makes the problem go away, but in itself does nothing from you writing code with initialized variables in the future)