I recall a small project where I wrote about 1000 lines on the first day. On the second day, found a library that solved most of the problem for me, so I was able to cut the solution down to about 50 lines of code. On the third day, found a second library that solved virtually the exact problem, so it was cut down again to 2 lines of code. 2 lines of code in 3 days.
Source: The Daily, 2SER | 5 April - from CPD
I thought it was still a success, because I'd virtually eliminated the chance of any bugs and found a simple, elegant solution to the original problem. If I'd instead checked in the 1000 lines of code, it might have looked good on my code metrics, but I'd have probably spent another couple weeks debugging. @_jeff_nelson