It is about code snippet only, but it must be clear what your context is. The snippet could be demonstrative of best techniques of what you have learned, something you did not get at first but finally realized etc. If it depends on freely available other software or is using previously published in Daniweb code, or even from some other web resource, tell clearly the source as internet address . I often get coding ideas tangent to discussion threads here on DaniWeb and give link to that discussion as part lof introduction of code.
Do not forget these points:
good variable names are more important than commenting for bad names
Enough commenting not obvious parts, not too much though
@iamthwee: You misunderstood my smilie, it is really unfair to get so much quite detailed critique from somebody quite knowledgable like rascal^h^h^hhakill (even he can cause unreasonable trouble and positiveness of his motivation may be in doubt) to improve your program. No news is not good news in debugging or finalizing your code. Error reposts are gift for developer. It is like one daughter-in-law at eld times, who washed his mother-in-law's laundry by hand in that kind of washing board so angry and infuriated causing her to wash invigorously, so mother-in-laws laundry was allways most shining and clean one ;).
@mSedique: For posting to competition, yes it is over. Voting continues until end of this month (see link in my signature).
Seriously, not enough people are voting. If you haven't voted yet, why not? If you are thinking about voting, do it now. If you aren't thinking about voting, rethink and do it now.
The members who have entered have taken the time and made the effort to create code snippets for the entire community to use, the least the rest of us can do (those who have not entered code into the competition ourselves) is s devote a little time and effort in return AND VOTE!
Voting has been extended once again, until the end of this month.
This is to try and give as many members as possible the opportunity to vote, as the numbers have been a little disappointing so far. There will be one final push in the next newsletter to encourage voting, and no more deadline extensions :)
Well, the votes are in, and we are happy to be able to announce that the winners are as follows:
The prize for the code snippet which demonstrated the most creative functionality goes to Tony Veijalainen, better known as that popular moderator pyTony for his Python snippet: 'Class based polynomials with magic methods'.
And finally, the prize for the most efficient code snippet is heading in the direction of another moderator (which proves that DaniWeb mods really do 'walk the walk' as well talk the talk when it comes to coding) namely Mikael Persson, a.k.a. mike_2000_17 for his 'Scope-guarded lockable objects in C++11' snippet.
Congratulations to the winners one and all, and our heartfelt thanks to every single one of the DaniWeb members who took the time to both submit a code snippet and to vote upon them.