Bowing down to Postel!

“Be liberal in what you accept, and conservative in what you send.”

Let us say we wanted a certain environment variable setting (or any user setting) to be set “true” or “false”, bow down to Postel and accept “true”, “yes”, “1” as being of the same value and “false”, “no”, “0” (zero) as well. Little extra bit of code will make up for increased and intuitive usability.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s