// TODO: Stop showing that stupid "are you really sure?" dialog
showannoyingdialog("Are you really sure?");
#include <iostream>
int calculateUserAge();
int main()
{
std::cout << "The age of the user is: " << calculateUserAge() << std::endl;
return 0;
}
int calculateUserAge()
{
//TODO: Implement the body of this function
return 0;
}
//NOTE ;) These are just guidlines and almost everyone uses some more or less than the above, but everyone uses FIXME, TODO and NOTE when writing code
- NOTE describes a situation which is not obvious from reading the code directly but is desired behavior or describes assumptions or constraints that are not explicit.
Ex: "NOTE: this will not work with values less than zero."
Ex: "NOTE: this function was added as a work around for the bug found "- FIXME denotes code that simply does not work. Describe the symptoms or whatis broken.
Ex: "FIXME: values greater that 10 cause this function to fail."- TODO describes functionality that still needs to be added or describes code that performs a function, but work still needs to be done.
Ex: "TODO: multi-auth is not implemented"- CHECK describes functionality that at initial overview does not appear to be correct but does perform the necessary fuction.
Ex: "CHECK: can 'j' be less than zero here?"- BUG followed by an identifier marks a section of code that is in place or has been fixed because of a bug report.
Ex: "BUG #8452: the value much be checked for null before using"- REQ followed by an identifier is a reference to the requirements documentation.
Ex: "REQ 5.7.1a: non-logged in users are not allowed"- PERF is essentially a NOTE but is specific to a performance optimization. For all intents and purposes NOTE can be used in its place.
Ex: "PERF: ArrayList is explicitly used (rather than List) to minimize the overhead of polymorphism"
From http://www.realityinteractive.com/rgrzywinski/archives/000035.htmlWow :). I have never thought there were such a lot of different comments. Well, today I have learnt something new :). Thank you for providing this info.Quote
- NOTE describes a situation which is not obvious from reading the code directly but is desired behavior or describes assumptions or constraints that are not explicit.
Ex: "NOTE: this will not work with values less than zero."
Ex: "NOTE: this function was added as a work around for the bug found "- FIXME denotes code that simply does not work. Describe the symptoms or whatis broken.
Ex: "FIXME: values greater that 10 cause this function to fail."- TODO describes functionality that still needs to be added or describes code that performs a function, but work still needs to be done.
Ex: "TODO: multi-auth is not implemented"- CHECK describes functionality that at initial overview does not appear to be correct but does perform the necessary fuction.
Ex: "CHECK: can 'j' be less than zero here?"- BUG followed by an identifier marks a section of code that is in place or has been fixed because of a bug report.
Ex: "BUG #8452: the value much be checked for null before using"- REQ followed by an identifier is a reference to the requirements documentation.
Ex: "REQ 5.7.1a: non-logged in users are not allowed"- PERF is essentially a NOTE but is specific to a performance optimization. For all intents and purposes NOTE can be used in its place.
Ex: "PERF: ArrayList is explicitly used (rather than List) to minimize the overhead of polymorphism"
Anyway, C::B version RC2 just supports NOTE, FIXME and TODO.