(no title)
edvald | 3 years ago
throw "TODO" // <comment with some additional context to remember>
Substitute for your language's syntax of course.I find this especially handy when writing test specs, but it's also handy when creating new functions etc. For tests I lay out the test descriptions with just this one line in the function body. For new functions/methods I can define the function and its return type (assuming a type-safe language) which makes the code using it compile, but leaves the implementation TBD.
The placeholders are then implicitly flagged in test runs and easily found. Basically my text search results for 'throw "TODO"' become my TODO list.
quickthrower2|3 years ago
edvald|3 years ago
Groxx|3 years ago