Ask coding questions

Posts
Pinned
68
Guide to Asking Coding Questions
# **Guide to Asking Coding Questions** ## **Why?** Good questions help your question be solved faster, and people will want to answer your question Bad questions waste time, you will often not get answers that you asked for, and people will often ignore your questions ## **Quick Questions Guide** ### Do This - Always ask your questions in English - Explain what you want the code to do - Explain what the code does - Include error messages - Share the repl with the line numbers - When you figure out the answer, update your post - Put the repl link, instead of pasting code ### Don't Do This - Don't post homework questions - Don't use caps in the title - Don't use words like 'HELP' or 'PLEASE' in the title - Don't post questions that already have an answer (Search Box) - Don't post feedback or bugs on Talk, use [repl.it/feedback](https://repl.it/feedback) for feedback, or [repl.it/bugs](https://repl.it/bugs) for bugs ## **Steps For Better Questions** 1. Understand the code - Read your code and figure out what each line does - If a concept is unfamiliar, Google it - You can also use a debugger to help you 2. Describe the problem - Explain what you want the code to do - Explain what the code does (error messages) 3. Provide the code - Share a repl that has your code - Share the line number(s) of your code issue - Make sure that the code you shared has the issue 4. Format code consistently - Make sure your code is easy to read 5. Check for typos - Make sure the code does not have any typos that would cause the problem 6. Explain what you did to troubleshoot the problem - Make a list of what you think the problem is and try to fix your problem by going through the list 7. Make a guess on what you think the problem might be - Use the list from the previous step 8. Proofread the question - Make sure you provided everything - Clear all confusions that you think there might be 9. Update people on the question - If you figured out the answer, edit the post to tell people - When you get an answer, fully understand it - Be nice to people who answer your question - Remember that the people wanted to answer your question, but didn't have to 10. Things to NOT do - Don't post homework questions - Only post questions in English - Do not use caps in the title - Do not use "HELP" or "PLEASE" in the title - Don't post questions that have already been answered (Use search box) - Don't post feedback or bugs on Talk, use [repl.it/feedback](https://repl.it/feedback) for feedback, or [repl.it/bugs](https://repl.it/bugs) for bugs ## **Example:** ### **Question** We have some Python code with an error: [repl](https://repl.it/@Mosrod/Question-Tutorial) ```python rannumexe = int(input()) if rannumexe = 1: print('hi' + rannumexe) ``` ### Step 1 We show what each line does using comments. ```python rannumexe = int(input()) # Asks the user to input a rannumexe if rannumexe = 1: # If the rannumexe equals 1 print('hi' + rannumexe) # Print hi and the rannumexe ``` ### Step 2 We want the code to input a number, and if the number is one, print "hi" and the number. Our problem is that we have an invalid syntax error on line 2 in the main.py file. ``` File "main.py", line 2 if rannumexe = 1: ^ SyntaxError: invalid syntax ``` ### Step 3 Our repl with the issue is located [here](https://repl.it/@Mosrod/Question-Tutorial). We have an issue on line 2 ### Step 4 We can change "rannumexe" to "number" to clear confusion ```python number = int(input()) # Asks the user to input a number if number = 1: # If the number equals 1 print('hi' + number) # Print hi and the number ``` ### Step 5 We don't have any typos ### Step 6 Our problem could be that we improperly used the if statement ### Step 7 The problem could be about using the if statement incorrectly ### Step 8 Our final question: Title: Invalid syntax error about equal signs Content: I have an invalid syntax error on line 2 in the main.py file of this [repl](https://repl.it/@Mosrod/Question-Tutorial). The program should take a number as an input, check if the number is equal to one, and if so, print "hi" and the number. The error point to the equal signs and I think this issue is with the incorrect syntax of the if statement. Help is appreciated :). ```python number = int(input()) # Asks the user to input a number if number = 1: # If the number equals 1 print('hi' + number) # Print hi and the number ``` ``` File "main.py", line 2 if rannumexe = 1: ^ SyntaxError: invalid syntax ``` Steps based on Gordon Zhu's [post](https://medium.com/@gordon_zhu/how-to-be-great-at-asking-questions-e37be04d0603). If you have any suggestions or feedback, post it in the comments below.
31
posted by Mosrod (249) 9 months ago
Pinned
4
⛈Brainstorm ⛈What should we code?
The last time I had one of these threads, we got a lot of cool answers. So... let's kick this off again! What should we code? What should I, Katya, code?
23
posted by katyadee (676) 2 days ago
53
Collaborative programming
Will it ever be possible to have multiple people coding on the same repl at the same time? I know ,for me, this is repl's biggest drawback. Will this ever happen?
16
posted by LifeIsOverrated (68) 1 year ago
answered
48
Repl.it Mobile App
As some of you may know, Repl.it isn't the most mobile-friendly website. I'm considering making a mobile app for it, and I'm asking the community: Would you be interested in this? Would you use it if it was good enough? And does anyone here want to help contribute? I'm open to any suggestions about technologies to use and I'm up to learning something new. Please upvote or comment if you'd use it and comment if you want to help. And if you aren't interested I'd love to hear why. Thanks! **UPDATE:** Until there's something more official, I made [a Discord server](https://discord.gg/sVxJJZA). **UPDATE 2:** I just [released our MVP](https://repl.it/talk/announcements)!!!
38
posted by Kognise (199) 2 months ago
answered
40
How Did YOU Find Repl.it
Repl.it is one of many online coding platforms. How did you find this one? Did you do a google search? A friend? Why did you choose Repl.it over the many others that exist out there. Currently repl.it is one of the most popular. I will say that if i google's filtering and searching system were different, i wouldn't have found it. I found Repl.it with `online python3`. Comment below your own story! ### Reasons so far: + Coding on multiple computers + Learning at school + Looking for better online compilers/interpreters + Searching on google for online <coding language> + Friends + Coding in school without downloading interpreters/compilers + Making games that wouldn't work on normal compilers/interpreters + Entering competitions that require repl.it + Storing code online. To show other people, or other uses It's really cool to see how other people found repl.it. If I had been told to list as many reasons as I could, I would have gone with Bullet 1, Bullet 2, Bullet 3, and maybe Bullet 5.
219
posted by PYer (2043) 3 months ago
33
What should we code?
I've seen a couple of posts around here where people are asking what they should work on next. Let's use this space to brainstorm some cool projects.
103
posted by katyadee (676) 27 days ago
32
Mobile App?
What do you think about making a mobile app for repl. There are very few functioning IDE apps that allow you to install packages as well.
8
posted by Wilmor21 (39) 1 year ago
answered
29
Default name challenge
Create a default-named repl and do whatever the name says Submit your repls here __NEWS:__ __ @neodymium [TinySpicySeptagon](https://repl.it/@neodymium/TinySpicySeptagon) is the winner of this challenge! And the reward is 5 cycles__ __HONOURABLE MENTIONS__ __ @Kognise [BeigeDullMotion](https://beigedullmotion--kognise.repl.co/) and [ExtralargeWateryFonts](https://extralargewateryfonts--kognise.repl.co/), the repls are very accurate of the title!__ __ @a5rocks [BitesizedMindlessComputationalscience](https://repl.it/@a5rocks/BitesizedMindlessComputationalscience) for the code!__ __ @Steven_The_GuyT [FinancialRottenFile](https://repl.it/@Steven_The_GuyT/FinancialRottenFile) for it's humor!__ __ @Vandesm14 [LovingJovialOmnipage](https://lovingjovialomnipage.vandesm14.repl.co/) for it's awesomeness!__ __Special thanks to all of the upvoters and contestants in this challenge!__
99
posted by mkhoi (175) 2 months ago
27
Music you guys listen to
Do you regularly listen to music? If so, what genres and artists of music?
64
posted by JSer (1083) 9 months ago
answered
24
Can we have repl.it daily/weekly question?
I think repl should have a question of the day or question of the week. Questions like the advent of code thing. We could have users submit there questions submissions. That would be really cool and it would give people using repl.it challenges. **Check it out**: https://repl.it/talk/announcements/Repl-Weekly-Questioninfo/8960
9
posted by IEATPYTHON (311) 7 months ago
answered
24
Repl talk
I wonder why Repl talk isn't called "Reply". A perfect opportunity for a play on words.
11
posted by ChandlerMorell (69) 9 months ago
23
nohup: redirecting stderr to stdout
Occasionally whenever I run any pygame repl (at least to my knowledge regardless of code) it which eventually display "nohup: redirecting stderr to stdout" and stop everything. This happens every time I make a new pygame repl, after some time. I have no idea what the problem is. This happens even if I replace all the code.
18
posted by Deacon_Cronin (37) 3 months ago
19
What was your first language and what did you make with it?
What was your first language and what did you make with it? Me... I learned some rudimentary HTML & CSS on Neopets and made a fan site for MTV TRL veejay Jesse Camp, who was my celeb crush at the time. (Bonus points for anyone old enough to remember him.) I think that counts, right?
52
posted by katyadee (676) 2 months ago
19
What was the hardest part of building repl.it?
Was it the website, maybe piping the data from servers to site? Was organizing the containers for the repls hard?
4
posted by 21natzil (630) 1 year ago
18
Your chance to join TestOS2 development!
Sooooo developers get bored. So i wonder if your guys could spice up TestOS2 examples: apps new decor for program ideas submit the program in the comments https://repl.it/@Ryanand/TestOS-2-DEMO ![TestOS2](https://storage.googleapis.com/replit/images/1546374354709_a2e8efdbd38d4c05cbdfc3e560e53a1d.pn) Online question: Valve can't count to to three so do you think we can do it?
45
posted by Ryanand (30) 6 months ago
answered
17
Is there an actual trophy like in the picture?
Is there a awesome trophy that looks like the one in the picture next to the countdown, because If someone could 3D print it, it would be sick!
20
posted by coderash (64) 3 months ago
17
Pygame
Will repl ever support the Pygame module for python? That would be amazing!
7
posted by LifeIsOverrated (68) 1 year ago
16
SCHOOL'S OUT! IT'S SUMMER!!! 🌞 What are your summer coding plans?
SCHOOL'S OUT FOR BASICALLY EVERYONE, finally! Do you have any summer coding goals? What are they? Mine are... * get really good at HTML & CSS * learn JS
92
posted by katyadee (676) 19 days ago
15
What advice would you give to someone new to coding?
In the spirit of our new ask features... * What advice would you give to a newbie? * And what advice do you wish someone had given you? * What advice would you give me, personally?
29
posted by katyadee (676) 1 month ago
15
What language?
If you have to stick with 1 programming language __forever__ for everything that you write... What would it be? Ps: also remember about what language your career needs, your personal favorites... too And apparently Python and JS are the most popular choices
52
posted by mkhoi (175) 2 months ago
15
How do you pronounce repl.it
I know it doesn't really matter, but I usually say "Repel" until my first student accidentally goes onto repel.it.
13
posted by JohnsonTheGreat (25) 1 year ago
answered
14
💲Make Money 💲Building a Bot 🤖
Hey, I'd like a bot that reads comments and posts from repl talk in realtime (you can use @mat1's `repltalk` pip package) and posts it to a channel on Slack. In the comments propose a bid in dollars and deadline date and I'll select the best bid and when you're done I can send you the money via your favorite money app, gift card, or check.
15
posted by amasad (1217) 5 months ago
14
Can you make the notifications page work?
There is a page [Notifications](https://repl.it/notifications), that does nothing. I think that it could have good potential if it was actually used. I think that you should get notifications when someone up votes your post, comments on your post, or pings you. Also, you could make it so that it told you when you moved a position on the leaderboard. It could also tell you whenever a new competition started, or when one of your posts got pinned. If anybody else has some ideas they want the page to say, comment below please! Thank you!
4
posted by PYer (2043) 8 months ago
14
HACKER PLAN
What will happen if we take the hacker plan ?? Will it hide all our repls or only those we want to?? And if we have hidden a particular repl of ours will it open if someone has the link to that repl? Thanks
3
posted by spybrave (338) 11 months ago
14
Can You Make A Languages section?
Can you make a languages section so that people can post languages that they have created?
3
posted by PYer (2043) 12 months ago
13
If you could ask the Repl.it team anything, what would you ask?
It could be about the product, a coding question, or even something personal (within reason)! I'll see if I can wrangle answers for ya.
33
posted by katyadee (676) 13 days ago
answered
13
What is the language you recommend the most? Why do you recommend it??
Well, the title says the most. Just searching for a new one to learn. Mine is in fact, Python 3.7. I like Python 3.7, because it runs on like everything, even on my small raspi zero. Mh I should add that I, in this moment, I speak Python, R, in advanced 8/10 levels of skill, HTML in beginner level, as I do in CSS and C++. JS in mid levels of skill
44
posted by enigma_dev (82) 1 month ago
13
What's your favorite thing about Repl.it? What about your least favorite?
What's your favorite thing about Repl.it/browser-based IDEs in general? What about your least favorite? (Slash if you could add any feature, what would you add?)
34
posted by katyadee (676) 1 month ago
answered
13
My first coding class with Tim. thoughts?
I'm learning more how to code with @timmy_i_chen what do you think I should learn?
15
posted by hayaodeh (127) 8 months ago
13
Command Line Arguments
Hello! Is it possible to use command line arguments in C/C++ repls? I'm working on examples to use in the classroom, and repl.it is good for many things, I'm wondering if this can be done too.
0
posted by oliverosz (12) 11 months ago