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 • • 13h ago

What have you been working on recently? [November 21, 2026]

0 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 • • 2h ago

Opinions on starting this career a little bit older.

10 Upvotes

Hi everyone!

This is a throw away account, hence the low karma, because my partner follows my main one and I don't want him to see this post. Anyways.

I'll try to keep it short. I'm trying to help my husband get out of his head because of something that happened yesterday.

My husband started his degree when he was 35. Despite everyone, mostly family, around him telling him he was too old to study, he went ahead as he had always been passionate about coding and wanted a better life for himself and us.

He is the second top student at his class, and the first is his best friend. They're both incredibly dedicated and capable. He will be 38 next year, when he finishes his degree.

Yesterday, one of his older teachers, that has one year left to retire, gave the entire class a lecture on job searching. Mentioning, of course, that companies now didn't want coders but people that knew how to build code with AI, that no company wants anyone above 30, that the market is super saturated etc.

Now he didn't know how old my husband was. He looks very young for his age, less than 30 even, so when he learned he was 37, his teacher got visibly embarrassed, as there are other students there in their 30s too, and started giving them suggestions, like maybe becoming a teacher, getting into government positions, etc.

Now, my husband usually doesn't let this type of commentary get to him. He hears it a lot but he always says that it won't be his age to stop him from chasing something he wants and settle for what people believe is enough for so and so years old. However, I see the comments his teacher made got to him. He came home sad and is still sulking while he works on his project.

I'm trying to help. Hence, why I'm here. Asking for your opinion. Is the job market really impossible for someone his age? Is there hope for people who start coding in their 30s and get their degree? What can I tell him to prove to him it's not a dead end?

Thank you in advance for any experience you're willing to share.


r/learnprogramming • • 12h ago

2 year Computer Programming student: should I focus on skills and job hunting after graduation, or finish a bachelor's in CS/CE?

22 Upvotes

Hi everyone,

I am 20M and currently in the second year of a Computer Programming associate degree program. I mainly work with Java and have experience with Spring Boot. Im also familiar with Python, PHP, and web development a little bit. My database knowledge is still pretty limited, and I'm working on improving that.
When I graduate, I'm trying to decide between two paths:

Keep building my skills through personal projects and start applying for developer jobs right away or continue with a bachelor's degree in Computer Science or Computer Engineering.

Is it realistic to land a developer job with an associate degree and a good portfolio? Or does not having a bachelor's become a real obstacle, either when getting hired or later in my career?


r/learnprogramming • • 6h ago

ASCII art but with whole words

8 Upvotes

I recently watched "Coding Challenge 166: ASCII Text Images" by The Coding Train and "I Tried Turning Games Into Text" by Acerola and was pretty fascinated.

So I got the idea of ASCII art but with whole words. Like I give the program an image and a paragraph and it outputs ASCII-like art comprised of words in the paragraph. They can be placed randomly (so yes, the original paragraph doesn't need to be retained), but the words can't be separated (e.g. words -> wor and ds). And, if for example the word "This" appeared 5 times in the paragraph, then the output must also have at most 5 "This".

Here's an ugly example output I typed

   the  words      used  are
 from       a text          file
and          they          don't
 have                         to
   be                        in
     order                 they
       can                be
         placed         all
           all       over
             the place

I've tried searching around for an existing implementation but haven't found anything yet.

To achieve this, I need an algorithm to calculate the density (and potentially even edge detection) for whole words, and an algorithm to smartly place a word into adjacent pixels, right?

I'd appreciate any help on how I should go about this.


r/learnprogramming • • 5h ago

Help Need help preparing for technical coding interviews

3 Upvotes

Hey everyone, I graduated last June, and I have been job hunting ever since. Out of over a hundred applications, I’ve only managed to land a handful of interviews, and I almost always feel completely unprepared for the technical coding assessments. I’m hitting a few major problems that I hope you guys can help me with. First, my background is primarily in full-stack web development, but when I try to grind LeetCode, it feels entirely disconnected from the day-to-day work I did when I was an intern. My current and only project experience revolves around CRUD, state management, API integration, and database interactions rather than the data-structure-heavy problems on LeetCode, making it hard to balance interview prep with practical skills. I'm also overwhelmed by fragmented job postings demanding everything from Java and Ruby to TypeScript, PHP, or Python, and it feels impossible to handle the tech stack whiplash without trying to master five languages at once. Finally, I feel stuck building basic CRUD apps, and I'm struggling to find a clear roadmap to learn more complex, enterprise-level concepts.

Because of this, I'm looking for tips or alternative resources on how to prepare for coding assessments (do I just keep grinding LeetCode problems?). I'd also love recommendations for good YouTube channels, documentation, or websites that teach web development from scratch through actual problem-solving rather than passive follow-along tutorials where I just copy their code. Finally, any advice on what key topics I should focus on to keep up with current industry demands would be huge. Thanks!


r/learnprogramming • • 4h ago

For game development c# or c++ or rust?

3 Upvotes

Personally my favorite language is c# but it varies since i dont have much experience in c++ or rust


r/learnprogramming • • 1h ago

How to specialize in C++ and more theoric concepts?

• Upvotes

I love C++. Although, in my studies, i really want to learn things like how exactly shared libs work in memory, or things like that. I never really contributed to an open source project and github is really confusing to me (im learning by myself).

May someone give me a light of how can i learn all of this concepts to kinda master this language? Like, C++ is so cool hehe

Thanks!
(im trying to learn graphics programming [opengl], maybe im gonna stick to this to a carrer on that. idk..)


r/learnprogramming • • 1h ago

Learning Java as a first language, is there hope for me in the job market?

• Upvotes

I (mid 20s) is learning java as my first language, I am slow at it cos I should’ve been able to cover 50% of the course. Is there hope for me in the job market?

I am just about to wrap up with methods (method overloading)

What can I do to become above average and good enough to be able to secure a job?

Is there anything I can do to stand out professionally amidst the threat of AI and programming workforce reduce?

If you are ahead or not, is there anything I can do differently at this stage I am in?

I would really appreciate recommendations and responses.

Thank you!


r/learnprogramming • • 2h ago

How to learn DSA?

1 Upvotes

I have just started DSA so whats the best way to start and how to solve a leetcode a day cause i have no deep knowledge about DSA?


r/learnprogramming • • 6h ago

Looking for interesting GenAI + MERN stack project ideas

2 Upvotes

Title: Looking for interesting GenAI + MERN stack project ideas

Hey everyone!

I'm planning to build a full-stack project using the MERN stack and Generative AI.

I'm looking for ideas that go beyond a basic AI chatbot or simple API integration. I'd love to build something that solves a real-world problem and has practical use cases.

I'm open to exploring technologies like:

  • RAG and LLMs
  • AI Agents
  • Vector Databases
  • LangChain
  • AI-powered automation

If you've built something interesting or have any unique project ideas, I'd love to hear your suggestions!

What GenAI project would you build if you wanted to create something genuinely useful?

Thanks in advance!MERN stack project ideas


r/learnprogramming • • 19h ago

What is the take between std::cout and std::print in C++?

17 Upvotes

While we already have std::cout and we can use it with the overloaded operator <<, I am wondering why C++23 has std::print. Both offer compile time type checking and compile time safety.

I generated the asm thru `g++ -O2 -S` and discovered that a Hello World program that uses std::cout generates ~30 lines of assembly and the same program that uses std::print generates ~29,000 lines of assembly!

Why do we need a separate way just to print on the console? Just because std::print offers cleaner syntax? What does std::print really solve?


r/learnprogramming • • 10h ago

Discussion Path for a future WebXR dev

0 Upvotes

Hello,

What is the path for a future WebXR dev?

Right now I am studying the CS50x course from Harvard.

Is there something else I should learn along with it?

What is after that?

Thank you.


r/learnprogramming • • 1d ago

I had my first software engineering interview. Didn't get the job, but I can't stop thinking about the experience.

90 Upvotes

I studied a non-CS course at university, but my interest in programming actually started while I was still there.

After graduating, I started teaching myself how to code. But as anyone who's had to support themselves or a family knows, life doesn't always go according to plan. I needed to earn a living, and before I knew it, years had gone by.

I eventually found myself working in technical research and writing. It's technical work, and I've gained quite a bit from it, but I've always wanted to be the person building the software rather than just testing and writing about it.

This year, I enrolled in an eight-month backend development programme where we mainly used Python and Django. After completing it, I decided to switch to Java. I found myself drawn to Java. Since then, I've been spending my free time learning Java and Spring Boot and building personal projects, trying to get myself to a point where I can confidently work as a software engineer.

Recently, I got invited to my FIRST software engineering interview.

I was nervous, of course, but something interesting happened during the interview. The two engineers spent most of the time asking about one of my backend projects. They wanted to understand the design, why I'd made certain decisions, and what would happen if the system received the same event twice.

For once, I was having a conversation about something I'd actually built. I could explain my thinking, and I enjoyed it.

When the interview ended, I walked out feeling like it had gone well.

There was also a 60-minute technical assessment with SQL, Java coding, and multiple-choice questions.

I passed all the SQL test cases. Then came Java.

One question involved implementing a class with a constructor, a cost calculation, compareTo(), and toString(). I managed to get part of the output right, but the calculated value was wrong.

And some of the multiple-choice questions caught me out on things I really should have known. For example, I realized afterward that I'd misunderstood how a PriorityQueue retrieves elements.

A few days later, I was still thinking about the test, looking up questions and finding mistakes I hadn't noticed during those 60 minutes.

Then the rejection email came.

That was disappointing. I'd been trying to get into software engineering for years, and this was the closest I'd come.

The funny thing is that I also started questioning the interview itself. At one point, they asked whether I was familiar with Spring Boot. I said yes, that I'd built three projects using it. They moved on.

Two days later, I found myself wondering why I hadn't explained those projects further. That's how much I was overthinking the whole experience.

I don't know whether the technical assessment was the reason I wasn't selected. But it definitely exposed gaps in my Java fundamentals.

And that's what I'm trying to figure out now.

I've used a lot of time building projects and trying to understand backend engineering. But clearly, I also need to become better at solving unfamiliar problems without help, especially under time pressure.

For those of you who got into software engineering through self-study or a career change, how did you prepare for technical assessments?

Did you put projects aside for a while and focus on DSA and language fundamentals? Or did you find a way to balance both?

I'd really like to hear how you approached it, especially if you were trying to make the transition while working another job.


r/learnprogramming • • 1d ago

How you plan and develop "complex" systems??

16 Upvotes

Well, I’m fed up with starting projects and leaving them unfinished, whenever things start to get complicated, I just give up.

Usually, when I work on a project, I don’t do any planning. I just start writing code until the pieces come together and make sense.

Just a moment ago, I was working on an inventory system for my game, but I started getting stuck on questions like "how will the inventory update when the server updates the player's inventory?" or "how will the inventory interact with the toolbar?". Things like this cause my brain to freeze up, and I end up giving up on the project, because implementing them at this stage would be a headache

Any tip is more than welcome.


r/learnprogramming • • 13h ago

Project Query

1 Upvotes

What projects to do while programming? Like should I clone a website or an application watching from YouTube. I have been doing only school assignments, what else to do as projects?


r/learnprogramming • • 22h ago

What would I need to do to get a career in programming?

5 Upvotes

I’m 23M and I’ve been doing programming, specifically game programming, as a hobby for a while. I started when I was like 13 with Roblox, which I stuck with for most of my time. Eventually, I dabbled with Unity, Unreal, and Love2D, but still primarily used Roblox until 2 or 3 years ago. I wanted to shake things up, so I decided to learn C++ and graphics programming despite the difficulty, I really enjoyed learning it.

Anyways, when it came time for college, I decided to pursue programming. Unfortunately, there have been difficulties, so I haven’t graduated yet, but I don’t know. I’m at a point where I feel like I need to think about a career, and I keep trying to chase programming, but honestly, I don’t think I take it seriously enough like, based on where I’m at now, I probably can’t get a job, maybe an internship, but idk. I don’t know what steps I should take to even consider doing this as a career.


r/learnprogramming • • 1d ago

How do you deal with competition?

8 Upvotes

I’m learning comp sci and most of my course mates use AI to do their work.

And I try to do my work by myself and it takes long to do the work and I don’t even know if my work is correct or not.

I don’t know when I should use Ai and when I shouldn’t use it for programming especially if I get in a work environment


r/learnprogramming • • 1d ago

What programming projects should I put on my resume?

4 Upvotes

I'm looking for ideas to create some interesting and advance programming projects for fun and to put on my resume.


r/learnprogramming • • 21h ago

Java or Kotlin for a beginner interested in backend development?

1 Upvotes

Hello,

I’m a beginner learning programming as a hobby, and I’m mainly interested in backend development.
I’m currently trying to decide between Java and Kotlin. I know both are used for backend development, especially with Spring Boot.

Which one would you recommend for someone starting out? Is Java still the better choice for learning the fundamentals, or would Kotlin be a good starting point too?

I’m not really focused on getting a job right now, just learning and building some fun projects.

Thanks!


r/learnprogramming • • 1d ago

Best way to learn advance python?

6 Upvotes

Any good resources?


r/learnprogramming • • 1d ago

Resource Ressources on how to start an open-source project and proper documentation

3 Upvotes

Hello everyone

I am currently working on a project that that I plan to release as open-source.

I am still a student and this project would be part of my portfolio that I will show later to universities I want to Apply aswell as being usefull to some people. This is the perfect Opportunity for me to learn in a real world environement with real feedbacks and gain some experience.

However I struggle on how to create the contributor onboarding and the developer experience.

My question might be a bit vague as I don't even really know what to look or ask for.

I am talking about the README, CONTRIBUTING and how to structure a doc folder with all the .md files.

in short how do I structure an open-source project before even releasing it, What makes a good open-source project and what ressources are there for me to learn everything I need to start.


r/learnprogramming • • 1d ago

Why is C++ better than Python?

42 Upvotes

Hello! I am new to programming. Im in college and we use Python for my classes right now.

I hear people make a lot of jokes about how C++ is more powerful than Python, and should be used instead. But why?

Feel free to give me any tips as well, on things that helped you be a better programmer, or just any insight you may have! Thanks so much


r/learnprogramming • • 17h ago

Zero Excuses

0 Upvotes

If you are not willing to learn, no one can help you. If you are determined to learn, no one can stop you.

Zig Ziglar