Java Friday Fun: @WTF annotations in code
Time for a little geeky gimmick. Some developers see and express a lot of “WTF??” while trying to understand code
IN this spirit, i created a quick @WTF annotation for Java.
Besides being completely useless (its removed at compile time), its only purpose is to give developers a new way to express themselves in code.
The cartoon states “The only valid measurement of code quality: WTFs/minute”. With the <code>@WTF</code> annotations, I would like to take it a little further. By annotating the code, you can actually encourage colleagues to help you fix it.
The best fix for WTF-code is of course to refactor, so that it becomes readable.
Interesting article:
http://www.gridshore.nl/2008/03/29/how-wtfs-improve-code-quality-awareness/
The original cartoon strip: http://www.osnews.com/story/19266/WTFs_m
September 21st, 2011 at 00:11 (GMT-1)
Fun idea. And a good article you linked to. Thanks!
September 21st, 2011 at 17:17 (GMT-1)
WTFs/minute – nice. Last week I was running at least 10WTF’s/minute, methinks.
September 25th, 2011 at 16:10 (GMT-1)
Great Very funny, i will have to pass this on to some of my geeky friends.
September 26th, 2011 at 02:02 (GMT-1)
I am going to shoot a link to all of my coding buddies about this one. Nice job and humorous.