5 ms·
My way is simple - I occasionally grep the whole codebase for "TODO", "FIXME" and "HACK", and review the results, trying to either immediately fix them or turn
by TeMPOraL 10y ago
My way is simple - I occasionally grep the whole codebase for "TODO", "FIXME" and "HACK", and review the results, trying to either immediately fix them or turn into actionable items.
At my $dayjob I do Java, for which the IDE also lets me conveniently view the TODO/FIXME entries. I also have Sonar, which reminds me of them through low-importance warnings.
- jbernardo95 10y agoThis tools helps you with that process https://github.com/ahmadassaf/code-notes https://github.com/ahmadassaf/code-notes
- TeMPOraL 10y agoThanks for the link, it looks nice. I'll consider it if I ever start doing anything in Node. At the moment, however, I prefer it simple: In Fish Shell I have: function grp grep -rni $argv end and I simply do "grp todo", "grp fixme", etc. Example output (it's actually also colored): src/main.lisp:63: ;; TODO FIXME introduce at some point a mapping for page list -> generation function, or something. src/main.lisp:89:;;; FIXME deprecated src/main.lisp:94:;;; FIXME unused and probably throwaway src/site-components.lisp:9: ;; FIXME use some page structure map to map from (name language) to base filepath src/site-components.lisp:31: (let ((colorize:*css-background-class* "no-paren-fx")) ;FIXME make configurable maybe? That's good enough for me :). Also I have appropriate highlights set up in editors & IDEs I use :).
- PerfectDlite 10y agoIDEA has separate TODO tab, which can also display TODO regarding your scope - e.g. your current changes.
- nobodyorother 10y agoIIRC, most Java IDEs also natively support XXX as an alternative to HACK. "sed 's/HACK/XXX/g'" to the rescue?
- WorldMaker 10y agoMany IDEs even give you the option to add TODO comment keywords as you see fit, so you could add HACK to the list directly. It also provides room for more specific and/or interesting keywords like REFACTOR or DESTROY.
- TeMPOraL 10y agoWhen I was using Eclipse I actually put a few swearwords on that list just in case - sometimes someone on the team loses their temper and leaves a nasty comment in the codebase.