but what does the XXX generally mean? Is it saying "This is a hack" or maybe "Perhaps we should revisit this later"? Or is it saying something else entirely?
Any of the above.
The choice of XXX versus TODO or FIXME or HACK or something else is not governed by any strong rules or conventions. Basically, it means whatever the person who put it there intended it to mean. It may be obvious ... or it may be totally opaque to you.
UPDATE Wikipedia currently (2016-03-30) says:
Such tags differ widely, but might include:
- ...
- XXX - warn other programmers of problematic or misguiding code
Note the clear caveats in the original text. The XXX could be construed as an allusion to the "XXX" that you see on poison and/or moonshine bottles in classic comics, cartoons, etc.