Our invite link is https://discord.gg/code.
You can post your question in the channel most relevant to your language or framework. Post in one channel only, and don't crosspost. Don’t ask if you can ask either, just post your question and wait for a response.
If you are unsure which channel to post in, see the #get-help-here channel.
To maximise people's ability to help you with your question, here are some tips for formatting a technical question.
Please include the following things in your question:
- Expectations vs reality: What did you expect your code to do? What did it actually do?
- Errors: If your code produced an error, include the stack trace (all of it! Use a code sharing service if it's very long).
- Code: The absolute most critical part. Include all code relevant to your question. No screenshots - see below for code sharing directives.
- Libraries: If not obvious, say what library/libraries you're using.
Do not just say...
- "Hello"
- You're trying to be polite by not jumping right into the request, like you would do in person or on the phone. Chat is neither of those things, and typing is much slower than talking. Instead of being polite, you are just making the other person wait for you to phrase your question. See https://nohello.com for more information.
- "My code doesn't work"/"<thing> didn't fix it"
- This description is far too vague to do anything about, and requires long litanies of follow-up questions. People may choose to merely ignore your question because you did not even ask one.
- "Can someone help me?"/"Can I ask a question?"
- This is in the same vein as the above two examples. This is a non-question that people may choose to just ignore, as finding out the actual question requires a lot of added time and effort.
- "Any <subject> experts here?"
- Asking if there are any "experts" to help you implies very negative things. You're walling people who do not self-identify as experts (which is most people) off from answering your question, even though the question may not need any specific expertise whatsoever to answer. In general, phrasing your question in this way just discourages people from ever actually answering it.
- "Please just give me the code to do <thing>"
- "Give someone a fish, and you'll feed them for a day. Teach someone to fish, and you'll feed them for a lifetime." Spoonfeeding you answers is in nobody's best interest. If you are given the answer on a silver platter, you'll be back the next day with the same problem without even realizing it's the same problem, because you learned nothing. Helping you understand the logic will help you understand how to arrive at the answer yourself, and will help you be able to write solutions to the same problem yourself in the future.
When posting your question, do not...
- Crosspost
- Please refrain from posting your question in multiple channels, or linking the channel elsewhere. If someone knew e.g. Python, they would be in the Python channel; asking in irrelevant channels is just spam. Be patient in waiting for an answer, as it may take time for someone with adequate knowledge to answer your question. A well-structured question as per directives above will help you get help quicker.
- Send screenshots of code, and especially pictures of a monitor displaying code
- Ask about your attempted solution rather than your actual problem
- This is called "the XY problem". See https://xyproblem.info for more information.
- Post "fake code"
- Attempting to obfuscate what you are doing by rewriting your actual code into a generic "fake" version is extremely error-prone and is nigh-guaranteed to result in you getting an incorrect answer. "Fake code gives fake answers" is a phrase commonly used to describe this. If what you are doing is so sensitive that you cannot even disclose basic code (which is often very generic and non-identifying), you would probably not be asking your question on the internet at all.
Finally: Understand that you are not entitled to receive help. People can choose to help who they like. Be patient in waiting for an answer, and be cooperative with the people helping you. As the person asking, it is your responsibility to ensure that you can be helped.
As our rules state, TCD is not a replacement for doing your own research. Try searching Google, DuckDuckGo or any other search engine first, or try finding a solution on StackOverflow (or any other applicable forum). If that doesn’t help, you can ask on the server. TCD is not a replacement, but a complement to those services.
As our rules state, we will not do your homework for you. What we can do is help you out with specific parts of your homework which you cannot comprehend or need help solving.
Codeblocks can be created in two ways.
First off, you have inline blocks that can be created using backticks (`) on each side of your code.
Example: `print("Hi!")`
These blocks cannot have syntax highlighting and will look odd with multi-line content, so it's probably wise to only use them for short, one-line snippets.
Then you have the standard, multiline blocks that also include syntax highlighting. You can make use of those by surrounding your code with three backticks (`) on each side. You can also enable syntax highlighting by typing the name of the language right after the first three backticks.
Example:
```python
if True: print("Hi!")
```
If the code you want to share is longer than a few dozen lines, please use a code sharing site like GitHub Gist, Hastebin, PrivateBin, JSfiddle, Codepen or similar. As per directives above and the rules, do not send screenshots of code or pictures of a monitor displaying code.