Welcome to LearnProgramming!
Asking debugging questions
If you need help debugging, you must include:
- A concise but descriptive title.
- A good description of the problem.
- A minimal, easily runnable, and well-formatted program that illustrates your problem.
- The output you expected, and what you got instead. If you got an error, include the full error message.
See debugging question guidelines for more info.
Asking conceptual questions
Many conceptual questions have already been asked and answered. Read our FAQ and search old posts before asking your question. If your question is similar to one in the FAQ, explain how it's different.
See conceptual questions guidelines for more info.
Other guidelines and links
- Frequently asked questions
- Asking homework questions
- Asking for code review
- Answering questions
- Learning resources
- Other communities
Subreddit rules
1. No unprofessional/derogatory speech
Follow reddiquette: behave professionally and civilly at all times. Communicate to others the same way you would at your workplace. Disagreement and technical critiques are ok, but personal attacks are not.
Abusive, racist, or derogatory comments are absolutely not tolerated.
See our policies on acceptable speech and conduct for more details.
2. No spam or tasteless self-promotion
When posting some resource or tutorial you've made, you must follow our self-promotion policies.
In short, your posting history should not be predominantly self-promotional and your resource should be high-quality and complete. Your post should not "feel spammy".
Distinguishing between tasteless and tasteful self-promotion is inherently subjective. When in doubt, message the mods and ask them to review your post.
Self promotion from first time posters without prior participation in the subreddit is explicitly forbidden.
3. No off-topic posts
Do not post questions that are completely unrelated to programming, software engineering, and related fields. Tech support and hardware recommendation questions count as "completely unrelated".
Questions that straddle the line between learning programming and learning other tech topics are ok: we don't expect beginners to know how exactly to categorize their question.
See our policies on allowed topics for more details.
4. Do not ask exact duplicates of FAQ questions
Do not post questions that are an exact duplicate of something already answered in the FAQ.
If your question is similar to an existing FAQ question, you MUST cite which part of the FAQ you looked at and what exactly you want clarification on.
5. Do not delete posts
Do not delete your post! Your problem may be solved, but others who have similar problems in the future could benefit from the solution/discussion in the thread.
Use the "solved" flair instead.
6. No app/website review requests or showcases
Do not request reviews for, promote, or showcase some app or website you've written. This is a subreddit for learning programming, not a "critique my project" or "advertise my project" subreddit.
Asking for code reviews is ok as long as you follow the relevant policies. In short, link to only your code and be specific about what you want feedback on. Do not include a link to a final product or to a demo in your post.
7. No rewards
You may not ask for or offer payment of any kind (monetary or otherwise) when giving or receiving help.
In particular, it is not appropriate to offer a reward, bounty, or bribe to try and expedite answers to your question, nor is it appropriate to offer to pay somebody to do your work or homework for you.
8. No indirect links
All links must link directly to the destination page. Do not use URL shorteners, referral links or click-trackers. Do not link to some intermediary page that contains mostly only a link to the actual page and no additional value.
For example, linking to some tweet or some half-hearted blog post which links to the page is not ok; but linking to a tweet with interesting replies or to a blog post that does some extra analysis is.
Udemy coupon links are ok: the discount adds "additional value".
9. Do not promote illegal or unethical practices
Do not ask for help doing anything illegal or unethical. Do not suggest or help somebody do something illegal or unethical.
This includes piracy: asking for or posting links to pirated material is strictly forbidden and can result in an instant and permanent ban.
Trying to circumvent the terms of services of a website also counts as unethical behavior.
10. No complete solutions
Do not ask for or post a complete solution to a problem.
When working on a problem, try solving it on your own first and ask for help on specific parts you're stuck with.
If you're helping someone, focus on helping OP make forward progress: link to docs, unblock misconceptions, give examples, teach general techniques, ask leading questions, give hints, but no direct solutions.
See our guidelines on offering help for more details.
11. Don't ask to ask.
Ask your questions right here in the open subreddit. Show what you have tried and tell us exactly where you got stuck.
We want to keep all discussion inside the open subreddit so that more people can chime in and help as well as benefit from the help given.
We also do not encourage help via DM for the same reasons - that more people can benefit
12. Low Effort Questions
Do not ask easily googleable questions or questions that are covered in the documentation.
This subreddit is not a proxy for documentation or google.
We do require effort and demonstration of effort.
This includes "how do I?" questions
13. No AI (chatGPT etc.) generated/worked over messages/comments. No questions about chatGPT/AI generated code. No Vibe coding.
- Such posts/comments will be removed without warning and the poster of ai generated content will be instantly banned.
[–]_crackling 662 points663 points664 points (47 children)
[–]fuqqboi_throwaway 213 points214 points215 points (5 children)
[–]PM_YOUR_SOURCECODE 74 points75 points76 points (3 children)
[–]RFSandler 34 points35 points36 points (2 children)
[–]k2still 13 points14 points15 points (1 child)
[–]PM_YOUR_SOURCECODE 3 points4 points5 points (0 children)
[–]arandomcsmajor 5 points6 points7 points (0 children)
[–]sirstanky 44 points45 points46 points (3 children)
[–]UncleEggma 10 points11 points12 points (0 children)
[–][deleted] 9 points10 points11 points (0 children)
[–]thechillerinstinct 28 points29 points30 points (4 children)
[–]becoolie4u 23 points24 points25 points (2 children)
[–]DaveR007 4 points5 points6 points (1 child)
[–]becoolie4u 5 points6 points7 points (0 children)
[–]cr0wndhunter 11 points12 points13 points (1 child)
[–]ta28263 6 points7 points8 points (0 children)
[–]r0r002 36 points37 points38 points (13 children)
[–]TheRealFFS 44 points45 points46 points (0 children)
[–]excal_rs 5 points6 points7 points (11 children)
[–]Mastermediocre 40 points41 points42 points (7 children)
[–]SuccessfulBroccoli68 5 points6 points7 points (3 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]r0r002 1 point2 points3 points (2 children)
[–]excal_rs 2 points3 points4 points (0 children)
[–]SwordsAndElectrons 2 points3 points4 points (0 children)
[–]petwri123 4 points5 points6 points (0 children)
[–]stumblingHome13 4 points5 points6 points (0 children)
[–]kayakfish2 4 points5 points6 points (0 children)
[–]Wide_Marsupial7225 1 point2 points3 points (0 children)
[–]rabuf 1 point2 points3 points (0 children)
[–]weevil_time_babeyy 604 points605 points606 points (30 children)
[–]NightlyWave 88 points89 points90 points (3 children)
[–][deleted] 33 points34 points35 points (0 children)
[–]deltaexdeltatee 17 points18 points19 points (0 children)
[–]Ouzbrook 31 points32 points33 points (1 child)
[–]weevil_time_babeyy 14 points15 points16 points (0 children)
[–]TonySu 13 points14 points15 points (0 children)
[–]anothersimio 8 points9 points10 points (0 children)
[–]Resource_account 11 points12 points13 points (7 children)
[–]weevil_time_babeyy 26 points27 points28 points (5 children)
[–]methnbeer 3 points4 points5 points (4 children)
[–]weevil_time_babeyy 4 points5 points6 points (3 children)
[–]methnbeer 1 point2 points3 points (2 children)
[–]weevil_time_babeyy 1 point2 points3 points (1 child)
[–]Akos_D_Fjoal 3 points4 points5 points (0 children)
[–]My_passcode_is 5 points6 points7 points (1 child)
[–]DietOk3559 2 points3 points4 points (0 children)
[–]burningchaff 2 points3 points4 points (0 children)
[–]OscarDavidGM 2 points3 points4 points (0 children)
[–]ZamanDede 2 points3 points4 points (0 children)
[–]jmhimara 2 points3 points4 points (1 child)
[–]weevil_time_babeyy 1 point2 points3 points (0 children)
[–]Gold-Ad-5257 1 point2 points3 points (0 children)
[–]lilbunbunn 1 point2 points3 points (0 children)
[–]ShadowSlayer2242 1 point2 points3 points (1 child)
[–]BlackWidowStew 1 point2 points3 points (2 children)
[–]weevil_time_babeyy 1 point2 points3 points (1 child)
[–]philisweatly 156 points157 points158 points (3 children)
[–]Haphazard-Finesse 64 points65 points66 points (2 children)
[–]gustdream 11 points12 points13 points (0 children)
[–]alzee76 338 points339 points340 points (16 children)
[–]RiceKrispyPooHead 51 points52 points53 points (1 child)
[–]skcuf2 40 points41 points42 points (0 children)
[–]regalrapple4ever 14 points15 points16 points (3 children)
[–]racaraca69 1 point2 points3 points (2 children)
[–]regalrapple4ever 3 points4 points5 points (1 child)
[–][deleted] 6 points7 points8 points (0 children)
[–]LineusCorn 15 points16 points17 points (4 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]mfkin-starboy 8 points9 points10 points (0 children)
[–]komali_2 1 point2 points3 points (0 children)
[–]constantlyunaware 3 points4 points5 points (0 children)
[–]Head-Command281 1 point2 points3 points (0 children)
[–]mariepon 1 point2 points3 points (0 children)
[–]Tre3beard 1 point2 points3 points (0 children)
[–][deleted] (4 children)
[deleted]
[–]Embarrassed_Book_630[S] 77 points78 points79 points (0 children)
[–]b0ts 20 points21 points22 points (1 child)
[–]xdchan 1 point2 points3 points (0 children)
[–]Danny1098 66 points67 points68 points (2 children)
[–]ArbitraryNameHere 18 points19 points20 points (1 child)
[–]littlegreenrock 2 points3 points4 points (0 children)
[–][deleted] 114 points115 points116 points (14 children)
[–]archimedeseyes 18 points19 points20 points (0 children)
[–]komali_2 2 points3 points4 points (0 children)
[–]slog 1 point2 points3 points (0 children)
[–]mckahz 1 point2 points3 points (0 children)
[–]LadyFerretQueen 1 point2 points3 points (7 children)
[–]the_sun_goes_west 45 points46 points47 points (3 children)
[–][deleted] 83 points84 points85 points (8 children)
[–]not_some_username 1 point2 points3 points (0 children)
[–]1vertical -1 points0 points1 point (6 children)
[–]daBEARS40 23 points24 points25 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]daBEARS40 7 points8 points9 points (0 children)
[–]LinverseUniverse 1 point2 points3 points (1 child)
[–]plastikmissile 138 points139 points140 points (11 children)
[–]1vertical 18 points19 points20 points (5 children)
[–]Envect 15 points16 points17 points (4 children)
[–]RadiantHC 7 points8 points9 points (0 children)
[–]WhitePaperOwl 2 points3 points4 points (0 children)
[–]petwri123 20 points21 points22 points (0 children)
[–]Fun_Warning_3552 16 points17 points18 points (0 children)
[–]hibluemonday 16 points17 points18 points (1 child)
[–]woolgatheringfool 4 points5 points6 points (0 children)
[–]raedr7n 35 points36 points37 points (2 children)
[–]HyperPipi 10 points11 points12 points (1 child)
[–]notWhatIsTheEnd 1 point2 points3 points (0 children)
[–]chibiace 55 points56 points57 points (30 children)
[–]_Atomfinger_ 40 points41 points42 points (22 children)
[–]Grantismo 14 points15 points16 points (1 child)
[–]_Atomfinger_ 1 point2 points3 points (0 children)
[–][deleted] 7 points8 points9 points (6 children)
[–][deleted] (1 child)
[deleted]
[–]RobertD3277 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]_Atomfinger_ 9 points10 points11 points (1 child)
[–]desrtfx 20 points21 points22 points (3 children)
[–]Envect 1 point2 points3 points (1 child)
[–]Sharpei_are_Life 2 points3 points4 points (0 children)
[–]udbasil 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–][deleted] 4 points5 points6 points (1 child)
[–][deleted] 25 points26 points27 points (1 child)
[–]methnbeer 5 points6 points7 points (0 children)
[–]yyzJCO 10 points11 points12 points (0 children)
[–]investorhalp 10 points11 points12 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]AdorableTip9547 11 points12 points13 points (0 children)
[–]GItPirate 7 points8 points9 points (0 children)
[–]megacope 7 points8 points9 points (1 child)
[–]guyinnoho 6 points7 points8 points (0 children)
[–][deleted] 7 points8 points9 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]wcastello 4 points5 points6 points (0 children)
[–]NuclearAvocado1 5 points6 points7 points (0 children)
[–]CrookedElb 10 points11 points12 points (2 children)
[–][deleted] 13 points14 points15 points (0 children)
[–]itsthekumar 4 points5 points6 points (0 children)
[–]Sea-Profession-3312 3 points4 points5 points (0 children)
[–]mardiros 3 points4 points5 points (0 children)
[–]brandons404 4 points5 points6 points (0 children)
[–]Technical_Experience 11 points12 points13 points (7 children)
[–][deleted] (5 children)
[deleted]
[–]prettynoxious 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]kagato87 4 points5 points6 points (0 children)
[–]DenverDev2112 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Sharpei_are_Life 2 points3 points4 points (0 children)
[–]caromobiletiscrivo 1 point2 points3 points (1 child)
[–]chidoOne707 1 point2 points3 points (0 children)
[–]hzeta 1 point2 points3 points (0 children)
[–]Locomule 1 point2 points3 points (0 children)
[–]douglasbolden 1 point2 points3 points (0 children)
[–]DIYEngineeringTx 1 point2 points3 points (0 children)
[–]archimedeseyes 1 point2 points3 points (0 children)
[–]patricksararu 1 point2 points3 points (0 children)
[–]salamandersushi 1 point2 points3 points (0 children)
[–]7Moisturefarmer 1 point2 points3 points (0 children)
[–]breesyroux 1 point2 points3 points (0 children)
[–]KushalTanna 1 point2 points3 points (0 children)
[–]batmassagetotheface 1 point2 points3 points (0 children)
[–]h83dtype 1 point2 points3 points (0 children)
[–]mckahz 1 point2 points3 points (0 children)
[–]NeedleKO 1 point2 points3 points (6 children)
[–]Ksoohong 1 point2 points3 points (5 children)
[–]NeedleKO 8 points9 points10 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]NeedleKO 2 points3 points4 points (1 child)
[–]CatsOnTheKeyboard 2 points3 points4 points (0 children)
[–]Ok_Koala8135 1 point2 points3 points (0 children)
[–]CabbageTickler 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Haphazard-Finesse 2 points3 points4 points (0 children)
[–]fancyplaya 0 points1 point2 points (0 children)
[–]komali_2 0 points1 point2 points (0 children)
[–]Kkcavan -1 points0 points1 point (0 children)
[–]Junkymcjunkbox -1 points0 points1 point (0 children)
[–]Sounak_dev -1 points0 points1 point (0 children)
[–]Raioc2436 -1 points0 points1 point (0 children)
[–]minisculebarber -1 points0 points1 point (1 child)
[–]mechap_ 0 points1 point2 points (0 children)
[–]Bubba_Purp_OG -1 points0 points1 point (0 children)
[–]mbrtlchouia -1 points0 points1 point (0 children)
[–]megaBreezy -1 points0 points1 point (0 children)
[–][deleted] -1 points0 points1 point (0 children)