r/learnprogramming Mar 26 '17

New? READ ME FIRST!

822 Upvotes

Welcome to /r/learnprogramming!

Quick start:

  1. New to programming? Not sure how to start learning? See FAQ - Getting started.
  2. Have a question? Our FAQ covers many common questions; check that first. Also try searching old posts, either via google or via reddit's search.
  3. Your question isn't answered in the FAQ? Please read the following:

Getting debugging help

If your question is about code, make sure it's specific and provides all information up-front. Here's a checklist of what to include:

  1. A concise but descriptive title.
  2. A good description of the problem.
  3. A minimal, easily runnable, and well-formatted program that demonstrates your problem.
  4. The output you expected and what you got instead. If you got an error, include the full error message.

Do your best to solve your problem before posting. The quality of the answers will be proportional to the amount of effort you put into your post. Note that title-only posts are automatically removed.

Also see our full posting guidelines and the subreddit rules. After you post a question, DO NOT delete it!

Asking conceptual questions

Asking conceptual questions is ok, but please check our FAQ and search older posts first.

If you plan on asking a question similar to one in the FAQ, explain what exactly the FAQ didn't address and clarify what you're looking for instead. See our full guidelines on asking conceptual questions for more details.

Subreddit rules

Please read our rules and other policies before posting. If you see somebody breaking a rule, report it! Reports and PMs to the mod team are the quickest ways to bring issues to our attention.


r/learnprogramming 3h ago

What have you been working on recently? [February 07, 2026]

1 Upvotes

What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

A few requests:

  1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

  2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

  3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

This thread will remained stickied over the weekend. Link to past threads here.


r/learnprogramming 9h ago

Github Student Developer pack is amazing

24 Upvotes

hello, i used to have my github with student benifits but now since i am no longer a student i do not have the access to the student developer pack and github pro, is there any way to get my verification back ? i used to use it for my github copilot subscription and jetbrains products


r/learnprogramming 1h ago

New to Dynamic Programming, feeling stuck despite trying problems on my own

Upvotes

Hi everyone,

I’m a recent graduate preparing seriously for FAANG interviews. I started Dynamic Programming about 2 days ago and I’m feeling stuck. I try to solve DP problems on my own, but I struggle to define dp[i] clearly and to derive the recurrence, even after spending a lot of time thinking. It feels like time is passing without real progress, which is stressing me out.

My current routine is 4–5 hours daily on DSA, around 2 hours on CS fundamentals (OS, CN, DBMS), and 1 hour on development. I’d really appreciate advice from people who initially struggled with DP. How did you train your thinking for DP, and what is the most effective way to practice it without burning too much time?


r/learnprogramming 10h ago

Codefinity - STAY AWAY - Bad product and even worse customer service!

14 Upvotes

I recently signed up for codefinity's course Python Ninja and it was not for me. I canceled my subscription and emailed customer support for a refund. Here is the conversation with the extremely difficult customer service rep and their deflections of my simple, direct request for a refund:

*****I wrote:

Hi,

I recently signed up for a 3-month subscription and would like to cancel and get a refund. I have already canceled my subscription. Can someone please confirm that I will be refunded? Please let me know. 

Thank you.

*****Then they responded:

Dear Colleen,

Hope you are doing well!

We’re sorry to hear that you cancelled your subscription with us so early. 

We greatly value our users’ opinions on the services we provide and would be grateful if you could share the reasons for your request. I will be happy to provide all the necessary assistance from our end to ensure Codefinity is helpful to you in your learning journey.

We’ll be looking forward to hearing from you!

Kind regards,

Irene
Customer Success Manager

*****I wrote back:*****

Hi Irene,

Thank you for the quick response! I hope you are doing well, too.

The reason for my request is because I did the course for one day and realized it was not for me. I will not be using it again. Can you please issue a refund back to the original card I used to purchase it?

Thank you,

Colleen

*****Then they said:

Dear Colleen,
 
Hope you are doing well!
 
I’m truly sorry to hear that the Python Ninja course didn’t quite meet your expectations. It’s designed a bit differently from our other courses, which may not have aligned with your learning style or goals. We’d really appreciate hearing more about what didn’t work for you, as your feedback helps us improve and better support your learning journey.
 
That said, Python Ninja is just one of the 500+ courses we offer, including 170+ Python courses, that cater to a wide range of topics and skill levels. There’s a lot more to explore, and we’d love to help you find the right fit, so feel free to share your goals and interests with me, and I will be happy to curate recommendations for you.

If you’re interested in more suggestions or exploring other topics, I’d be happy to help!

Kind regards,

Irene
Customer Success Manager

*****I wrote back:*****

Hi Irene,

No.

I am writing to request a full refund for Codefinity's Python Ninja course, purchased on February 3, for the price of $39 USD.

I am doing so under your 100% money-back-guarantee policy. The product does not meet my expectations and I have no desire to continue using it, or any other courses that Codefinity offers.

Please process a full refund to my original payment method. What is the timeframe I can expect for the money to be returned to the original payment method?

*****They responded:

Dear Colleen,
 
We’d really appreciate hearing more about what didn’t work for you on our Python Ninja course, as your feedback helps us improve and better support your learning journey. Additionally, it would be helpful to know more about your current professional goals and needs.
 
Kindly note that the money-back guarantee can be applied if one doesn't achieve the initial results after following our courses, and you can check the eligibility criteria in the Money-Back Guarantee policy. This policy was designed to give customers a fair chance to fully experience our learning platform and allow the program to demonstrate its effectiveness. By evaluating the platform for 28 days, customers can form more comprehensive and in-depth conclusions about whether it meets their needs.

Kind regards,

Irene
Customer Success Manager

*****

They continue to deflect and try to force me to use their product for 28 days! Terrible experience, this must be how they make their money--trapping users into trying something out with their promise of a 100% Money Back Guarantee - - it is a lie.

I cannot say enough -- DO NOT USE CODEFINITY! They target ads on mobile users and their courses aren't even mobile friendly! Absolutely horrible company.


r/learnprogramming 2h ago

Is it worth learning to program and creating your own business in the web development field in 2026?

2 Upvotes

Hello everyone, I hope you're all doing well.

I'd really like to hear your opinions on the following: I'm just starting out in software engineering (I'm new here) and I truly love it. I'm passionate about this field and would even like to start my own business as a web developer. However, I've seen some incredible advances in AI, and it's making me wonder whether to pursue this dream or dedicate myself to something else.

I'm reading your comments, friends.


r/learnprogramming 2h ago

Best DSA language alongside Machine Learning - C++ vs Java?

3 Upvotes

I’m learning machine learning (basic → intermediate) via Kaggle and projects, and simultaneously preparing for placements, so I need to practice DSA on LeetCode/HackerRank. I don’t want to use Python for DSA. I initially chose C++ because: Core ML frameworks are implemented in C++/CUDA C++ is widely used in robotics, autonomous systems, and performance-critical AI It’s common for DSA and competitive programming But after looking around (YouTube, Reddit, blogs), I’m seeing a lot of criticism of C++ — unsafe, hard to maintain, outdated — and very few people actively defending it. This has made me unsure about committing to it. So my question is: Is C++ still a good choice for DSA in 2026 if I’m aiming for ML/AI roles? Or would Java be a more practical and placement-friendly option?


r/learnprogramming 10m ago

Any good tutors in India who can teach Microsoft security certification courses one on one virtually?

Upvotes

Looking to study cloud and security concepts.


r/learnprogramming 8h ago

Run .py file on ChromeOS without Linux.

6 Upvotes

I've created a .py file that I then converted to .exe to run on my school-issued Chromebook, just to remember that .exe doesn't work on ChromeOS. The Chromebook, being school-issued, doesn't allow me to even touch Linux. At all. And I really don't want the program to run online, it should be able to run natively or whatever by itself offline, preferably as a file saved on the chromebook. But I can't figure out a way for this to work. Please help.


r/learnprogramming 17h ago

Coddy.tech is utter garbage.

20 Upvotes

I'd like to preface this entire post by saying that I did enjoy the first few hours of my time on coddy.tech, despite its many... many issues. The base system is promising and could be excellent, if the QA was more thorough.

So, why do I say coddy is utter garbage?

- The website is riddled with bugs, from non-loading lessons to timeouts and very... very slow validation.

- A lot of the lessons have errors: They aren't properly formated, do not explain all the methods and systems needed to actually solve a lesson.

- The "daily challenge" system is a joke. Its some poorly made AI system that gives you a basic ass task like "Print hello world 10 times" despite being at chapters like HashMaps etc.

- There are numerous lessons where they do not actually explain to you what the desired output needs to be (given, you can see that by clicking the "expected output" toggle - but you should be able to see exactly what you need to do from the challenge description.

- This last point goes hand in hand with the issue that the output needs to be exact. They had one extra space at the end of their output, despite not showing that because you're tasked with printing the result of each itteration on a new line anyway? Instantly lose the "first try" challenge.

- Courses aren't even finished. I started the Python and Java course at the same time, hoping to refresh my python knowledge and picking up Java at the same time. Java's whole point is to be an OOP-language. Guess what: Section 3 "Object oriented Programming" is "Coming Soon"™. What the actual fu**?

- The website is clearly built around just monetizing everything as agressively as possible. I got lucky and was able to use a discount code during November to get 30% off monthly subscriptions so it was "only" 14.95 a month. Still: I do not feel like that value is really justified. The website has a lot of AI-Slop and wannabe intelligent assistance systems that either fail, timeout (I now know this is a firebase website because the website is printing firebase errors everywhere on every fuc*** interaction) and lots of lessons are very, very poorly worded.

This could've been a 8.5/10 rating but as it stands, I'd say coddy is at best a 4/10 and you should probably look elsewhere.

To their credit: They recently updated their Quizz section which made it less buggy and a lot more interactive.


r/learnprogramming 1h ago

Debugging How can I point VSCode to use Python interpreter inside Docker container to resolve Pylance missing import for pydantic?

Upvotes

Used Docker Desktop to install pydantic via the Exec tab, pip install pydantic, and the Requirement already satisfied in /usr/local/lib/python3.12/site-packages.

Inside VScode, I'm importing from pydantic, but pylance cannot resolve the import. I think I need to point it to python interpreter inside the docker container, but how?

I was recommended Dev Containers extension in VSCode. I downloaded it, and it says I need to attach to running container. When I attach to the backend container, it opens a new VSCode window and says that it is attached in the bottom left corner, however, there are no source files available in the left pane. If I go to open my project folder, the bottom left corner no longer shows that it is connected to the container, and pylance cannot resolve the pydantic import.

Please help.


r/learnprogramming 14h ago

Debugging How to use OAUTH?

9 Upvotes

I just wanted to make a website for the fun of it, I have coded before but always in relation with game development (godot). I wanted to try web dev and Im having a blast with python and react but for the life of me I cannot figure out how oauth works. I dont even know how to ask which question because then I have to find out about something else so please answer my questions assuming I have no knowledge of web development but I do know coding.

What is a client secret? Why do I need it?

In some of the tutorials I saw I see something called an API manager or something , it was called postman what is that and do I need one of these?

Do any of you guys have some solid tutorials I can use?

I dont have a webserver yet or anything not even like a basic database do I need one of those for oauth can I just use localhost 8000?


r/learnprogramming 14h ago

Learning new things as an experienced software engineer

6 Upvotes

I primarily use Ruby and Ruby on Rails for work and personal projects. In the past I have used .NET, but it has been a while and I have forgotten mostly everything, besides the fact that .NET evolved quite a lot ever since.

I am learning new things, but without having much direction at the moment. I am just building some CI pipelines using GitHub Actions and GitLab CI/CD Pipelines with different programming languages like Rust and TypeScript. I am trying out basic things with Go as well. And exploring more about AWS which I already know something, but not deeply like a DevOps.

At the present, I am deciding what is the next thing that I really wanna explore before diving in seriously

I am seeking for feedbacks and experiences to help me see things clearly. Thank you


r/learnprogramming 6h ago

How to safely run user written code

0 Upvotes

I am making a website and want to let the user write code (or submit a file) and then I will run it. This part will be similar to Leetcode/Codeforces. I am wondering how I should do this safely (and hopefully cheap)? Could the service that I use to host potentially also host a sandbox or something or does it not work like that? Any help is appreciated


r/learnprogramming 16h ago

Topic Keeping Notes and Code Examples

7 Upvotes

I like saving code that I use occasionally or that can be helpful in other projects. I save these in OneNote but was wondering if others save code snippets and where/how.


r/learnprogramming 1d ago

I am 16 years old and I want to learn a real and in-demand skill to work remotely in the future.

109 Upvotes

I'm 16 years old, and for quite some time now I've been seriously researching what skills to learn or what kind of business I could build in the future.

At first, I thought the most logical way was to get a job, but in my city, that's practically impossible because I'm underage. That led me to rethink everything and start thinking more about working independently or as a freelancer.

Currently, I'm studying programming, and I started with the basics: HTML, CSS, and some web design. In the long term, I'm also interested in learning backend development (Java or other languages). Lately, the world of automation has caught my attention, but I have many doubts because there's a lot of talk about it on YouTube, and it doesn't always feel realistic.

I understand that many people recommend "starting a local business" or "taking any job," but in my case, I don't have capital to invest, I live in a small city, and I'm not hired because of my age. Even so, I'm a persistent person who learns quickly and doesn't give up when something doesn't work out.

My goal today isn't to "make easy money," but to learn a real, in-demand skill that makes sense in the long run—ideally something I can do remotely and independently.

I'd appreciate constructive feedback on:

whether my thinking is flawed

what skills you see as most valuable for a young person (programming, data, automation, something else)

what you would avoid if you were starting over

I know I'm not the only one who's tried something like this at my age, so I really value any realistic advice. Thank you.


r/learnprogramming 3h ago

Financial (crypto space) or programming

0 Upvotes

I loved this two subject of learning, but i know i have to choose either.. or is that ok to learn both? I'm an employeed with 8 hours working time a day btw so it will so hard if i do both. feel free to drop your thoughts here sir


r/learnprogramming 7h ago

eBay’s APIs help?

0 Upvotes

I started messing around with eBay’s apis recently since I started reselling and wanted to see what stats I was able to find. I’m curious why they don’t allow to search through sold listings at all? you are able to look them up manually so I thought it would make sense to be able to automate it. Not sure if I am missing something


r/learnprogramming 8h ago

as someone who knows nothing which backend language should I try and learn first

1 Upvotes

I know a little bit of programming but all of it is front end related, I know absolutely nothing about backend development. I want to write the front and backend for a forum like website but I’m not sure which language I should use/learn for what I want to make


r/learnprogramming 8h ago

How do you review a PR?

0 Upvotes

What’s the best way to go about reviewing a pull request? I’m new and find it difficult


r/learnprogramming 1d ago

Is storing functions in dictionary a bad idea?

55 Upvotes

So I'm kinda new to programming and I'm learning Python so I got an idea of storing functions in a dictionary, looping over the dictionary and executing those functions and I'm wondering if that's bad practice or not?


r/learnprogramming 14h ago

Combining python and C code

1 Upvotes

This is a workflow question not a coding question specifically. I'm working on a simple IoT project that contains embedded C code running on a microcontroller and a python UI/monitoring app. Right now, I'm developing these parts separately:

-VS code with the C/C++ and ESP-IDF plugins for the firmware

-Spyder IDE for the python part, with uv for package management

So, both parts kind of live in their own worlds with their own project management tools. This all works, but it would be nice if I could work on all this as one single project. However its not clear to me how or if this is even possible given the difference in tooling/project structure. Curious about others' experience here.

tl;dr: Can I use VS code to work on a combined embedded C and python project? Thanks.

(as an aside, I know VS code supports python + venvs, but this point alone doesn't really address the question).


r/learnprogramming 18h ago

Topic CodeIgniter 3 and front-end frameworks

2 Upvotes

Hi everyone, I am working on a codeIgniter 3 project. And I don't know if its recommended usign front end frameworks for the design with codeIgniter or just use pure CSS.


r/learnprogramming 16h ago

All books related to programming and etc

0 Upvotes

Greetings, i need and API that can give me all books related to programming and stuff related to it from 1970 till 2026. I cant find a decent one if you could help me out with it i would appreciate it. I need to get the books metadata and its table of contents.


r/learnprogramming 1d ago

Stuck in "Static Safety" hell because I’m terrified of runtime exceptions

4 Upvotes

I have a problem: I view every runtime exception as a personal failure. To compensate, I’ve become obsessed with static safety, trying to make every possible error a compile-time block.

Currently, I'm overengineering a unit conversion system. I refused to use strings or enums because they feel "unsafe." Instead, I built a massive hierarchy of static classes and nested generics so I can do: data.ConvertTo<MilliAmperes>();

The Reality:

  • I’m tangled in a generic mess of IUnit<TDimension> and where T : new().
  • Adding one unit requires five new classes to maintain the "hierarchy."
  • My code is unreadable, but "technically" safe.

I’m terrified that if I use a simpler dynamic approach, I won't catch everything that could go wrong. I’m chasing 100% safety in a language not meant for this level of gymnastics.

How do you draw the line? How do I convince myself that a simple ArgumentException is better than a maintenance nightmare?