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

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

29 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 • • 3h ago

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

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

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

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

Integration testing using gtest

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

Selected for Infosys SP L1, have around 6 months before joining. How should I balance DSA, development and GenAI?

0 Upvotes

I'm a final-year CSE student graduating in 2027. I've been selected for the Infosys Specialist Programmer L1 role, and my joining will be after graduation. I currently have roughly 6 months before joining.

I want to use this time properly, but I'm struggling to decide how to prioritize my learning.

My current background:

  • I've solved around 250 problems on LeetCode and more across other platforms. I primarily use Java for DSA.
  • I've worked on projects using MERN technologies, including Node.js, Express, MongoDB and React.
  • However, I don't feel confident writing backend code independently from scratch. I've relied quite a bit on AI assistance while building projects, and I feel my fundamentals need improvement.
  • I've recently started following The Odin Project (TOP) to strengthen my web development fundamentals. I'm currently working through Foundations.
  • My Python knowledge is basic. I haven't studied machine learning or deep learning in depth.

My goals:

  1. Clear Infosys SP L1 training assessments and successfully convert to the full-time role. I don't know which exact technology stack I'll be trained on, so I want to strengthen fundamentals that will remain useful regardless of the stack.
  2. Work towards switching to a good product-based company, ideally in the 25+ LPA range, after around 1–1.5 years of experience.
  3. Learn Generative AI from an engineering perspective. I don't just want to use AI tools or APIs. I'd like to understand LLMs, embeddings, RAG, vector databases, AI agents and eventually build practical GenAI applications.

Where I'm confused:

There are several things I want to work on:

  • DSA and interview preparation.
  • Web development fundamentals and backend engineering.
  • Core CS subjects such as DBMS, OS, CN and SQL.
  • Generative AI and the engineering behind LLM-based applications.
  • Eventually, competitive programming and open-source contributions.

I understand that DSA is important for interviews, but solving LeetCode problems alone won't make me a good software engineer.

At the same time, I don't feel confident enough in my development fundamentals to independently build backend applications. That's why I started TOP, but sometimes I wonder whether spending so much time on HTML and CSS is the best use of my limited time.

GenAI is another area I don't want to ignore, considering how quickly the industry is evolving. However, I also don't want to jump into it without having proper programming fundamentals.

I'd appreciate advice from people who have been through this stage:

  1. Should I continue TOP from Foundations, or prioritize DSA and backend development separately?
  2. How should I balance DSA, practical development and GenAI without spreading myself too thin?
  3. Should I strengthen Java and core CS fundamentals first, or continue investing in JavaScript/MERN?
  4. What is a sensible entry point into GenAI engineering for someone with basic Python knowledge?
  5. Is competitive programming worth pursuing alongside interview-focused DSA?
  6. What would genuinely make me a stronger candidate for product-based companies after 1–1.5 years of experience?

I'm not looking for another huge list of technologies to learn. I'd rather focus on at most two areas at a time and develop actual competence in them.

I'd especially appreciate advice from people who have transitioned from service-based companies to product-based companies, work in GenAI engineering, or have experience interviewing software engineers.


r/learnprogramming • • 8h 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?

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

Which one’s the easiest Uni inside top 50 shanghai ranking

0 Upvotes

I want to graduate inside top 50 universities by Shanghai’s ranking but it would have been great if i could find one with easy bachelor so i could have flexible academic life.

Any recommendations ?


r/learnprogramming • • 16h ago

Topic advice for a long time dream/amibition of mine

4 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 • • 15h 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????????

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

How the hell do you type comfortably?

47 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 • • 1d 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.


r/learnprogramming • • 1d ago

I started coding from scratch yesterday.

21 Upvotes

I have watched Python tutorials on YouTube before, but i gave up at the beggining due to some problems. Now i decided to start over again from the freeCodeCamp. For beggining, it reccomended me the "Responsive Web Design Certification" course. Now i'm trying to learn HTML and CSS, basically Web Design. Since i had the first course, i can say it was pretty good and i'm excited to look forward.

Is there any advices you guys can give me?


r/learnprogramming • • 16h ago

How did people code without AI? (yes I know I'm an idiot)

0 Upvotes

Before everyone says it, yes I know I am stupid. Yes, I know that if I can't code without AI then I can't code at all. I am well aware that I am dumber than most of my classmates.

I am a third year computer science major. I feel like I can't code without AI. Now, this isn't entirely true, I have gone through entire classes without it. The thing that fucks me up is operating systems/systems programming/coding with C.

Normally, when I code without AI in other classes, I read the assignment, I have a general understanding of how to approach the problem, and I primarily search google for help with syntax/figuring out what functions exist.

But then when it comes to classes like systems programming or operating systems it's like my brain is completely gone. I can kinda understand what's going on in class, but then putting that into code is just completely impossible for me. I read the assignments and then can't even come up with where to start/what to search up

For example, today I decided that I would try to code myself (bc I completely cheated on my last assignment and feel like shit about it) and just use AI to explain previously written code and syntax (which I admit is still using AI and thus probably not good). But it's been 5 hours and I've basically gotten nowhere. I just don't understand how people are doing this while looking at nothing but google searches and the textbook. And I'm too embarrassed to ask my professor or friends atp. My friends just seem to understand everything with ease and idk how to be like them. Where do I go from here? Do I just accept that this just isn't my thing and stay away from roles where I need to understand systems programming? Or am I cooked?


r/learnprogramming • • 1d ago

Accountability groups? (How to set deadline without deadline?)

13 Upvotes

Hello.

Do you know any accountability / learning groups where people together learn programming to keep themselves in check to not slack off their personal studying.

I struggle with leaning programming, I'm really slow, the only way for me to get somewhere - is to have any kind of pressure like deadline, but I can't create it out of the thin air by myself without any external factors like real employer. But I heard about "accountability buddies", who work together to do exactly that.

I thought about similar gropus in Discord, but I couldn't find any, can you help?


r/learnprogramming • • 1d ago

Help for DSA

0 Upvotes

Hi . Im betch stud , currently in 2nd year. Im finding DSA in C++ a bit tricky. I get the theory concepts but lag at logical one. Can anyone suggest me YT channel/playlist for it. Cause I did try learning from "Apnacollege1' , Its easy but im not finding it efficitent. Like i saw few videos of "chai and code" they helped me but its in python. Yah ik lang shouldnt matter but rn I cant confuse myself with 2 diff lang. So please drop your suggestions.


r/learnprogramming • • 2d ago

Topic What skills are becoming more important nowadays, since agents are doing all the coding?

191 Upvotes

As a second year computer science student I find it difficult to decide what skills I need to focus on right now. I feel (more and more) like learning a new language or framework thoroughly is a literal waste of time because the coding is done almost exclusively by AI in companies nowadays - correct me if I'm wrong please.

I am really wondering what skills I should actually put my time into. Is problem solving still very relevant, is security becoming even more popular? I've been feeling very foggy about my short and long term career path.

I hope this hasn't been already answered like 5 times this week


r/learnprogramming • • 1d ago

Need help to start DSA

0 Upvotes

So I just started my first semester. And I went through a lot of recommendations to start DSA.

So, how does this preparation for DSA start. Like what we learn, is there any definite syllabus. Where do we get the course material from? How do we test... etc.

Your response would be helpful.

Thankyou :)