Going The Wong Way I'm ALWAYS going the Wong way

EAFP

There are a couple of types of people in the world. There are some that want to make sure that all is well before they proceed and then there are those that will just do things without thinking about the consequences.

There is a related idea in computer programming. You can check all of the variables, program state, and other circumstances. When everything is kosher, you go for it. And hopefully you are successful. The problem with this, though, is that you might forget to check something. Perhaps you haven’t accounted for everything as you should have. Then what? Then disaster! (Or something like that.)

On the other hand, there is another idea that can be used. It is the idea (at least in Python) that it is Easier to Ask for Forgiveness than Permission (i.e., EAFP). This way of dealing with errors is to go for the gusto and then deal with problems as they arise.

I need a little more EAFP.

Comments