Make a Game. Win a Bitcoin.

00
Days
00
Hours
00
Mins
00
Secs

Jam Ended on Apr 19. Results coming soon!

Ask coding questions

Posts
Pinned
49
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 constantly - Make sure you 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.
21
posted by Mosrod (196) 7 months ago
50
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 (65) 11 months ago
answered
33
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.
164
posted by PYer (1298) 20 days ago
26
Music you guys listen to
Do you regularly listen to music? If so, what genres and artists of music?
62
posted by JSer (1049) 6 months ago
answered
23
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 (316) 5 months ago
answered
23
Repl talk
I wonder why Repl talk isn't called "Reply". A perfect opportunity for a play on words.
8
posted by ChandlerMorell (66) 7 months ago
answered
19
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.
12
posted by Deacon_Cronin (20) 1 month ago
19
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.
6
posted by Wilmor21 (26) 11 months 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 (28) 4 months ago
18
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 (523) 11 months ago
17
Pygame
Will repl ever support the Pygame module for python? That would be amazing!
7
posted by LifeIsOverrated (65) 11 months ago
answered
16
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 (63) 1 month 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 (1069) 3 months 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 (113) 6 months ago
13
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 (336) 9 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) 9 months ago
13
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.
10
posted by JohnsonTheGreat (22) 10 months ago
answered
12
Will uncontrollable latency in the new GFX repls be a factor when judging the game jam?
The new GFX repls currently experience high latency and frame skipping. As of now, someone can't accurately judge a game because of this. Even if the game is well optimized and can achieve playable frame-rates under normal conditions, the person playing it will experience quite a bit of lag. My internet (~ 80 Mbps) is capable of running GeForce now (a service that streams games to your computer) at 1080p with barely any latency, yet I still experience lag when running GFX repls. This means that the lag is mostly independent of one's internet connection. I've modified the example Pygame repl so that it prints the FPS to the console. It runs at a very steady 60 FPS but is laggy enough that it can be difficult to reach the top platform. Try it yourself here: https://repl.it/@joshwood/Pygame-Latency-Example I'm really happy that Repl.it now supports more options for game GFX and I understand that it is still being worked on, but I don't think it would be fair to mark down people who utilize it simply because support for it isn't 100% complete yet (especially since it was advertised as a way to make your game for the game jam). While I realize that may be against the spirit of the Repl.it, I think it would make sense for the judges to download any GFX repls and run them locally when evaluating the games. Having high latency can make a really great game not a lot of fun. And due to the game jam's massive prize, it's essential that each game is graded fairly. I just want to emphasize that I don't mean to criticize Repl.it or the game jam by writing this. Repl.it is an amazing service and I think this game jam was a great idea. I just want the entries to be graded fairly.
7
posted by joshwood (103) 8 days ago
12
What's your favorite YouTube programming Channel?
I follow Clever Programmer, what about you?
17
posted by hayaodeh (113) 2 months ago
12
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 (1298) 5 months ago
12
If you could have one superpower, what would it be?
Not all the questions have to be tech-questions!
15
posted by icr0 (11) 11 months ago
11
Repl.it work dumb question
@hayaodeh and @themaka , how does it feel to work in Repl.it? Does it have a headquarters? If so, where? Just felt like knowing.
9
posted by Lanna (25) 1 month ago
11
What should my avatar be?
I want it to be a question mark type of thing. I want to know if I should keep mine, or become one of these: ![image](https://storage.googleapis.com/replit/images/1532180896347_71e64db09b22344ce08f6e3d72b3896a.pn) ![image](https://storage.googleapis.com/replit/images/1532180957446_b0d9f7b6418e48c364466c975cbfc056.pn) Or can you give me a recommendation?
11
posted by PYer (1298) 9 months ago
11
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 (1298) 9 months ago
11
What coding language do you like best?
i know everyone has their preferences and i kinda want to know what yours is!
20
posted by UndertaleRulez (30) 9 months ago
11
How and when was the initial idea for what would become repl.it conceived?
Did it just suddenly come to you one day, or was it something you had thought about for some time?
3
posted by ifvictr (10) 11 months ago
answered
10
Girl wants to get good at coding...
Hi, my name is Cate and I recently discovered I had an interest in coding so with literally zero experience I started teaching myself python using pycharm IDE. I understand concepts pretty well, but there is soooo much information out there, does anyone have any tips for a n00b like me? Or advice for narrowing down a direction in regards to learning? Any help is appreciated!!
32
posted by catejenn (13) 6 months ago
answered
10
Best resources for learning how to code?
It's no secret that repl.it is a destination for a lot of new programmers or learners. Many of them ask us for recommendations for the best resources to learn how to code. Be it tutorials, videos, courses, etc. We're trying to build the Learn board to become a destination for people to find coding content. In the meantime I'm putting the question to the community: what's the best resources that helped you learn?
13
posted by amasad (1069) 7 months ago
10
BEST REPLS
How can I access the best repls made on the site till date?most votes?most comments?winners of previous challenges? A search filter might help.
1
posted by spybrave (336) 9 months ago
10
Username Change
I noticed that @JSer changed his username multiple times, but as far as I know, you can't change your username without having your account deleted then creating another one. @JSer kept all his cycles, repls, posts, comments, and account info. How?
4
posted by Lumpy_Wiggles (48) 9 months ago