###[Q] general title (about CR goals) The current question title, which states your concerns about the code, is too general to be useful here. Please [edit] to the site standard, which is for the title to simply state the task accomplished by the code. Please see [How do I ask a good question?](https://codereview.stackexchange.com/help/how-to-ask), as well as [How to get the best value out of Code Review: Asking Questions](https://codereview.meta.stackexchange.com/q/2436/120114) for guidance on writing good question titles. ### [Q] title about mechanism Please [edit] your question so that the title describes the *purpose* of the code, rather than its *mechanism*. We really need to understand the motivational context to give good reviews. Please see [_How to get the best value out of Code Review: Asking Questions_](https://codereview.meta.stackexchange.com/q/2436) for guidance on writing good question titles. ###[Q] update title to summarize outcome We need to know *what the code is intended to achieve*. To help reviewers give you better answers, please add sufficient context to your question, including a title that summarizes the *purpose* of the code. We want to know **why** much more than **how**. The more you tell us about [what your code is for](//meta.codereview.stackexchange.com/q/1226), the easier it will be for reviewers to help you. The title needs an [edit] to simply [**state the task**](//meta.codereview.stackexchange.com/q/2436), rather than your concerns about the code. ###[Q] off-topic: Authorship of code Please [take the tour](https://codereview.stackexchange.com/tour), and read up at our [help center](https://codereview.stackexchange.com/help/on-topic). This question is _off-topic_ because this site is for reviewing code. [β€œ_For licensing, moral, and procedural reasons, we cannot review code written by other programmers. We expect you, as the author, to understand why the code is written the way that it is._”](https://codereview.stackexchange.com/help/on-topic) ###[Q] not workingg Unfortunately this question is _off-topic_ because this site is for reviewing **working** code. Please [take the tour](https://codereview.stackexchange.com/tour) and read up at our [help center](https://codereview.stackexchange.com/help/on-topic). When the code works then feel free to [edit] the post to include it for a review. ###[Q] broken Unfortunately this post is off-topic for this site. Please read [What topics can I ask about here?](https://codereview.stackexchange.com/help/on-topic) - note that it states "_If you are looking for feedback on a specific **working** piece of code...then you are in the right place!_" When the code works as intended, please [edit] your post to include the working code and it can be reviewed." ###[Q] missing code context Please provide more complete code - e.g. complete function/method/class. ["_there are significant pieces of the core functionality missing, and we need you to fill in the details. Excerpts of large projects are fine, but if you have omitted too much, then reviewers are left imagining how your program works._"](https://codereview.meta.stackexchange.com/a/3652/120114) ###[Q] need more details It would benefit reviewers to have a bit more information about the code in the description. From [the help center page _How to ask_](https://codereview.stackexchange.com/help/how-to-ask): "_You will get more insightful reviews if you not only provide your code, but also give an explanation of what it does. The more detail, the better._" ###[Q] stub code Unfortunately this question does not match what this site is about. Please re-read the Help center page [_What topics can I ask about here?_](https://codereview.stackexchange.com/help/on-topic) - specifically the third question. Reviewers need more than hypothetical/stub code. For more information, see [this meta post](https://codereview.meta.stackexchange.com/a/3652/120114). ###[Q] untested If you're not sure whether your code works correctly, I'm afraid it's not yet ready for review. Code Review is for finished code that you believe to be functionally correct. ###[Q] More than one question asked It is preferred if you can post separate questions instead of combining your questions into one. That way, it helps the people answering your question and also others hunting for at least one of your questions. Thanks! ###[Q] Duplicate Closure This question will probably be closed as a duplicate soon. If the answers from the duplicates don't fully address your question please edit it to include why and flag this for re-opening. Thanks! ###[Q] Common title What task does this code accomplish? Please tell us, and also make that the title of the question via [edit]. Maybe you missed the placeholder on the title element: "_State the task that your code accomplishes. Make your title distinctive._". Also from [How to Ask](https://codereview.stackexchange.com/questions/how-to-ask): "_State what your code does in your title, not your main concerns about it._". ###[Q] Edited Title I [changed the title]() so that it describes what the code does per [site goals](https://codereview.stackexchange.com/questions/how-to-ask): "_State what your code does in your title, not your main concerns about it._". Feel free to [edit] and give it a different title if there is something more appropriate. ###[Q] advice for future code Questions asking for advice about [code not yet written](https://codereview.meta.stackexchange.com/a/3651/120114) are [off-topic](https://codereview.stackexchange.com/help/on-topic), as the code is not ready for review. ###[Q] 3rd party code link Maybe you missed the text on the right side when asking: "_Your question must contain code that is already working correctly, and **the relevant code sections must be embedded in the question**._" Questions must [include the code to be reviewed](https://codereview.meta.stackexchange.com/a/3653/120114). Links to code hosted on third-party sites are permissible, but the most relevant excerpts must be embedded in the question itself. ###[Q] 3rd party code link If you want more code than that snippet of HTML reviewed then please expand the code here. [Please embed the code to be reviewed directly in the question](https://codereview.meta.stackexchange.com/a/3653/120114). Links to code hosted on third-party sites are permissible, but the most relevant excerpts must be embedded in the question itself. A [stack snippet](https://stackoverflow.blog/2014/09/16/introducing-runnable-javascript-css-and-html-code-snippets/) could also be used to embed the code. ###[Q] editor added code from 3rd party link Thank you for attempting to help keep the question on-topic, but please refrain from adding the code to the post- [per licensing and other reasons](https://codereview.meta.stackexchange.com/q/467/120114) the OP must be the one to do that. ###[Q] Commented with more details When adding additional information you should [edit] your question instead of adding a comment. I have added that information to your post. Learn more about comments including when to comment and when not to in [the Help Center page about Comments](https://codereview.stackexchange.com/help/privileges/comment). ###[Q] Add answer instead of comment Please add an answer instead of a comment. Refer to the section **When _shouldn't_ I comment?** on [Comment everywhere](https://codereview.stackexchange.com/help/privileges/comment), and note that [short answers are acceptable](https://codereview.meta.stackexchange.com/a/1479/120114). ###[Q] merge accounts it appears you have a registered account (as evidenced by the suggested edit), which can be merged with your unregistered account. You can use the [contact SE page](https://codereview.stackexchange.com/contact) and request the accounts be merged. ###[Q] rolled back(200_success's) I have rolled back Rev 2 β†’ 1. Please see [_What should I do when someone answers my question?_](https://codereview.stackexchange.com/help/someone-answers). ###[Q] don't update code Please do not update the code in your question to incorporate feedback from answers, doing so goes against the Question + Answer style of Code Review. This is not a forum where you should keep the most updated version in your question. Please see [What should I do when someone answers my question?](https://codereview.stackexchange.com/help/someone-answers) as well as [_what you may and may not do after receiving answers_](http://codereview.meta.stackexchange.com/a/1765). ###[Q] code rolled back I rolled back your last edit. After getting an answer you are not allowed to change your code anymore. This is to ensure that answers do not get invalidated and have to hit a moving target. If you have changed your code you can either post it as an answer (if it would constitute a code review) or ask a new question with your changed code (linking back to this one as reference). See the section _What should I not do?_ on [_What should I do when someone answers my question?_](https://codereview.stackexchange.com/help/someone-answers) for more information ###[Q] rolled back last edit (Graipher's) I rolled back your last edit. After getting an answer you are [not allowed to change your code anymore](https://codereview.stackexchange.com/help/someone-answers). This is to ensure that answers do not get invalidated and have to hit a moving target. If you have changed your code you can either post it as an answer (if it would constitute a code review) or ask a new question with your changed code (linking back to this one as reference). Refer to [this post](https://codereview.meta.stackexchange.com/a/1765/120114) for more information ###[Q] SQL need more info Please read the [sql tag wiki](https://codereview.stackexchange.com/tags/sql/info) - especially the **Question Guidelines** section. Before reviewing this code, it would be helpful to have some more information about the data. ###[Q] Need more context This question lacks any indication of what the code is intended to achieve. To help reviewers give you better answers, please add sufficient context to your question, including a title that summarises the purpose of the code. We want to know **why** much more than **how**. The more you tell us about [what your code is for](https://codereview.meta.stackexchange.com/q/1226), the easier it will be for reviewers to help you. The title needs an [edit] to simply [state the task](https://codereview.meta.stackexchange.com/q/2436). ###[Q] Which site and CR or not See ["Which Site?"](https://meta.stackexchange.com/a/129632/341145) and ["Code Review or not?"](https://codereview.meta.stackexchange.com/a/5778/120114) ###[Q] database design with no code [Code to generate such a database can be reviewed](https://codereview.meta.stackexchange.com/a/9116/120114) but without any code it seems it is not [on-topic](https://codereview.stackexchange.com/help/on-topic). ###[Q] UML design off-topic unless with code. Ahoy! The general consensus is that [UML designs are not reviewable unless they accompany code](https://codereview.meta.stackexchange.com/a/1926/120114). ###[Q] Character limit increased If you are concerned about the size of your code, bear in mind that [the character limit on Code Review was increased to 65k](https://codereview.meta.stackexchange.com/a/7163/120114). ###[Q] cross-posted Please note that [cross-posting is generally frowned upon](https://meta.stackexchange.com/a/64069/341145) and should not be done. ###[Q] image of code/text Please [add text instead of an image of text](https://meta.stackoverflow.com/a/285557/1575353). ###[Q] Should use English only ["_Unless you're posting on a language-related site (e.g. French Language) or a site where all questions are expected to be in a different language (e.g. Stack Overflow in Spanish), all posts are expected to be in English_"](https://meta.stackexchange.com/a/13684/341145). ###[A] ChatGPT answer [AI generated answers are not welcome for various reasons, including plagiarism.](https://codereview.meta.stackexchange.com/a/10863/120114) ###[A] Different language Hi. The question is tagged [tag:Javascript]. The consensus is that [answers should use the same language as the code in the question](https://codereview.meta.stackexchange.com/a/2631/120114). Please write your answer according to the tags. Thanks! :) ###[A] Nothing insightful This answer doesn't really offer much for the OP. Please (re-) read [The help center page _How do I write a good answer?_](https://codereview.stackexchange.com/help/how-to-answer). Note it states: "_Every answer must make at least one **insightful observation** about the code in the question. Answers that merely provide an alternate solution with no explanation or justification do not constitute valid Code Review answers and may be deleted._" ###[A] don't answer off-topic questions Please note, questions involving code that's not working as intended, are off-topic on this site. If OP edits their post to address the problem and make their post on-topic, they make your answer moot. [It is advised not to answer such questions](https://codereview.meta.stackexchange.com/a/6389/120114). Protip: There are tons of on-topic questions to answer; you'll make more reputation faster if you review code in questions that will get higher view counts for being on-topic. ###[A] don't answer questions likely to be closed [Please refrain from answering questions that are likely to get closed.](https://codereview.meta.stackexchange.com/a/6389/35991) ###[A] don't answer questions likely to be closed - please flag until you gain CV priv [Please refrain from answering questions that are likely to get closed.](https://codereview.meta.stackexchange.com/a/6389/35991). in the future please use the [flag option](https://codereview.stackexchange.com/help/privileges/flag-posts) until you gain the [cast close and reopen votes](https://codereview.stackexchange.com/help/privileges/close-questions) privilege ###[A] link-only answer A link to a solution is welcome, but please ensure your answer is useful without it: [add context around the link](https://meta.stackexchange.com/a/8259) so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. [Answers that are little more than a link may be deleted](https://codereview.stackexchange.com/help/deleted-answers). ###[A] Doesn't answer question This does not answer the question the OP posed (i.e. "_How can I make it run faster? How can I write it in a OOP paradigm, and will it run faster?_"). Please see [How do I write a good answer](https://codereview.stackexchange.com/help/how-to-answer) before posting an answer. If you have a related but separate question, you can [ask](https://codereview.stackexchange.com/questions/ask) another question and mention this question, or if you have code not working, try [SO]. ###[A] alternative solution/ code dump You have presented an alternative solution, but haven't reviewed the code. Please explain your reasoning (how your solution works and why it is better than the original) so that the author and other readers can learn from your thought process. Please read [Why are alternative solutions not welcome?](https://codereview.meta.stackexchange.com/a/8404/120114) ###[A] follow up question This does not really answer the question. If you have a different question, you can ask it by clicking [Ask Question](https://codereview.stackexchange.com/questions/ask), though only if you have **working code**. This statement would be appropriate as a [comment](https://codereview.stackexchange.com/help/privileges/comment), though you will need to earn 50 reputation points first... ###[A] Answers just to say Thanks! Please don't add "thanks" as answers. Invest some time in the site and you will gain sufficient [privileges](https://codereview.stackexchange.com/privileges) to upvote answers you like, which is the Code Review way of saying thank you. ###[A] Nothing but a URL (and isn't spam) Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. ###[A] Requests to OP for further information This is really a comment, not an answer. With a bit more rep, [you will be able to post comments](https://codereview.stackexchange.com/privileges/comment). For the moment I've added the comment for you, and I'm flagging this post for deletion. ###[A] OP using an answer for further information Please use the *Post answer* button only for actual answers. You should modify your original question to add additional information. ###[A] OP adding a new question as an answer If you have another question, please ask it by clicking the [Ask Question](https://codereview.stackexchange.com/questions/ask) button. ###[A] Another user adding a 'Me too!' If you have a NEW question, please ask it by clicking the [Ask Question](https://codereview.stackexchange.com/questions/ask) button. If you have sufficient reputation, [you may upvote](https://codereview.stackexchange.com/privileges/vote-up) the question. Alternatively, "star" it as a favorite and you will be notified of any new answers. ###[A] NAA self-answer on CR While OPs are [encouraged to answer their own questions](https://codereview.stackexchange.com/help/self-answer) bear in mind that ["_Your answer must meet the standards of a Code Review answer, just like any other answer. **Describe what you changed, and why**._"](https://codereview.stackexchange.com/help/someone-answers). [Code-only answers that don't actually review the code are insufficient](https://codereview.meta.stackexchange.com/q/1463) and are subject to deletion. ###[A] post-accepted answer - Please consider voting Thank you for taking the time to accept the answer. Please consider voting on it as well. ["_The first thing you should do after reading someone's answer to your question is vote on the answer, like any user with sufficient reputation does. Vote up answers that are helpful, and vote down answers that give poor advice._"](https://codereview.stackexchange.com/help/someone-answers) ### [A] short answer- expand? While it seems that [short answers are acceptable](https://codereview.meta.stackexchange.com/a/1479/120114) are you able to expand this answer, perhaps explaining reasons for the suggestion? ###[C] Too localized This question appears to be off-topic because it is too localized. ###[EQ] Improper tagging The tags you were using are not appropriate for this question. Please review [What are tags, and how should I use them?](https://codereview.stackexchange.com/help/tagging)