Page Template
The following is a copy/paste of the markup used to create the Help page. If you want to experiment with changing things, you can do it here, or copy/paste the following in to a 'scratch' answer, etc.
Code Review Stack Exchange is for sharing code from projects you are working on for peer review. If you are looking for feedback on a specific working piece of code from your project in the following areas…
- Best practices and design pattern usage
- Security issues
- Performance
- Correctness in unanticipated cases
then you are in the right place!
However, if your question is not about a particular piece of code and instead is a generally applicable question about …
- Best practices in general (that is, it's okay to ask "Does this code follow common best practices?", but not "What is the best practice regarding X?")
- Tools, improving, or conducting code reviews
- How to add a feature to or solve a problem with your code
- Trouble-shooting, debugging, or understanding code snippets
- Higher-level architecture and design of software systems
then your question is off-topic for this site.
I'm confused! What questions are on-topic for this site?
Simply ask yourself the following questions. To be on-topic the answer must be yes to all questions:
- Does my question contain code? (Please include the code in the question, not a link to it)
- Did I write that code?
- Is it actual code from a project rather than pseudo-code or example code?
- Do I want the code to be good code, (i.e. not code-golfing, obfuscation, or similar)
- To the best of my knowledge, does the code work?
- Do I want feedback about any or all facets of the code?
If you answered yes to all the above questions, your question is on-topic for Code Review.
Make sure you include your code in your question
This site is for code reviews, which are hard to do when the code is behind a link somewhere out there on the internet. If you want a code review, you must post the relevant snippets of code in your question. It is fine to post a "see more" link (though, do be careful — very few reviewers will be willing to click through and read thousands of lines of your code), but the most important parts of the code must be placed directly in the question.
Reviewers may comment on any part of the code.
Feel free to call attention to specific areas you are concerned about (performance, formatting, etc). However, any aspect of the code posted is fair game for feedback and criticism.
What? Questions about code reviews are off topic?
Conducting code reviews is an important skill, much like any other programming discipline. These "whiteboard"-style questions are best asked on Programmers Stack Exchange.
For more help, see "What types of questions should I avoid asking?"
Please look around to see if your question has been asked before. It’s also OK to ask and answer your own question.
If your question is not specifically on-topic for Code Review Stack Exchange, it may be on topic for another Stack Exchange site. If no site currently exists that will accept your question, you may commit to or propose a new site at Area51, the place where new Stack Exchange communities are democratically created.