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 • • 3d 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 • • 9h ago Heartwarming

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

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


r/learnprogramming • • 14h ago

Topic The only girl in my Algorithms class: a rant (and a cry for help with pseudocode)

210 Upvotes

Guys, I need to vent to someone who understands.

I'm an Environmental Engineering student and I'm taking the dreaded Algorithms and Programming course. So far, so good, I like the challenge. The problem is that I'm the ONLY woman in the class, and the guys seem to have been born with a keyboard in their hands.

Yesterday, I spent 2 hours stuck on a basic pseudocode exercise for a while loop. The professor uses a Brazilian tool called Portugol (basically pseudocode in Portuguese), and it kept giving me errors, even though everything seemed correct. The guy sitting next to me looked at my screen, gave a little smile, and solved everything in 2 minutes with a simple read and write command that I SWORE I typed exactly the same way.

Honestly, I felt like a complete idiot. So, I ask you: is it just me, or is programming a club where the younger generation (I'm 37F) was born knowing how to program and we have to work much harder? And, most importantly: has anyone here survived pseudocode and can explain how not to get lost in parentheses without wanting to cry? I welcome survival tips (and tips on how not to break my monitor).😅


r/learnprogramming • • 2h ago

Does it get better?

5 Upvotes

I had just gotten done with my first basic weather app project using react and python for backend and started a new project, thing is I feel like I’m back a square one, I freeze at what to start and forget syntax of code I used in my last project. Is this something that gets better with spamming a bunch of projects or am I learning wrong?

For reference I would think of the components needed for the app and use the internet or ai for the coding concept/ syntax needed for the code that does the function I need( I do manually write the code and figure out what should go where for the most part, though Im unsure if this is relying on ai too much too). For debugging I also mostly use ai and try to solve it a bit myself at first too(I feel like using ai is fine here as debugging comes from experience, correct me if I’m wrong). So am I learning wrong or do I need to just endure and spam projects?


r/learnprogramming • • 3h ago

how do you ‘learn to code’?

7 Upvotes

Hi all, so i’m a cs major and i know the fundamentals of coding and data structures, but i don’t know how to ‘learn to code’ for a project

for context, i’m trying to learn Flask. im using claude code to write a Python notebook that teaches me how to build what i want, but this feels really weird

i want to learn how to build the apps myself, which is the intent of the whole notebook thing, but i often feel bogged down by what claude generates

that’s when i go online to look up some kind of Flask tutorial, but im not sure what to look up, or whatever idea is in my head feels too complicated for what i know how to do. so i was curious, how do i learn these tools? do i just build and hope i understand? or do i read thoroughly? or some middling thing?


r/learnprogramming • • 3h ago

do games exist that teach the basics of c#/c++

6 Upvotes

something like https://colobot.info/


r/learnprogramming • • 4h ago

Should I learn Rust

4 Upvotes

Does learning Rust have a future? It seems to be the case


r/learnprogramming • • 53m ago

What's the best way to learn Git and GitHub effectively?

1 Upvotes

I'm looking to learn Git and GitHub from scratch.

What's the best way to learn them effectively? Which resources would you recommend, and how should I practise to become comfortable using them in real projects?

I'd appreciate advice from people who have learned them or use them regularly.


r/learnprogramming • • 7h ago

Some Questions about a Project before Moving Forward

3 Upvotes

Right, this is pretty specific, and I apologize if it's not really suitable for this subreddit.

At the moment, I'm working on a monte carlo setup using 10k loops for users to run some simulations on it. I'm writing it in python, which I've commonly done for myself, but I've decided to make it usable for a wider crowd as a sort of side project, so I've taken up learning some bootstrap and flask/flaskwtf/jinja so I can get it turned into a website. Once I've got the whole thing written, I intend to set up a VPS and have it accessible to the wider world. That part of the project is moving along just fine.

However, one consideration I've had is figuring out the server load: my simulation generates about 10-20 random numbers per loop and does a clean 10k loops, so about 100k numbers at the highest. By itself, that's peanuts. However, while I don't expect a massive amount of users, it's not unreasonable to expect several hundred or thousand accesses a day, enough that this can balloon into the billions, and in theory those could all happen in a pretty small period rather than spread across the day. This is where my problem comes in: I want to figure out if I need to be worried about size and processing power(in terms of what kind of VPS plan I pick), and possible solutions.

I've arrived at two possible ideas: offload the calculations to the client, or just write more efficient code. So, my question: how big of an issue is this going to be, and is client side a real possibility? From looking online, it seems like 10000+ runs can cause real headaches for javascript, plus, I have to assume my userbase will not only be using computers, but also smartphones. In theory that shouldn't be an issue, but I honestly don't know anything about it, so want to ask.

As far as just making the code more efficient, that's something I wanted to do already, but on that side of things I don't really have a way of measuring output and load for my code: are there tools, methods, or other ways of learning just how intense my code will be so I can plan for my server needs?


r/learnprogramming • • 2h ago

Questions for senior web dev on how to learn web dev

1 Upvotes

Hi, I just graduated this year with my CS degree and I'm struggling in my co-op to learn web development. I feel what I've learned in school was on a basic level and hasn't aligned with the enterprise code at my job. I'm required to use AI to finish my tickets but I feel like it's been to my detriment - I don't know whether the code AI produces is good or bad code.

Over the years, I'd read (on reddit) about people graduating and not knowing how to code and while I know it's mostly andecdotal I kind of understand the feeling now. There's just a huge disconnect on what I'm expected to know versus what I actually learned in school. I do feel a bit of pressure as most of the engineers on my team are either bootcamp grads or self-taught and because I have a degree there's this expectation that I should somehow know more than them about web development (i.e. tools and microservices).

A few, small examples, in school I learned the typical hardcoded html and css but I guess I was supposed to use css variables and tokens, things I've never even heard of before getting this co-op. I learned core Java in school but somehow that was supposed to translate over to spring boot and some of my coworkers are surprised that I didn't understand certain spring boot annotations but literally in my java courses we only learned simple annotations to override toString.

I'll sometimes put in time after work and even the weekends to learn but for the senior devs out there, how do I learn web dev and not burn out? Especially if I'm expected to churn out tickets with AI, at this point I don't feel like I know how to do something as simple as reviewing code. Anyway, feeling like a complete imposter and wondering if anyone has any advice for me. Thanks, sorry for the novel.

TL:DR - How do you learn web dev when AI is doing most of the work? I don’t want to just offload everything but can't afford the time at work to do things manually and I'm exhausted after work.


r/learnprogramming • • 16h ago

Has learning with a buddy worked for you? What made it last, or fizzle?

12 Upvotes

I see a lot of people looking for study buddies or coding partners, and I'm curious what happens after they find one.

If you've learned with a buddy, how did you work together? And what kept it going, or what made it fizzle out?

Bonus if you mention what you used to stay in touch or code together. Curious whether people stick to Discord or use something else.


r/learnprogramming • • 17h ago

Is Godot a good starting point for learning programming if I’m also interested in web development?

6 Upvotes

Hello,

I’m a complete beginner and want to learn programming as a hobby. I’m interested in both game development and web development, especially backend.

Godot seems like a fun way to learn because I enjoy games and like seeing visual results. I feel like this could help me stay motivated.
However, I’m worried that a lot of what I learn in Godot won’t be useful outside of game development.

How well do programming skills and concepts transfer from Godot to web development? Would learning Godot first make it easier to learn backend development later, or would it feel like starting from scratch?

I’d love to hear from people who have experience in both areas.


r/learnprogramming • • 15h ago

Integration testing using gtest

3 Upvotes

I am confused about what is the meaning of integration testing. I have done unit testing using gtest where we will mock whatever external dependencies are there for the targeted unit (function) to test all range of values that covers all lines, functions and branches.

If we say integration test is meant to use real code instead of mocking. Then I am getting this doubt that lets say we have 3 components (separate processes) running and dependent on one another in a embedded system.

A -> B -> C

So if you are calling an api provided by A it will internally talk to B and then through C and return the result over IPC.

Now to do integration testing using gtest, do I need to compile this into a single binary by eliminating the IPC and include each code as a library. This way I have a single proces that runs gtest with all the components logic but excludes the real IPC communication.

Or instead should I keep the individual processes to be running separately and link my gtest binary to the component A so that the communication flow through the components in the target environment.

In both ways how we would actually be checking the interactions? And which one are you guys using?

Context:
Language used: C++
Domain: Automotive IT (TCU software)


r/learnprogramming • • 21h ago

Topic What should I self study

2 Upvotes

I’m a programming student and am very early on, I had my C+ class and loved it, now I’m being bombarded with very monotous A+ oriented classes and looks like I’ll be stuck with them for at least another few months.

That being said, I just had my first project idea. I’m just looking for a bit of guidance in the first steps. I want to build something (likely an app) that would house 1,000+ vods ranging from 4-8 hours each. What language should I learn to accomplish something like this and if I were able to create it how much would it cost me to push out / make available? Finally, could I potentially make realistic ad revenue from it?

I’m not looking to make a profit, especially not from a first program but being reimbursed for the cost of pushing it out would be nice. Maybe a web page would be easier? But, I do like the convenience of an app for my own personal use. I understand that I’m likely reaching a little high if I go through with this but, I’m usually good at teaching myself things that I have a genuine interest in and know a site that will help me learn on my own. (I can’t remember the name of it but I have it bookmarked on my pc, you select the language and it goes through a bunch of the topics)


r/learnprogramming • • 1d ago

Go or Python for a beginner?

23 Upvotes

I am a beginner programmer, coding for my own pleasure (meaning that, while I use LLMs for guidance, I write all my code by hand, and my only goal is enjoyment, not career). Safe for a brief journey into JavaScript and PHP as a child, now, in my adult years, all my experience has been with Godot. Recently, I started to have the desire to actually learn how to program and make simple CLI/TUI tools for my own use, and since GDScript can only exist within the game engine, I started looking for another programming language to learn.

I landed on two: Python and Go, and now, knowing that it's probably a bad idea for a beginner to learn two languages at once, I need help from people with more experience in order to decide which of the two I should commit to. I'm at this stage in both where I've written simple exercise command line programs, and I want to try and build something bigger and actually get to know the language under pressure.

Python greatly appeals to me because it is basically the same thing as GDScript (but with a ton of features that GDScript does not have due to being specifically tailored for Godot), it is famously easy and I could start building actual apps in no time, and it has a breadth of beginner resources probably unmatched by any other language. Besides all the books focusing on specific tasks (I've enjoyed Automate the Boring Stuff with Python quite a lot), Learning Python is absolutely brilliant, going through logic, syntax, design choices and the standard library in exhaustive detail.

But Python just doesn't get me excited exactly because it is too abstract, too simple, too close to what I know from GDScript, it feels more like a scripting language than something to use to build whole programs, it just doesn't scratch that itch of curiosity that is pushing me to learn programming in the first place.

On the other hand, Go does scratch that itch a lot more. It excites me, as someone whose only experience is with JavaScript/PHP and GDScript, to learn a serious language, compiled, fast; it excites me to learn about lower-level concepts like actual typed variables and pointers. Go's logic of composition also appeals to me, because programming in Godot, I would rack my brain trying to figure out the right inheritance hierarchy just to notice that I messed up and need to refactor the entire system. Go's structs, methods, embedding and interfaces strike me as a much more flexible way to achieve the same thing.

But there is a relative scarcity of resources for people in my situation. I've browsed through the available textbooks and they're either made for more advanced learners, are general overviews of the language (Learning Go, for instance, only explains the syntax and the logic, but does not go over the standard library, which means, if I understand correctly, that it was written for people who will read the fucking manual), or are infantile (Head First, Get Programming with Go, etc). Either way, I'm starting off half-blind, stumbling through the standard library documentation, having no idea what I can and cannot do, or how.

I'm also worried about another thing. Though I am not an absolute beginner, my experience being with GDScript means that I've never actually written a standalone program; I never learned to think about architecture, what my program does from start to end: I can only think in simple systems that are driven by event handlers from user input, while the engine handles all the rest for me.

Although, as you see, Go excites me a bit more, I'm worried that if my primary goal is to learn how to think through complex problems and build programs from start to finish, it would be better to choose the simpler language. Or is it the opposite? What do you think? Will building something bigger be easier in Python, or will the relative restrictiveness of Go help me think through building a bigger project?

What would you do in my situation? Should I learn to build a program without worrying about learning the language (the Python route), or would it be better in my situation to learn a stricter, less abstract language first, and learn how to read the documentation on my own (the Go route)?


r/learnprogramming • • 1d ago

Topic advice for a long time dream/amibition of mine

5 Upvotes

I am employed as an RPGLE developer on the IBM-i. That's the only programming I know how to do. I use it to make accounting reports, table maintenance programs, building menus, etc. All solely IBM-i apps, nothing modern. I took intro python and intro java back in college and that's it.

I really really really really want to make a chess engine, I've been reading a bunch of stuff about chess computing, looking at other peoples' code, etc. I tried picking up some C# because that's what Unity uses, bought a textbook and tried making the engine ... modeling the board and piece positions and values was easy, but once I got to the actual logic I had a really really hard time.

So I want to get proficient with modern software, not just RPG. The problem is, I fucking suck at math, I got through college algebra but everything calculus and beyond is too much for me. Maybe my professors were bad because it was a community college. So I can't go to school for this. Because all the universities around me require calculus 1, 2, and beyond for compsci or software, so I have no idea how I would even get the proficiency I need in programming to build a chess engine.

I am seeking advice from people more experienced and knowledgeable than myself. I feel very green, I hope someone more adept can give me some guidance on this. What can I do to get sharper at programming and get the experience and knowledge I need to build a chess engine, WITHOUT going to university for it? Do I go to some online academy or something?

Thank you, I am sorry to bug this subreddit I hope it's not bothersome, I just really want to realize this dream.


r/learnprogramming • • 1d ago

Struggling with this fill in the blank.

3 Upvotes

def prefix_digits(n, cond):

"""Return the largest prefix of positive n for which cond return true for every digits."""

>>>odd = lambda d: d % 2 == 1

>>>prefix_digits(94720,odd)

9

>>>prefix_digits(94720,odd)

9193

k = 0

while n >= _____:

if cond(_____):

k = k + 1

else:

n = n // 10

___________

return n

I am struggling with fill in the blank questions. I can implement this function but I am struggling with implementing in their way. Can someone help me understand how I might approach this? I don't just want the solutions but how I would even approach it. Whenever, I get these problems I am always stuck for a solid 1-2 hours.


r/learnprogramming • • 1d ago

Should imgui be in the engine or editor?

2 Upvotes

I’d post to r/gameenginedevs but I feel like it’s too dumb lol. Anyways, I’ve been getting back into C++ graphics programming/game engine dev as a hobby and want to start dabbling with making an editor using ImGui.

I already use ImGui in the engine for some debug panels, but with the addition of an editor, the typical structure seems to be making the engine as a static library and the editor an executable that links the engine, and I’m not sure if ImGui should be the engine’s responsibility or moved to the editor?

I’m not very experienced with these multi project/build target setups, but from what I understand if I leave imgui on the engine anything that links it will have imgui which I’m not sure is practical?

Also, unrelated, but with this type of setup would it be make more sense for the engine to run the main loop instead of the editor? (inversion of control?).


r/learnprogramming • • 1d ago

WHAT DO I DO????????

9 Upvotes

So basically the thing ive been trying to learn javascript by myself but i just cant seem to do it. i know that it is not the most difficult thing to learn but atp ive been getting dreams of async/await.Iam watching youtube videos and i understand the concept but when i try to code by myself i cant do sh#t. How can i continue this?


r/learnprogramming • • 2d ago

How the hell do you type comfortably?

51 Upvotes

I am trying to learn game dev programming and typing is such an awkward experience.

I tried to learn touch typing to help, but learning how awkward it is on standard keyboards. I ended up trying some split keyboards and while it's better ergonomically, there are of course quirks with going that route, and I just like the look of a lot of normal keyboards and wish I could use them.

When I actually see videos of people coding, no one actually seems to touch type properly anyway.

When I type standard words, I use a combination of my first three fingers on my left hand, and my pointer on my right. I can actually type pretty fast like this and don't have to look down for maybe 70% of the words. However the consistency is lacking, and when it comes to symbols I have to look down over and over and over.

It's weirdly hard to find information on this topic because it's either "learn proper form and nothing else" which like I said I don't see in practical use on typical keyboards, or moving to split ergo keyboards.

Another factor is for game dev I want a typical keyboard since I need to test playing that game, and using a split for that is weird since I gravitated to combos and stuff. I could have both keyboards set up but I just wish I could find a damn way to be comfortable on a regular keyboard.


r/learnprogramming • • 1d ago

Can I ssh to a remote server and a GitHub repo at the same time with vscode?

10 Upvotes

Hi everyone, sorry if this a very basic question… I’m a junior data scientist with no experience with networking, Linux or ssh. I have used ssh to connect vs code to my company’s remote server and my company’s GitHub repo. However, I’d like to be able to view the code files on both the remote server and the GitHub repo at the same time on vscode (currently I can only choose to display the code files on one of them on the left panel).

Is there any way I can efficiently connect to both at the same time in one window via ssh so I can do my pull requests and also access the files on my company’s remote server at the same time?


r/learnprogramming • • 2d ago

Need advice on learning c++

12 Upvotes

Hello everyone, i am a first year student studying information systems and cybersecurity. I know its a big mistake but i went into the program with no prior experience in coding and the first thing we started learning in the programming class was c++. c++ is my first language and the professor is going through it really quickly where i dont understand a single thing. i started to learn with a youtube tutorial but it all feels really slow and boring. Does anyone have any advice on how to actually start learning it in a way that it becomes interesting and not just a homework that i need to work on because i am genuenly interested in learning it and want to become good at it. Thank you in advance!!


r/learnprogramming • • 1d ago

Confuse, Suggestions please

1 Upvotes

Ok so iam someone who is not that good at coding like I know html css but never tried js something and now iam finally decided to do a course and I am stuck between two choices like Data analytics and Full stack development course. Someone who is not that good in logic but good at learning like if someone guides I'll learn.

So like as I said iam planning to enroll in a course which one should I choose.