Here are instructions for voting for winner of the code snippet competition!
http://www.daniweb.com/community-center/threads/429756/code-snippet-contest-...-cast-your-vote

Dani AI

Generated

This thread is from August 2012 (original posts dated August 2 and August 21, 2012), so the referenced voting window is long past. The notes below are written as practical guidance for anyone judging short code entries now and as concrete suggestions to improve future DaniWeb snippet contests — especially useful given ’s point that “it’s hard to vote for anything.”

A compact voting checklist that makes quick, defensible decisions:

  • Reproducibility: includes a minimal "how to run" and sample input/output, so the snippet can be tested quickly.
  • Correctness: solves the stated problem and reasonably handles obvious edge cases.
  • Clarity: readable variable names, concise comments, and a short plain-English explanation of the approach.
  • Robustness: basic error handling or input validation where appropriate.
  • Appropriateness: uses the right algorithmic complexity for the task; avoids unnecessary micro-optimizations that reduce readability.
  • Dependencies & portability: documents any nonstandard libraries, required language/runtime versions, or platform limits.
  • Attribution & license: states whether the snippet is original and how it may be reused.

Suggestions for organizers (for and future hosts): require a 1–2 sentence "what it does" plus one example run and the language/version tag on each entry. Ask entrants to provide a single-line "why this is useful" and use a ranked or multi-criteria poll (clarity, correctness, usefulness) rather than a single up/down vote. That reduces voter paralysis and produces clearer results.

Practical voter rule of thumb (addresses ’s complaint): if entries lack context, prefer the one most likely to be copied into real code — clear, documented, and reproducible beats clever-but-obscure.

Recommended Answers

All 2 Replies

Pretty lame stuff, hard to vote for anything.

Now you know to participate yourself next time:) !

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.