look before you leap

This morning, in the shower, I worked out how to parse a certain sort of configuration file for something I was thinking of writing; it involved going to great lengths to have the ability to have spaces in the tokens [in this case usernames and AFS volume names].

Only after I worked out how to do it, and how to write the code relatively elegantly, did I ask myself the question "But will I ever want to have spaces in my username or volume names?". My answer: "No. That would be stupid."

Moral: Be clear about your requirements before going off and designing anything. :->

I did enjoy the intellectual exercise, though.

Comments are disabled on this entry.
Creative Commons License
This work is licensed under a Creative Commons License.