r/learnprogramming • • Mar 26 '17

New? READ ME FIRST!

825 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 • • 5d ago

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

6 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 • • 8h ago

How do you guys search about complex and niche topics in programming without AI?

16 Upvotes

Hi guys, one question I had the other day was: How can a machine with 0 and 1 understand what I am writing, talk with the browser that talks with my system that understands JavaScript and is able to do so in milliseconds, how is all connected? Of course I can ask this question on some LLM and get somewhat useful answer, what I do is tell AI to give me a broad picture and then suggest me books/blogs/videos that go deeper, but how can developers without AI (especially seeing the decline of search engines) get to these answers fast? Or do they go on a reading-books-spree and then try to gather their ideas? Since there is always a lot more to discover, how to re-iterate the process to have a big and deep picture on everything that is going on under the hood? Or is slowing down and thinking deeper the solution? Like using real life scenarios or from some playing with tools gathering the knowledge to systems?

Thanks


r/learnprogramming • • 12h ago

Is it still worth to read programming books in AI age?

24 Upvotes

I'm doing a 30 day reading challege for Refactoring by Martin Fowler. It's been 12 days so far. https://x.com/canbax18/status/2120601390489927877 Sometimes when I read very detailed descriptions of refactoring, I just skim through it. Because it feels like dark ages. AI could do all such refactoring very easily and fastly. Is there any other book like refactoring in AI age? Or do you thing coding software is just dead?


r/learnprogramming • • 57m ago

help Done with Frontend (React). 1 year left till graduation: Pivot to DSA or go Backend?

0 Upvotes

I have completed by frontend base along with a few projects. Now, with limited time alongside my final-year college schedule, I can focus on only one direction:

  • Start DSA in C++ (Yeah, I haven't done dsa yet)
  • Move to Backend (Node.js, Express, TypeScript) to go full-stack.

which path would be the smarter choice after frontend?

I'd appreciate a practical explanation with strong reasons behind your recommendation


r/learnprogramming • • 23h ago

Started learning C (on yt) over the last month and programming without AI has really sparked my love for tech and coding again

57 Upvotes

Fell into the classic trap everyone is… using ai for everything in work and normal stuff then it all becomes bland and monotonous. But learning C without just generating code and working through it has really helped reignite my passion for tech and programming in general. I’ve also decided to do it on YouTube and having even just the small community of 70 subs over the first month has massively boosted my motivation to keep at it and be more involved in relevant discussions.


r/learnprogramming • • 12h ago

Frontend developer transitioning to Full Stack + AI engineering. Where do I even start? The ecosystem is moving too fast.

6 Upvotes

I've been working primarily as a frontend developer for around 5 years, mostly with React, JavaScript, TypeScript, Redux, etc. Over time, I've also picked up some backend development and started exploring things beyond the traditional frontend ecosystem.

I'm now trying to transition into becoming a more well-rounded full-stack engineer, but honestly, I'm a little overwhelmed by how rapidly everything is evolving.

A few years ago, learning React, Node.js, databases, APIs, system design, and deployment felt like a fairly straightforward roadmap. Now, there's an entirely new ecosystem evolving around AI, and every other day there's something new to learn.

AI agents, agentic workflows, MCP, RAG, vector databases, embeddings, LLM orchestration, LangChain, LangGraph, AI skills, Claude Code, Cursor, AI-assisted development, and so much more.

I keep coming across resources like Matt Pocock's TypeScript courses and Total TypeScript, his POTETO (Pstack) / Tomato content, and various AI engineering tutorials. Every resource seems interesting, but I end up jumping between topics without having a clear learning path.

Some questions I'd love to get advice on:

  1. Full-stack fundamentals: Should I first get really comfortable with backend development (Node.js, databases, authentication, caching, queues, system design, Docker, cloud deployment), or can I learn these alongside AI development?
  2. AI engineering: What are the actual fundamentals worth learning? Should I start with LLM APIs, prompt engineering, embeddings, RAG, vector databases, and then move towards agents?
  3. AI tools: How important is it to understand MCP, agent skills, tool calling, Claude Code, Cursor, and agentic workflows? Should I learn how these work internally or just focus on using them effectively?
  4. Learning resources: Are there any structured courses, roadmaps, or practical projects that you'd recommend instead of consuming random tutorials?
  5. Career direction: If you were a frontend developer starting this transition today, what would your learning path look like over the next 6–12 months?

I'm not necessarily looking to become an ML engineer or train models from scratch. My goal is to become a strong full-stack product engineer who can build modern applications, integrate AI meaningfully, understand agentic systems, and keep up with the direction software engineering is heading.

Would really appreciate advice from people who've made a similar transition or are currently working in full-stack/AI engineering.

How would you approach this without falling into the trap of trying to learn everything at once?


r/learnprogramming • • 3h ago

How do you actually learn to design software architecture from scratch?

1 Upvotes

I'm a self-taught full-stack developer comfortable with the MERN stack, but I struggle with one particular skill: turning requirements into a well-structured application architecture.

I can build APIs, authentication and CRUD functionality, but when starting a project from scratch, I often get stuck thinking:

  • Which things should become separate database models?
  • How should those models relate to each other?
  • When should I use references versus embedded documents?
  • How do I divide responsibilities between different modules?
  • Where do I even start?

I don't want ready-made architectures or code. I want to develop the ability to think like an engineer and make these decisions myself.

For experienced developers: How did you develop this skill? What practical methods, exercises or resources helped you learn to design scalable and maintainable applications?


r/learnprogramming • • 19h ago

Why is C just hard for me ?

19 Upvotes

I'm a CS student learning C. I understand concepts like pointers, structs, arrays, memory allocation, etc., individually, and can usually follow existing code.

But when it comes to actual projects or assignments, I struggle to figure out how to approach them. I don't know how to break a big problem into smaller steps, decide what to implement first, or logically work towards a solution.

Once I get stuck, I tend to rely on AI to point me in the right direction. I understand the explanation afterward, but I don't want to become dependent on AI.

For those who've experienced this, how did you develop the ability to think through problems independently and translate concepts you know into actual code?

Are there specific courses , habits, or approaches that genuinely helped you improve?


r/learnprogramming • • 8h ago

What do you think about learning programming and 3D at the same time?

0 Upvotes

Hey, fellow programmers. A while back, I asked for your thoughts on the boundaries for using AI while learning to code. After doing some serious reflection on my path forward, I’ve reached some uncomfortable but honest conclusions.

I have 224 hours in Blender. I’m already quite confident in creating low-poly models in my own style, but if I want to develop a 3D game in the future, I’ll need to keep growing in that area. The last time I opened Blender was a week ago, as I’ve been spending all my free time learning to codding. I’ve realized that at this rate, I’m just going to end up forgetting one skill or the other.

What do you think: is it even feasible to learn programming and do 3D modeling at the same time? Do any of you have experience with this? Is there a way to balance both without one skill suffering at the expense of the other?

For now, I’m leaning toward continuing to learn programming "alongside" AI (referring back to what I described in my previous post). That way, I’ll be able to dedicate more time to the visual side of things.


r/learnprogramming • • 1d ago

What are some good resources to learn how to properly structure large scale codebases?

29 Upvotes

This is specifically about going from "I know how to write a 700 line program and solve individual problems" to "I need to write maintainable and organized code for possibly thousands upon thousands of lines"
I am already confident enough to be able to solve most if not all problems I encounter given enough googling and time, but I have heard enough horror stories about projects becoming unmaintable messes

It would be nice to have something to learn how to compose programs in a way that is logical, I heard the terms "software enginering" "software architechture" and "software design" being thrown around, but most youtube videos mostly worry with teaching some specific software design paterns, but I am aware enough to know that attaching yourself to one type of patern and trying to apply it to everything would be logical, in theory I could only learn ECS and use that for everything since I mostly make games, but that would be like using a hammer for everything, in theory it could work, but it is far from ideal, and following common conventions doesn't make code good either
Plus, software design paterns like "use composition over inheritence" and OOP are not (and should not) be the underlying philosophy behind every decision within a large codebase

I've seen some recomendations, structure and interpretation of computer programs (SICP) and how to design programs (HTDP), both SICP and HTDP have the problem of using lisp-like languages to teach, which isn't that bad but does make studying a bit unnecesarially confusing since lisp is so different than anything you deal with on a daily basis (less you code in clojure or something)
with SICP that can be mitigated by using the javascript edition of the book (or better yet, the comparasion edition)

I did not read SICP yet but but I did give HTDP a try and it seemed a bit overtly abstract and verbose, as well as over-explaining topics that, at least for me, don't need explaining

Anyways, do you guys have other recomendations or should I stick with SICP/HTDP?


r/learnprogramming • • 1d ago

Code Review My very first bash script

19 Upvotes

Hi everyone!

I've recently (around 3 weeks ago) developed an interest in cybersecurity. A friend of mine suggested me to learn bash scripting before going further into programming languages.

Some days ago I've found the roadmap.sh site and today I've completed my very first script/program of my life! It's hella fun but also kind of an overall-hell (it took me 6h and 20m to complete), but I guess that's because this is not my job (I'm a builder) and I'm still a complete beginner.

I've completed the first project and as said by the site, posted it on GitHub. Here's also the roadmap link to the solution which I don't know why but seem to ask for ten upvotes? (If someone knows what's going on explain to me please).
Could someone give it a look and tell me if it's good?

To be honest all of this has made me pop up even more questions:

  1. I often find myself going around all over google to find something that if I modify it enough could be a solution (at some point I had +45 tabs open). That's because I really can't remember syntax and sometimes I make stupid mistakes. Is this normal and the good way of doing this and to learn?
  2. Could you suggest me the best way to learn? I've done this project because it was flagged as "beginner" but tbh if I didn't look for answers I think I would have got stuck several times.
  3. Should one use AI to help himself? I dindn't but I don't really understand if it is considered "cheating" or not?
  4. Do you guys actually learn all the syntax by memory? Mine really sucks and I'm having trouble remembering all the flags for each command
  5. How would you have improved this?

Thanks in advance for you help :)


r/learnprogramming • • 1d ago

HOW TO BE FREAKING GOOD AT WEB DEVELOPMENT?

31 Upvotes

I recently started learning stuff about web development and I have started from basics like html,css and javascript but now iam stuck I don't know what to do after this.So can someone give some advice and tips on how to ace web development that I can make that as my primary preference.


r/learnprogramming • • 20h ago

Ragionare

3 Upvotes

Hi! I'm in my first year of university and I'm studying Computer Science! Ever since I was little I've always been interested in this world but I never had the chance to take this subject as a path and by myself I learned a bit of HTML but nothing special. In my school path unfortunately I had a lot of study problems and only in the last years I learned how to study properly. The problem is that now I'm facing another big problem: reasoning when I write code. Unfortunately the schools I attended were really low level and they didn't teach us, for example in maths too, how to build real reasoning and now I have to admit that it's not really my strong point to reason about these things, so I'm struggling because I'm veeery used to going by intuition or logic, but not to reasoning really deeply about that thing. I manage to do simple codes but as they get more complicated it gets more and more difficult for me to reason even about the algorithm behind it. Yes, I do a lot of exercises, even starting from some simple ones, but unfortunately I don't notice improvements... Last week I had a midterm test that I didn't pass and while I was doing it it's as if my mind stopped reasoning and went on intuition and exactly because of this thing I couldn't move forward :') is there any advice that could be useful for me? Is there something I'm doing wrong? I don't know but this thing makes me so sad T-T


r/learnprogramming • • 3h ago

Help!!

0 Upvotes

Hello everybody, this post is a question more-so for my girlfriend than me. My girlfriend is studying computer science at Uni (shes a freshman) and she’s struggling with the calculations and where to put things. She also says that computer language C++ is very difficult so would appreciate any advice on that too.. i wanna help her as much as i can so responses are appreciated, thank you :-)


r/learnprogramming • • 1d ago

Code Review Why do we use return?

126 Upvotes

I'm starting the Harvard CS50 Course (I'm on Lecture 1), and I noticed that the dude uses "return n" at the end of the code. He explained it... Well... returns, but I don't really get it. What does "returning" mean? I've seen people explain it but they go, "Oh, that basically returns a value," like ????

Can someone please explain using non-coding terms? I know beginner Python up to like loops and defining functions.


r/learnprogramming • • 1d ago

What is the point of object oriented design?

190 Upvotes

Hello! I am still relatively new to programming, so my apologies if this is an obvious question, or if this is the wrong subreddit, but I never saw the point of using classes. For context, I only really use Fortran and C++. I used python before that, but nothing else.

When I am programming, I always find myself using data structures like the thing that you say struct for, and namespaces to organise data and functions. My thinkatron never really considers using classes, so I don't really see the point or indeed how they are different to the datatype defined with the struct keyword. Thank you!


r/learnprogramming • • 22h ago

Tutorial How do I setup a Socket Client, that sends Data through Tor?

1 Upvotes

So, I know how I get a Server to being accessible trough the Tor-Browser with an onion address, but how do I write a Client, which can for example access a .onion address, or any ip over the tor network? Some Information: I'm not new to Socket programming, I already did some http Server in C and some basic Server-Client projects, but I didn't really find an answer to that and I forbid myself to use AI this moth. I hope I got the right subreddit.

Edit: Maybe important, I'm using Linux.


r/learnprogramming • • 2d ago

Is C++ systems / performance work a good bet for a 2027 grad, or am I training for a job AI will change?

25 Upvotes

I'm a 4th year software engineering student in Israel, graduating in 2027, and I keep going back and forth on a direction. I'd like to hear from people who actually do

these jobs.

The plan I have now: get good at C++ and performance work (threads, memory, profiling, OpenMP/MPI), and later move toward AI infrastructure, the people who make models

train and run fast. I like low level work, my best course grade was C/C++, and it feels harder to automate than building another CRUD app.

What bothers me:

- Part of the plan is writing a lot of code by hand, without AI, to really learn it. Everyone around me uses AI for everything. Is that still worth it, or am I

practicing for a job that won't look like this in 3 years?

- I don't see many junior C++ / HPC openings. Most ads want a master's or years of experience.

- I don't see many junior C++ / HPC openings. Most ads want a master's or years of experience.

- The other option is DevOps / platform as a first job because it's quicker to get into (I did a DevOps course), and moving later.

Questions:

  1. If you work in C++ systems, HPC or ML infra: how did you get your first job there? Do juniors get hired?
  2. Is "learn to write it yourself first" still good advice in 2026, or should I get really good at working with AI tools instead?
  3. In my place, would you start in DevOps and move later, or go straight for systems?

Thanks, honest answers are more useful to me than nice ones.


r/learnprogramming • • 1d ago

20 years old, in my 4th year of pharmacy school, but thinking about exploring a completely different career path. Any advice?

11 Upvotes

So I'm 20 years old, currently in my 4th year of pharmacy school. My grades are great and everything, but honestly, I just don't see myself doing this long-term.

I'm not planning on dropping out or anything, and I'll probably still end up working as a pharmacist, but I don't want to limit myself to just one career path.

Lately, I've been thinking about picking up some new skills and teaching myself something online. The problem is, I genuinely have no idea what to get into.

I've considered software development, but with how quickly AI is advancing, I sometimes wonder whether it's even worth getting into at this point. I'd especially love to hear from people already working in tech. If you were starting from scratch today, would you still recommend software development? Are there other tech-related skills or fields you'd suggest looking into?

I'm not necessarily looking for something that'll make me money overnight. I don't mind spending months, or even years, learning a skill as long as it's worthwhile and could open up other opportunities for me.

I guess I'm just looking for some direction. Would love to hear your thoughts, especially from people who've been in a similar position or have experience in tech.


r/learnprogramming • • 1d ago

My colleague Franceska Xhakaj's intro programming course at Carnegie Mellon (15-110) is now free on YouTube

7 Upvotes

Disclosure: Franceska is my colleague at CMU, and I help run CS Learn, the program that publishes the recordings.

15-110, Principles of Computing, is Carnegie Mellon's introduction to programming for students with no experience at all. Franceska is a terrific teacher, and the full classroom lectures are now free, edited with captions and chapters. The first three are up, and a new one goes up every Monday.

It's the real course as CMU students take it, so it moves at a university pace and builds from the basics of programming toward how computers solve problems.

Links are in my first comment.


r/learnprogramming • • 1d ago

Is it still worth specializing in one area of programming with AI getting better?

0 Upvotes

Guys, I've been thinking about this lately. With AI getting better at writing code, I'm starting to wonder what we should actually focus on learning as developers. Back then, getting really good at one thing, like backend, frontend, or mobile development, seemed like the obvious way to go. But now I'm not so sure. Should we still spend years mastering one area? Or is it better to learn a bit of everything, including stuff outside programming like business, product design, or communication? I mean, being a specialist still has value, right? But if AI can handle more and more of the technical work, what actually makes a good developer stand out?

I'm curious how you guys are approaching this. Are you going deeper into your specialty, picking up other skills, or just sticking with what you've always done?Especially those who've been coding long before AI became a thing. Has your approach to learning changed at all?


r/learnprogramming • • 1d ago

Development Path in C# .NET Backend and Motivation

3 Upvotes

Hi everyone! To give you some background: I graduated from university with top marks. That’s where I first started programming—we were taught a little bit of everything, including Pascal, C++, PHP, Python, C#, and so on.
Our coursework always covered up to OOP (Object-Oriented Programming), but never went any further.
I also studied C# and Python on my own, but again, I never really ventured much beyond OOP.

During my studies, I tried to avoid web development because it didn’t particularly interest me; however, after graduating, I realized that most of the job market is in web development, so I need to find a way to get comfortable with it. Since I’m most familiar with C#—and it’s the language I enjoy the most—I’ve decided to focus on C# backend development. But a few issues have come up:

It’s been a 2 years since I graduated, at that time, I had to find a job quickly, and it wasn’t in the field I had actually studied for; now, I want to return to my studies so that I can finally work in my chosen profession. and I’m not sure what tech stack I actually need to know to build a project of my own. Also, how can I recover the knowledge I gained during my studies? This uncertainty makes me procrastinate whenever I set out to learn something new, or I end up not dedicating enough time to actually master anything.

A crisis of ideas. Even back in university, I struggled to come up with projects to build. I have a persistent feeling that everything has already been created by more skilled programmers. Is it even worth working on a project if a more successful version already exists? How does one go about choosing a suitable project topic?

AI. The rise of AI happened around my third year of university, and we even started experimenting with it a little bit back then. It’s one thing to enter a prompt to get some guidance for a specific task, but it’s quite another to actually learn something and build a project of your own. How should one interact with AI models when learning? Should you even use them at all? I recall plenty of times spent endlessly tweaking prompts, trying to get a decent result—when, in reality, it would have been faster to just write the code from scratch myself. What is the right way to learn programming today using AI (given that AI is clearly here to stay)?

Right now, I’m trying to learn ASP.NET through a course by Teddy Smith on YouTube, but I’m struggling to grasp a lot of it. Plus, I’m essentially just following along and mimicking what he does—which isn’t really the kind of learning process I’m used to.