This post originated from an RSS feed registered with Web Buzz
by Cheah Chu Yeow.
Original Post: Copy ‘n’ Paste and the incorrigible programmer
Feed Title: redemption in a blog
Feed URL: http://blog.codefront.net/xml/rss20/feed.xml
Feed Description: ramblings of a misfit - web development, Mozilla, Firefox, Thunderbird, CSS, programming
We just never learn, do we?
String fromLocationCode;
Location fromLocation = request.getFromLocation();
String toLocationCode;
Location toLocation = request.getFromLocation();
// Do stuff to toLocation
First, my (extremely talented) colleague makes a similar copy and paste blooper, and one day later I repeat the same mistake. But, but… Select boring code, Ctrl-C, Ctrl-V, it’s sooo easy…