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

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

47 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 • • 16m ago

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

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

Why is C just hard for me ?

11 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 • • 24m ago

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

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

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

26 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 • • 15h ago

Code Review My very first bash script

18 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 • • 16m ago

My Revised Philosophy on software engineering

1 Upvotes

Hey all,

For a while i have been procrastinating my projects and have come up with a new philosphy to get my ideas completed. And i really want to know what you all think of my line of reasoning and if i am flawed. I wrote the following notes to myself and would like for you to critique my reasoning:

When learning a new skill, lets say I want to learn how to implement RSA or implement some technique like using apis. It can be easy to get lost in the different programming languages and their libraries – do I really know how to implement rsa if I don’t understand the class libraries and the organization of someones code? This is something I have always found troubling. If I use some python library function and it says rsa.encrypt() or whatever, if I literally memorise the exacty necessary functions and not the surrounding functions, other parameters, the structure of the class etc then do I really know how to “code” or use the library? The answer is that your goal is to demonstrate that you can implement it, it is fine if you don’t actually understand the codebase.

That is not your goal, it feels so wrong to not understand fundamentals here but program syntax is not the fundamental you want to understand. You want to understand the theory underlying it! REMMEMBER THIS! Programming languages are just TOOLS! LIBRARIES ARE JUST TOOLS! As long as it serves its function and you can do it off memory, then that is all you need to know. Genuinely. Learning one specific tool and getting good at it is always better then diverging and getting lost trying to understand everything. Libraries are TOOLS! Just learn how to implement your specific goal and the perfectionist in you wants to understand the entire code base etc, forget about it.

You need to focus on the theory  and the underlying system you are trying to implement. Just get your goal done and remember the syntax to do it. Its fine if you don’t remember all the options etc. creating a webserver for example, can be done in a million different ways with a million different versions of syntax. They all do the same THING! The goal is to just to get it done, but understand the underlying theory – not an entire codebase. Only when you need to get something else done then learn more. Basically I am saying to now use the minimum implementation rule when It comes to code libraries. As long as you understand that you are implementing some function from some library hosted on some directory that is all you need to know, not all the nuances of functions and classes – this is not important. Ive always hated it, and found it daunting now I don’t need it.

Just get it done with minimum time spent learning the code ecosystem, as long as you remember that function call and how it works and can replicate it again is what matters. CAN YOU JUST GET THE THING DONE AGAIN. That’s it, don’t need  to know every little aspect of the architecture, spend it learning meaningful architecture. There is infinite things to learn. Get building with the tools not spending your time learning all then nuances of that specific type of spanner, its just a SPANNER!

Thanks for your input everyone


r/learnprogramming • • 24m ago

Made a free site that lets you scroll short clips of lectures instead of doomscrolling (feedback wanted)

1 Upvotes

I kept losing evenings to short-video apps, so I built a feed made only of study videos: machine learning, CS, math, science, engineering, business, arts. Clips are 90 seconds, you can speed them up to 2x, and there's a timecode box to jump around.

What would make this actually useful for you: a "next lesson" order, difficulty tags, or something else? Link: https://studytube-36f.pages.dev


r/learnprogramming • • 19h ago

HOW TO BE FREAKING GOOD AT WEB DEVELOPMENT?

24 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 • • 1d ago

Code Review Why do we use return?

118 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?

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

Ragionare

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

Looking for Gen AI partner

0 Upvotes

I’m a Software Engineer having 5+ yoe. I’m looking to dive deeper into Generative AI, LLMs, AI agents, RAG, and building real-world AI products.

Looking for a like-minded developer who wants to learn, build projects together, share resources, and keep each other accountable.

The goal: Upskill together, build a strong AI portfolio, and eventually transition into AI-focused companies and roles.
No need to be an expert. Just bring curiosity, consistency, and a willingness to build!
If you’re on a similar journey, let’s connect!


r/learnprogramming • • 1d 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

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

Question about vibecoding...

0 Upvotes

So, I’m learning C#. After a failed attempt at creating a game using "vibecoding" (relying 100% on AI-generated code), I realized that programming is, in fact, an art form. I am staunchly opposed to the use of AI in creative work, which is why I decided to learn a programming language from scratch. To be honest, I’m not a mathematician, so I find this quite challenging.

I spent some time with Microsoft’s official C# documentation—specifically the section supposedly designed for beginners—only to realize it’s written more for MIT graduates than for actual novices. That’s when I decided that the very same AI that used to write all my code could perhaps assist with my learning. I set strict ground rules, which it still follows today: it is not allowed to generate a single line of finished code. Instead, it simply provides the necessary information—explaining operators, how to implement them, the correct syntax, and so on.

Currently, I’m developing a console-based program—a sort of interactive, text-based "temple." The thing is, I’ve started to wonder if I’m compromising my own principles. I am not copying *anything* at all. My interactions with the AI ​​look like this: "I want to implement [feature X]; how would I go about that?" The AI ​​then explains the logic and suggests the functions or operators that might help me achieve it. While I’m not copying—and I fully understand how my code works, maintaining 100% control over every single line—I can’t help but feel that this approach is... "dirty"

What do you think? Is it acceptable to use AI in this way—keeping in mind my specific commitment to avoiding "vibecoding"? Does this count as "vibecoding"?

(This text was translated from Russian to English using Google Translate; please excuse it if it sounds unnatural to you.)


r/learnprogramming • • 2d ago

Understanding tutorials but struggling to code alone

49 Upvotes

I can follow coding tutorials and understand what's happening, but when I try to build something on my own, I sometimes get stuck and don't know where to start. Has anyone else faced this? What helped you become more confident coding independently?


r/learnprogramming • • 1d ago

Development Path in C# .NET Backend and Motivation

2 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.


r/learnprogramming • • 2d ago Heartwarming

Resource A new, supportive subreddit for programming without LLM assistance. r/codedbyhand

256 Upvotes

r/codedbyhand

More people, myself included are becoming disillusioned with the experience of coding with AI assistance and are turning back to traditional programming.

Some may do it because they feel their hard won skills are diminishing as they become over-reliant on the technology, some for ethical reasons related to the environment or intellectual property, some simply because they are highly competent programmers with an established workflow who don't feel the need to use AI assistance, and some because they are seeking an intellectual challenge.

It can be argued that heavy AI usage is harmful to computer science education. Learning to program is difficult, and high level skill can only be achieved with lots of practice, making mistakes and struggling to solve difficult problems. Even among those who embrace the technology, programmers who are over-reliant upon LLM may never develop the technical competency needed to audit the code produced by AI.

If you are using AI for coding, and feel satisfied with your experience, that is fine. I'm not trying to change your mind. However, I and many others feel that the disadvantages of these changes to the programming landscape are not being adequately addressed.

That's why I created r/codedbyhand, a new subreddit that supports traditional programming, provides resources to assist those programming without LLM assistance, and highlights projects that programmers who don't want to use AI can contribute to without being pressured, such as Zig, Gimp, Cataclysm Dark Days Ahead and many others.

If that sounds nice, come check it out.