f(f(x)) = f(x)

This property is called idempotent.

What has this got to do with software?

Enterprise software constantly deals with upgrading data. Of course, as this is a very challenging and complex task, most small/medium s/w companies, I believe, don’t invest time and effort doing this. But that’s a different topic. However, if one were to embark up on such upgrades, one of the things that’s required is to make the upgrades idempotent.

Writing the upgrades that are idempotent ensures there is no data corruption and that the scripts are run faster.


Leave a comment

Filed under Tech - Tips

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s