jump to navigation

NOTE: The spam filter is being unusually aggressive. If you comment does not immediately appear, it has simply been placed in moderation and I will approve it as quickly as possible. Thank you for your patience.

"Murphy was an optimist!"

Programming Error of the Day – Global Search and Replace January 13, 2009 10:15 am

Posted by Doug McCaughan in : Programming, Technology
, trackback

I had a very unique string to replace throughout my application. Simple enough, instead of being text, it should be an image. I had the image code already written for a different image so I copied it, then went to search and replace the string but forgot to change the name of the image. I originally had 13 replacements across several files. Now I have to manually inspect 32 lines of code to make 13 corrections.

Remember, automated tools are a great way to make mistakes faster. And no, this has nothing to do with Sh*t Creek. That boat is totally about a Thursday deadline and a much needed miracle.

Comments after advertisement


no comments yet - be the first?