I was just wandering why is the prefix XXX
?
As far as I know its used for notes/reminders (or at least this is what I use it for and that is what the people on most of the links I googled use it for).
So does anyone know where the XXX
prefix come from ?
From the Hacker's Dictionary entry for "XXX":
Various reasons:
There's also a reference to it on Wikipedia:
From Sun/Oracle's Java code conventions, section 10.5.4:
XXX
, along withFIXME
andTODO
, is known in Eclipse as a task tag, and is indexed by the IDE to let you find the spots marked with those tags easily. You can edit such tags in the Eclipse Preferences -> Java -> Compiler -> Task Tags.As to where it comes from: it probably emerged form the "tags" that programmers spontaneously wrote in their code to quickly mark a given line. While FIXME and TODO are explicit enough, the reason XXX was used could be a combination of these reasons:
I can't think of anything else...
I've worked with a team where
XXX
was used to point out a "bug or task that was not yet entered in Trac.". After it was entered in Trac the comment would be changed toTODO
with the ID appended.To Eclipse though, it's just a marker like
TODO
andFIXME
. I imagine that it's originally used as a strong form ofTODO
. You usually see comments like this:But sometimes you'll have a comment like:
Unfortunately a quick
grep
wont make that SQL injection bug stand out among the 1000s of otherTODO
s. Using XXX here would help mark things that must be done before a milestone/release etc.