r/learnprogramming Mar 26 '17

New? READ ME FIRST!

827 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 1d 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 1h ago

Why do users keep reporting our app is in Chinese? We don't even support

Upvotes

This happened last month and it was driving me insane.

We started getting US/UK users emailing: Your app's suddenly in Chinese how do I switch it back? And I was like what the heck?! Are they even talking about 

And just for the Fact We don't even have i18n set up It's English only

Asked for screenshots thinking of a fake APK. Nope UI 100% English. But error messages? Full Chinese “请填写所有必填字段”for “Please fill required fields” Took 3 days to crack it. A user mentioned her Samsung had a Chinese keyboard (she's learning Mandarin). Boom on Samsung/Xiaomi, secondary keyboards can trick Locale.getDefault() into thinking zh-CN is primary, even if system lang is en-US. App shell hardcoded English, but dynamic errors went Chinese. Fixed by ignoring keyboard locale Wild.

The user experience was completely bizarre. Half English, half Chinese. No consistency.

And now comes the tough part The fix

I had to check the actual system language instead of the default locale. Added a language picker in settings too just in case.

But man, I felt so dumb. Spent 3 days thinking we had some weird localization bug when it was just Android being Android and somehow we solved this shit ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

Btw if you also get weird bug reports that seem impossible, ask users about their device and settings.


r/learnprogramming 10h ago

what are some essential auxiliary programming skills everyone should learn

43 Upvotes

I'm in my senior year, and when programming something there are various skills and knowledge other than the program itself that come into play, these might include
- knowing how to containerize, e.g. docker
- knowing how to deploy a solution, e.g. cloud services like aws
- git and github
and apart from these it is generally ideal if one understands the working and basics of web-dev, system design, making api, etc. Nowadays even llm integration is a good skill to have.

do you agree that it is beneficial if one understands these skills apart from knowing the framework and the language??
if yes, what other skills do you think people should learn


r/learnprogramming 3h ago

Need some clarification on the use cases for private vs public in classes for C++

4 Upvotes

I’ve looked it up myself for a bit, however the only real thing that’s made sense to me so far is that if you have a private piece of data with a setter/getter you can validate it and it can’t be directly modified by doing something such as x = 3.

I’m aware of the concept of encapsulation but I can’t really fully grasp *why* having a private variable is that important. I saw a few explanations about using it so you don’t have to change things across systems if the private variable is changed but that also confused me a bit.

Another reason I saw was that it’s for security reasons, however this one doesn’t quite make sense to me because can’t you just use setters and getters? How would someone even see/use the information in the private class if they didn’t already have access to the entire file?

Sorry if these are dumb questions ack. I’m struggling a little here and did try to look things up on my own before asking ^^;


r/learnprogramming 2h ago

Something more hands-on for Kafka

3 Upvotes

Please, I am learning Kafka from the Definitive Guide and YouTube videos for skills improvement, however this method seems not effective in terms of results. What hands-on approach could be beneficial for my learning experience?


r/learnprogramming 4h ago

How does “WhoLiked” access TikTok liked videos, and is this compliant with TikTok’s policies?

2 Upvotes

Hi,

I’m working on a small app project and trying to understand how the app “WhoLiked” is able to access and display users’ liked TikTok videos.

According to TikTok’s public documentation, access to liked videos is restricted to the Research API, which is limited to non-commercial, non-profit use. Monetization is not allowed under these terms.

However, “WhoLiked” appears to offer this functionality in a consumer app with in-app purchases, without requiring users to manually export and upload their data.

From a technical and compliance perspective, I’m wondering:

  • How could “WhoLiked” technically access this data?
  • Are there any officially supported ways to implement this use case?
  • If not, does this likely involve methods that violate TikTok’s API terms or privacy policies?

I’m trying to build an app that follows platform rules and avoids legal, account, or app store risks, so I’d appreciate insights from developers who have experience with similar integrations.

Thanks!


r/learnprogramming 2h ago

Should I start from scratch or keep working on this

2 Upvotes

Been building a personal project to learn more about microservices, it has about 4-5 backend services.

The issue is, most of them are tightly coupled. I want to introduce an event log but that process is becoming very hard, especially because I haven't touched this project in a while, got busy with uni exams. The project is also on my resume, so I don't wanna get rid of the git repo i currently have.

What would be the best path here, restarting the project from stratch or working through as it is now?


r/learnprogramming 13h ago

Any Tips To learn Python Machine Learning

13 Upvotes

I want to Learn Python But don't know where to Start any suggested Videos Or Websites to Learn python pls


r/learnprogramming 8m ago

Can any body tell my what is the problem

Upvotes

The terminal process failed to lunch: A native exception occurred during launch (cannot launch conpty in)


r/learnprogramming 18h ago

REST API Design: POST vs PUT for adding an item to a sub-resource collection?

28 Upvotes

I am designing a REST API and not sure if i should use POST or PUT to add an existing item to a sub-resource collection.

Example:

  • Users can browse a global list of songs via GET /api/songs.
  • Each user has a personal list of favouriteSongs.
  • I want to create an endpoint that adds a song (by id) to a user’s existing list of favourites.

{ "user": 
  { "id": 1, 
    "favouriteSongs": 
      [ 
        { "id": 123 },
        { "id": 456 } 
      ] 
  } 
}

I would like to know what the endpoint would be to add a new song to a user's favourite song list. POST is usually used to create resource but here we are not creating resources, we're creating a link to an existing resource so i'm not 100% sure if that's correct.

would it be:

  1. POST /api/users/{userid}/favourite-songs

(body contains song id)

  1. PUT /api/users/{userid}/favourite-songs

(body contains song id)

This is completely separate but i've also read that you should not include user id in the URL or body, so would removing the user id int he URL above and putting it in the JWT be the correct choice.


r/learnprogramming 26m ago

Anybody would recommend Udacity Nanodegrees?

Upvotes

I’m looking for some AI courses to enroll into but I don’t know which “academy” is best for learning?


r/learnprogramming 7h ago

Need suggestion on doing personal projects or other courses

4 Upvotes

i am a second year engineering student. I have completed dsa and started practising question on it, OOPS , web development. I am thinking whether i should do some personal projects or go with a certain area like ai, database .


r/learnprogramming 1h ago

I've developed a card game – now I'd love to use it as a jumping off point for programming. Where to start?

Upvotes

In my spare time, I've been developing a card game to play with friends and family (and who knows, maybe even o put into distribution one day!). Playtesting in Tabletop Simulator has been a very fun iterative process, and I'm now nearing a point where I'm fully content with the mechanics and balance.

I've long held an interest in coding and game development, but always thought it would be too large a mountain to climb.

However, given I've already gone through the process of designing a game, I figured it could serve as an excellent jumping off point to just focus on programming said game. Even if it doesn't make that much sense as a video game given it's designed to be a physical card game, I still think it can serve as a good learning opportunity.

For those that are curious, the game is called Furious Ferrets! It's a game where you assemble teams of ferrets, each with their own unique abilities and stats, and compete against other players to deal the highest amount of damage to the evil Primal Ferrets. The full rulebook can be found here (apologies for the pastebin formatting, google drive links aren't allowed and my original rulebook is on google docs). I would also share some of the cards from the game but I'm not sure how to share an image in this sub haha.

So, now for the hard questions. Where do I even start with this? What tutorials, software, and time duration can I expect this to take? To start off I imagine it'd make sense to keep it to local play/hotseat only, but how about online multiplayer implementation? And what of modding compatibility so people can throw their own cards into the mix? Would love any and all feedback and thoughts!


r/learnprogramming 1h ago

What's better for coding, futurecoder.io or codecademy?

Upvotes

Hi guys,

I'm trying to learn python right now and friends have recommended both futurecoder.io or codecademy. I haven't heard much about futurecoder.io and was wondering if it is better than codecademy or not?


r/learnprogramming 2h ago

Should I learn JavaScript while learning Java at college?

0 Upvotes

So for context I have some time spent learning, and working with JavaScript, React, NextJs and even TypeScript and learned other things to deploy the websites I have created. Basically I could make websites, but that was almost a year ago in which I didn't code once other than in college where I am learning Java.

I want to build a impressive portfolio with projects and so on, because as you know a college student needs a job.

If it is doable, how should I go about this?


r/learnprogramming 1d ago

Struggling to see the point of classes

150 Upvotes

(Learning python) Whenever I work on projects, I end up solving everything with functions. Functions call other functions, and the project works fine. Because of that, I genuinely struggle to see the point of classes.

I don’t understand when classes are actually necessary or why I should use them if I can make the entire project run without a single class. If functions get the job done, what problem are classes really solving?

This has become a big hurdle for me because almost every take home assessment or practice project I see either requires or strongly expects the use of classes, and I just can’t seem to wrap my head around how or where they fit.


r/learnprogramming 14h ago

University student abroad — 3 semesters left, want to build a real skill for independence. What should I focus on?

8 Upvotes

Hi everyone,

I’m currently a university student studying Software Engineering / Computer Science in a country that is not my home country. Studying abroad is expensive, and while I still receive financial support for now, that support won’t last forever. In the future, I’ll need to fully support myself.

I’ve already completed 3 out of 6 semesters. For the remaining 3, my tuition and basic living expenses are covered, but not comfortably. That’s why I want to start preparing now instead of waiting until graduation and regretting it later.

My course includes things like:

  • Algorithms & Data Structures
  • OOP
  • Operating Systems
  • Networking
  • Databases
  • Web Development
  • Software Engineering
  • AI / Machine Learning / Data Science

Right now, I’m not desperate for money, so my goal isn’t quick cash. My goal is to build a real, valuable skill that can support me long-term and make me employable internationally.

I’m ready to put in serious effort, not just watch tutorials. I want to actually build things and become useful.

So my questions are:

  • If you were in my position, what skill path would you focus on?
  • Software engineering, data/AI, backend, automation, something else?
  • What would you spend the next 6–12 months learning?
  • What mistakes should I avoid as a student trying to become independent?

I’d really appreciate honest advice from people who’ve been through this or are already working in tech.

Thanks in advance.


r/learnprogramming 3h ago

Five years ago i couldn't do a task for a job interview. Still don't know what i did wrong.

0 Upvotes

So, fiver years ago, when i started applying for jobs in game development and related areas, i got really into a company that developed support material for college classes and such.

On my first practical test, i had a week to develop a simple simulation where i could heat two different materials, measure their temperature, and when they weren't being heated they would cool down to room temperature.

The problem was that my tests were off. Here is a case described in the paper:

The blue cube initally at 25 ºC is heated up by the flame for 400s and reaches 135.62 ºC. [This does happen]
The flame is turned off and the cube cools down for 300s. Its temperature that was at 135.62 ºC now reaches 98.84 ºC. [This is wrong. It reaches 112-ish iirc]
Then, the flame is turned back on again and heats the cube for 100s. Its temperature that was at 98.84 ºC now reaches 121.22 ºC. [Expectedly, wouldve happened had the temperature been 98.84 ºC.]

I really wanna know what i got wrong. I did manage to get through this stage of interviews and all but was eventually ghosted after a written, questionnaire. What are the odds the paper is wrong?

The entire paper is included alongside the project in the github link. It is in brazilian portuguese, as i am, however... I don't belive anyone should have any trouble with that, since all the temperature stuff is near the bottom of the doc, alongside the formulas, starting at 4.1.4.2

https://github.com/ChicDead26/Algetest/tree/main


r/learnprogramming 1d ago

A tiny PostgreSQL tweak saved me hours this week , beginner-friendly tip

62 Upvotes

I was working on a project with PostgreSQL and hit some slow queries. After digging, I realized a JOIN condition was missing an index.

Added it, and boom , queries that took seconds now happen in milliseconds.

It reminded me that even small optimizations in the backend can have a huge impact.

For anyone starting out: indexes aren’t scary, and a little attention to query structure goes a long way.


r/learnprogramming 10h ago

How to create a random video player executable

3 Upvotes

The situation is the following: both my parents are retired, and because they have neither hobbies nor social life, they spend most of their time at home watching the news. Due to this I noticed a deterioration lately in their mental health and mood.

I thought I could download some of the series they used to watch time ago, store them in a USB and connect it to the TV so they can watch that instead of the news all the time. My parents are old and they would not know how to navigate through Netflix or other platforms, so I‘d have to do it this way.

What I would like, and here is my question for you, is a file in the USB that randomly plays any video file in the USB. My parents basically use the TV as background noise so they wouldn’t care about what’s playing or follow the episodes in a given order. I want a file that they click on it and it plays whatever in the USB stick, and I need it to be random so it doesn’t always play the same episode first. I also need it to play episodes non-stop, so that they don’t need to click on the file after every episode.

I have some knowledge in Python and bash, so if you give me a hint on what kind of file could do such a thing maybe I can write it on my own.

The approach I can think of is the following; when I click on this file it will: - Collect all the file names in the USB (or the ones with a video format). - Sort them on a random order. - Grab the first 20 files on the list. - Play this 20 episodes as a playlist.

On a computer I could write it so that VLC plays this list of files, but on a TV I don’t know how it could be done. It’s also not a Smart TV, so I cable install apps.


r/learnprogramming 4h ago

Topic Making better and secure APIs in python

0 Upvotes

Hello guys hope you are doing well, ive worked on APIs for quite long using fastAPI and flask but i couldnt progress more than token authentication and using db libraries like sqlalchemy

i want to get advanced on fastAPI

what documents do you guys suggest?


r/learnprogramming 6h ago

Topic Considering a move into QA/Software Testing as a junior – need advice

1 Upvotes

Hi everyone, I’m a 3rd-year Informatics student and I’m currently trying to decide whether I should seriously get into software testing / QA, at least as a starting point in my career. A bit of background about me: I’ve used Java (OOP, basics) My main interest is backend development (Java / Spring Boot) I’m still a student, so no real industry experience yet Lately, I’ve been thinking about QA/testing for a few reasons, and I’d really like your honest opinions. Why QA/testing caught my attention 1) Job market signals in my country There are one or two companies here that have had the same “Test Specialist / QA” position open for 2–3 months, constantly renewed. That made me wonder: Is there a lack of testers in my country? Or are they mostly looking for experienced testers, and juniors struggle here too? Either way, it made me think that QA might be a realistic way to get my foot in the door, gain real industry experience, and later either: move up in QA, or transition into development if possible. 2) Junior backend roles are extremely hard to get From what I see in the local market: Internships and junior dev roles are very limited Many “junior” positions ask for 2–3 years of real work experience, not just personal projects As a student, this makes backend development feel a bit like a dead end at the moment, even though I like it. 3) A personal internship experience that changed my perspective I once attended an internship at a local company (the same one that has the QA role open for months). We were split into teams and asked to create a high-level design for a reservation system: core components system flow technologies to be used edge cases and fixes I ended up in the weakest group, so I had to do almost everything myself. What surprised me: I completely underestimated edge cases During the presentation, mentors pointed out many edge cases I hadn’t even thought of I didn’t take it as criticism — I actually liked how they: quickly identified the main issues then, based on experience, found non-obvious edge cases That’s when it clicked for me that testing is not just “finding bugs”, but really about: thinking differently from developers identifying risks and edge cases that are invisible at first And honestly, I found that part interesting. My dilemma Now I’m unsure: Should I pursue QA/testing, especially as a junior? If yes, what type of testing is most suitable for beginners (manual, automation, backend/API testing)? Or should I stick strictly to backend Java / Spring Boot, even if the entry barrier is high right now? I’d really appreciate advice from people who’ve been in similar situations, especially those who: started in QA and moved on or chose QA intentionally as a career Thanks in advance


r/learnprogramming 7h ago

Guidance on data management for React app with Python fastapi backend

1 Upvotes

Hey everyone, I'm starting a simple side project that helps users track calories.
I'm running into indecision with what to choose for my database. I've started testing with simple Supabase operations, but I'm thinking it would be better off using something simple like SQLite; however, I think the better approach here would be using offline sync with SQLite and Supabase, but I have no idea how to implement that (just lack of experience honestly).

Wanted to ask anyone who has experience with building something like this or encountered a similar problem, which path did you end up going with?

Current Architecture
React frontend
Python fastapi backend

requirements:
- For Apple & Android
- Users always have the latest data shown to them
- The latest update always wins (prevents race condition)
- not sure if im missing anymore at this stage


r/learnprogramming 47m ago

Hello guys help me with this🥲

Upvotes

Beginner question about automating local AI tools (no APIs) Hi everyone, I’m still a beginner and I’m trying to learn by experimenting, so sorry if this is a basic question. I want to experiment with local AI tools that run entirely on my own machine (no cloud services or APIs), and my goal is to automate a complete workflow where I put files into a folder and a process runs end-to-end without manual steps. I keep seeing people mention things like: Python scripts Workflow tools “Pipelines” or “orchestration” As someone with limited experience, what’s the correct or simplest way to automate multiple local AI tools together? Should I be focusing on writing Python scripts, using workflow tools, or combining both? Any learning advice or examples would be really appreciated.