Skip to content

Instantly share code, notes, and snippets.

@MadaraUchiha
Last active December 10, 2015 23:49
Show Gist options
  • Save MadaraUchiha/4512457 to your computer and use it in GitHub Desktop.
Save MadaraUchiha/4512457 to your computer and use it in GitHub Desktop.
Comments for the Auto Review Comments plugin for Stack Exchange
callback(
[
{ "name": "Don't use mysql_*", "description": "<a href=\"http://bit.ly/phpmsql\"><strong>Please, don't use `mysql_*` functions in new code</strong></a>. They are no longer maintained <a href=\"https://wiki.php.net/rfc/mysql_deprecation\">and are officially deprecated</a>. See the <a href=\"http://j.mp/Te9zIL\"><strong>red box</strong></a>? Learn about <a href=\"http://j.mp/T9hLWi\"><em>prepared statements</em></a> instead, and use <a href=\"http://php.net/pdo\">PDO</a> or <a href=\"http://php.net/mysqli\">MySQLi</a> - <a href=\"http://j.mp/QEx8IB\">this article</a> will help you decide which. If you choose PDO, <a href=\"http://j.mp/PoWehJ\">here is a good tutorial</a>."},
{ "name": "Parsing HTML with RegEx", "description": "Please refrain from parsing HTML with RegEx as it will <a href=\"http://$SITEURL$/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454\">drive you į̷̷͚̤̤̖̱̦͍͗̒̈̅̄̎n̨͖͓̹͍͎͔͈̝̲͐ͪ͛̃̄͛ṣ̷̵̞̦ͤ̅̉̋ͪ͑͛ͥ͜a̷̘͖̮͔͎͛̇̏̒͆̆͘n͇͔̤̼͙̩͖̭ͤ͋̉͌͟eͥ͒͆ͧͨ̽͞҉̹͍̳̻͢</a>. Use an <a href=\"http://stackoverflow.com/questions/3577641/how-do-you-parse-and-process-html-xml-in-php\">HTML parser</a> instead."},
{ "name": "w3schools", "description": "w3schools is a wrong and misleading site. You shouldn't use it as reference for any sort of language. For PHP, there's the <a href=\"http://php.net\">PHP Manual</a>, for JavaScript, there's <a href=\"https://developer.mozilla.org/\">Mozilla Developer Network (or MDN)</a>. See http://w3fools.com to further understand why you should never use w3schools."},
{ "name": "Format Code Properly", "description": "Please format your code properly. A code block is inserted by indenting 4 spaces before any line of code. I've formatted the code for you this time, but please format it properly next time. For further help, see the <a href=\"http://$SITEURL$/editing-help#code\">Editing FAQ</a>"},
{ "name": "[Q]OP did not post error messages", "description": "Please improve your question by posting all relevant <strong>error messages</strong> exactly as they appear. Also, make sure to include a properly-formatted sample of your <strong>expected output</strong> so folks understand the results you're trying to achieve."},
{ "name": "[Q]OP did not post code in his question (HTML/CSS/JS)", "description": "Please post the code relevant to the question. Ideally, <strong>in addition</strong> to the code in the question body itself, please add a <a href=\"http://jsfiddle.net/api/post/jquery/1.7.1/\">jsFiddle</a> example of your problem. It will help us help you."},
{ "name": "[Q]OP did not post code in his question", "description": "Please post the code relevant to the question. You can do so by editing your own question, and adding it there, in the body of the question. It will help us help you."},
{ "name": "[Q]Improve your Accept Rate", "description": "Please improve your accept rate. You can do it by <a href=\"http://$SITEURL$/faq#howtoask\">accepting answers to questions you've asked</a>. People will be much happier to answer your questions if they know you'll accept the correct one, as it rewards both them and you. Good luck :)"},
{ "name": "[A]Requests to OP for further information (new)", "description": "This is really a comment, not an answer. With a bit more rep, <a href=\"http://$SITEURL$/privileges/comment\">you will be able to post comments</a>. "},
{ "name": "[A]Not an answer. (not new)", "description": "This is really a comment, not an answer. You are not new here, you should already know the difference between a comment and an answer. I'm flagging this post for deletion."},
{ "name": "[A]Link only Answers", "description": "<a href=\"http://meta.stackoverflow.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers/8259#8259\">Link only answers are discouraged!</a> Please write a full answer, instead of just providing a link."},
{ "name": "[A]Accept this answer", "description": "If this answer solved your problem, consider upvoting and accepting it, by clicking on the large green tick mark (✔) under the answer's score."},
{ "name": "Don't place personal data in posts", "description": "Please remember that all sites on StackExchange network are public, meaning anything you place here would be shown to to world wide web. Please refrain from posting any passwords, credit card numbers, access tokens, database credentials, or any other personal information of you or anyone else."},
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment