Had another day of what if at work today. Lots of "what if this happened, the code doesn't deal with that" basically. Far too often I hear "but that can't happen" to which I say "why not?" and the blank looks I get more often than not are more than enough answer for me. I then have to explain to yet another developer that if something is outside the control of your code then you should try and cover all those what if cases. Look for all corner cases that shouldn't happen but might and catch them and deal with them. You would be amazed how many developers don't even think of that and cause problems as a result of that.
My only wish is that I could do this kind of thing for life in general. I know I try to make sure nothing that is outside of my control impacts my wife and I's life but I don't always succeed. That is kind of frustrating knowing that if maybe I had done something to deal with it we wouldn't have to suffer it. Of course trying to cover all eventualities in life is pretty much impossible but I think I have all the important ones covered. We stay fed and healthy. We stay happy together. Other than that everything else is extra although reducing the outside influence other people have is a continuing goal.
I just wish there was some sort of automatic life analyser like we have for code. Run it through your life and let it point out the areas that might cause problems in the future and that should be fixed. It would save me so much brain work :| .
No comments:
Post a Comment