Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lee1210

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
oddly enough, yes

That's what counts. What would it have taken for you to find those other, perhaps more devious, bugs if you hadn't made a silly mistake?

I am reasonably confident that there is a memory leak in one of our background processes, and i knew debugging it in it's current form (~1300 lines of Fortran 77, ~20 years old) was going to be damn near impossible. I'm sure I haven't gotten rid of all of the problems, but it made me bite the bullet and refactor the accursed thing down to about 800 nicely indented lines using Fortran 95 features like internal functions/subroutines, using non-dotted operators (== instead of .eq.), etc. When it starts acting up again, I won't mind looking at it nearly as much, and I won't feel as bad if I need to have someone else look at it.

-Lee
 

Bad Paper

macrumors 6502
Apr 20, 2007
296
0
graphite clamshell
That's what counts. What would it have taken for you to find those other, perhaps more devious, bugs if you hadn't made a silly mistake?

I am reasonably confident that there is a memory leak in one of our background processes, and i knew debugging it in it's current form (~1300 lines of Fortran 77, ~20 years old) was going to be damn near impossible. I'm sure I haven't gotten rid of all of the problems, but it made me bite the bullet and refactor the accursed thing down to about 800 nicely indented lines using Fortran 95 features like internal functions/subroutines, using non-dotted operators (== instead of .eq.), etc. When it starts acting up again, I won't mind looking at it nearly as much, and I won't feel as bad if I need to have someone else look at it.
I'm forbidden to do this sort of thing at work. I play with 10-20 yr old SAS code, and nothing. is. ever. removed. Nothing. is. ever. fixed. unless. specifically. asked. for. It is maddening.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.