CodeSOD: A Careless Comment

Today is a short hit, as there's a comment I want to highlight. This comes to us from Benjamin Urquhart. It's his comment, it's his code, and it's his confession.

// See #ISSUE // This is not the place to monkey patch this // issue, but it's like 2am and quite frankly // I don't care anymore.

He explains:

Was working on a new feature and needed this particular bug fixed, so I did it in the quickest way possible. Still not sure where else to put this fix (it's in a ToString call, so I guess anywhere is better).

Comments like this are the cry of a developer who knows they should do something different, but just needs to get things done.

[Advertisement] Continuously monitor your servers for configuration changes, and report when there's configuration drift. Get started with Otter today!

This post originally appeared on The Daily WTF.

Leave a Reply

Your email address will not be published.