Preventing Temporarily-necessary Hacks from Slipping into the Final Release
Jason Fried asked:
Here are some techniques we've used:
-
Wrap comments in a script which hides the selection based on IP address. In other words, machines outside our network are served pages without comments rendered-in.
The advantage of this is that the notes can stay, even if the page is live.
-
Add something like '[todo][Danny]' at the beginning of each comment.This can only be trusted as long as the person with responsibility for making the work live knows to check for this terminology. Fortunately we have a pre-publication checklist which includes this check.