David the Ineffecient Programmer
Sometimes I make myself so mad at work. I needed to fix something and wrote this:
// fix the ssn right quick... string[] choo = ssn.Split('-'); ssn = ""; foreach(string s in choo){ ssn+= s; }
Then I thought about it a while and wrote:
// fix! ssn = ssn.Replace("-","");
I hate how I can't think the most effecient the first time around. Sigh. It makes me embarrased; what if Joel or Don or any other gods of programming saw how crap I wrote it the first time?
11:00:23 AM
|