Posted on Leave a comment

Programming Error of the Day – Global Search and Replace

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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.