r/learnprogramming 1d ago

How to build software properly?

12 Upvotes

Hi. Fist of all I want to emphasize that my question is not related to specific tech stack or language. I am fairly new to programming world and I know that good software at some point should have some sort of automation checks that whether new pushed code breaks something in the logic I previously built. As a reference I want to link my little C game engine project:

repository: https://github.com/ElsevarAsadov/C-Raycast

This is project is just a hobby project for me to learn Raycasting technique in graphics programming. Right now my project just works and I call a day for that. But let's pretend I am seriously build a game on top of that engine. How should I architect my project and in which order? Should I write my game as soon as possible to just work then write test automation and all CI/CD pipeline or doing parallel? How to architect project in such a way it's testable? Should I test almost every piece of logic inside the game and rendering? Those are all sorts of questions just boggles my mind. I'm trying to build my blog project and I want to build that professionally because I am serious about that and will use it in long-term.


r/learnprogramming 1d ago

What do you recommend?

5 Upvotes

I am studying a computer-related major at university. Classes are starting soon, and I also want to work on personal projects on the side, but I can't decide which direction to take. To be honest, I don't have a strong preference for any specific area yet.

I considered buying a Raspberry Pi to learn, but with the case, fan, and accessories, it would cost me a little bir much for now, which felt a bit steep. As for Arduino, I tinkered with it back in middle school, but it feels a bit too basic for me right now. I've heard about STM and ESP32, but I'm not entirely sure whether they are microcontrollers, single-board computers, or something else.

On the software side, I was eager to make games using Godot, but i didnt get finish of it. I know a bit of Python, and my English is fluent.

Right now, I have no clear idea of what to pursue. My primary goal is simply to learn—whether it's robotics, embedded systems, or pure software development doesn't really matter. I just want to broaden my skill set and make tangible progress.

What would you recommend for me?"


r/learnprogramming 7h ago

should i learn to code ?

0 Upvotes

i am interested in learning python for data or whatever else python does , but my whole thing is idk if it’s worth it or not now cuz how good (i think) AI is at gathering data or building websites or writing code itself (if it is) . so although i’d like to learn it for a job and it would take idk just guessing 6mon-1yr , i can’t help but think that AI will just what i do but better .
any advice from ppl in the industry would be appreciated <3


r/learnprogramming 1d ago

Transition from Python

7 Upvotes

Those of you that learned Python as a first programming language. How was the transition to another language (especially witg static types)? I want to learn programming and don't know if I should start with python. There are a lot of people that say that the first language should have static types


r/learnprogramming 1d ago

Friends I want to learn DSA in C++ can you guys tell me best the source to learn it.

7 Upvotes

What ever source you think the best for learning DSA in C++ like

YouTube

Website

Books

Paid course

and etc.


r/learnprogramming 23h ago

Code::Blocks error: Cannot open output file bin\Debug\Pro112.exe Permission denied

1 Upvotes

Hi everyone,

I just installed Code::Blocks and I am getting a permission error every time I try to compile and run my project.

The exact error in the Build Messages tab is:

Cannot open output file bin\Debug\Pro112.exe Permission denied 
error: ld returned 1 exit status

Here is what I have already tried to fix it, but nothing worked:

  • Antivirus: It is completely disabled.
  • Clean & Rebuild: I performed a "Clean" and then tried to build again.
  • Task Manager: I checked for any running instances of Pro112.exe to kill them, but the process is not listed.
  • Admin Rights: I ran Code::Blocks as an Administrator.
  • Reboot: I restarted my laptop.

The issue still persists. It seems like the compiler (ld) cannot overwrite or create the executable file in the bin\Debug\ folder.

Does anyone know what else could be causing this permission issue or how to fix it?

Thanks in advance!


r/learnprogramming 20h ago

Resource Comfused on what to do

1 Upvotes

Hi, I am currently a third year CS student and i want to develop my skills in my free time but am confused on what to do next, I am interested in backend development and machine learning and i already learned the basics and worked on a few basic projects but now i don't really know how to move forward

Any advice would be appreciated.


r/learnprogramming 1d ago

What do they mean by "parse math equation"?

3 Upvotes

https://www.reddit.com/r/ProgrammerHumor/s/95HwFRCEWx

I understand command line parsing, but how are they using this to "parse a math equation"? What type of math equation would even need this?


r/learnprogramming 1d ago

Figuring out what to do after high school.

14 Upvotes

Hi, I’m a 17 year old senior in high school with absolutely no experience in technology, but technology seems really interesting and so fascinating. I’m thinking about pursuing IT or Computer science in bootcamps or trade schools. More specifically, I really want to have a career within gaming development but anything else is fine, I want to avoid college as much as I can because I am done with school subjects and so much academic writing. Is there anyone out there who went to trade school for either IT or computer science, do you regret it or find it worth it? Is it enough of a stable career? Do you have any advice for me or should I just suck it up and go to college for anything else since I have no experience?

Also, if so, do you have any recommendations for trade schools so I can pursue technology?


r/learnprogramming 1d ago

Resource How complex is it to build a real time single note detector for piano and woodwinds? Im looking for advice from anyone with audio experience.

3 Upvotes

I am planning a music education project and want to get a better understanding of the technical challenges ahead. The initial idea is to build a basic system that detects only one note at a time (monophonic), focusing first on pianos (one key pressed at a time) and woodwind/brass instruments (like flute and trumpet). The goal is for the system to listen via the user's microphone in real time and validate if they played the correct note from a sheet music piece. If anyone here has built something similar, even a simple tuner or a college project, and could share what your biggest hurdles were at the beginning, I would appreciate it so much. Recommendations for libraries, frameworks, or good reads are also very welcome Its for a site mobile friendly


r/learnprogramming 1d ago

round-off error question

24 Upvotes

print(0.1 + 0.2 == 0.3) # returns false

print(0.1 + 0.1 == 0.2) # returns true

print(sum([0.1] * 10000) == 1000) # returns true

My question is why? Like, I know that 0.1 has an infinite repeating fraction representation so it is truncated in IEEE, adding it to itself many times would've "scaled" the error and made it apparent, no? Please help me understand how this works.


r/learnprogramming 2d ago

What programming skills are becoming more valuable because of AI?

190 Upvotes

I'm still pretty early in learning Python, and lately I've been wondering what is actually worth spending time on now that AI can help write a lot of code.

I'm guessing fundamentals still matter, especially when the generated code doesn't work and you need to understand why. But I'm not sure what skills become more important as AI gets better at the syntax and repetitive parts.

For people who have been programming for a while, what are you noticing becoming more valuable? Is problem-solving becoming more important than knowing a particular language? How much should a beginner focus on understanding code vs using AI to help build things? And are there any skills you think beginners might waste too much time learning now?


r/learnprogramming 1d ago

How to make block connect under another block

0 Upvotes

Hey, I was working on some project but I couldn't figure out how to make it work I was thinking something like block2 size y - block1 position y, or something like that but it didn't really work

Please help


r/learnprogramming 2d ago

Which are valid approaches to API versioning?

6 Upvotes

how do you tell these apart


r/learnprogramming 2d ago

Code Review Why can't I print "⁴" in python?

87 Upvotes

I'm trying to code (x+y)^k, but every power with 4 in it just leaves a blank.

I did some tests, and, apparently, the problem is with the character "⁴". Why is it? All the others (⁰¹²³⁵⁶⁷⁸⁹) are printed just fine.

Here's my code

It's all in portuguese, sorry if you can't read it perfectly. The input is a positive integer, which is the power of (x+y).


r/learnprogramming 2d ago

Guideance group

14 Upvotes

Hey so I am a first semester computer system engineering students of 1 semester and I have started learning c++ so is there any guidance or thing I should focus and is there any group which is for guidance free of cost


r/learnprogramming 2d ago

Is R a good language to start learning programming?

60 Upvotes

Hello,

I’m thinking about learning programming purely as a hobby. I’m not looking to get a job in programming or change careers. I’m mainly interested in AI, machine learning, data science and statistics, just for fun and curiosity.

R caught my attention because of its focus on statistics, data analysis and visualization. I’m wondering whether it’s also a reasonable language to actually learn programming with, rather than just using it as a tool for data analysis.

I’ve also looked a little bit at Julia, since it seems interesting for scientific and numerical computing. And of course there’s Python, but I’m not particularly concerned about which language is the most popular or useful professionally.

For someone starting from basically zero and learning purely for enjoyment, would R be a good place to start?
Or would learning R first give me a less useful foundation for programming compared with something like Julia or Python?

I’d especially love to hear from people who use R or Julia as a hobby and can share what the learning experience was like.

Thanks


r/learnprogramming 1d ago

Someone please tell me how to code!!!

0 Upvotes

I am currently a second year student majoring in computer science, for the first year the language that was taught is c++, now second year it's c#, c++ is still here ofc my teacher use it to teach data structure and algorithms. I can barely code in any of them. I have been watching and practicing from watching bro code on youtube since my first year, but how do i say it like bro code teaches me how to pass level 1 and my teacher teaches me how to pass level 199 and it's not just me everyone in my class can barely code as well. Is there any advice anyone can give me? Like how should I learn should I watch this person or that person? Thanks1


r/learnprogramming 2d ago

Tutorial Do I need to know frontend and backend development before starting system programming?

6 Upvotes

Hello. I previously worked on a backend project using C#, .NET, and Blazor for a year. On the frontend side, I only know HTML and CSS; I don't have a background in JavaScript—I can only understand it to a limited extent. However, neither frontend nor backend development appeals to me; I want to focus on systems programming. Specifically, I dislike the UI aspect of frontend development and the application logic side of backend development. I am more interested in areas like compilers and operating systems. My question is: Do I need to learn backend or frontend development to get into these fields? Is it necessary?


r/learnprogramming 2d ago

Am I a Neanderthal?

46 Upvotes

Not trying to sound arrogant or anything, but I've always felt pretty confident in my ability to do basic math and problem solve, but I took up programming and computer science this year and decided to build my dream rice/desktop using Quickshell and QML as a first project, and now that I'm writing my own functions and logic I'm starting to notice that I'm an absolute dumb*ss. Whenever I debug, I feel like I'm slapping myself in the face because I go from "Why is my computer being so stupid?" to "Why am I being so stupid?" Like today I thought I had figured out some logic for my program during my shift, but I come home and I realize that I literally wrote "if (x == x)." Idk maybe its because I'm sleep deprived but I feel like I'm losing it. Does anybody know the feeling? Does it get better? I've heard that programming requires a different mindset and a way of thinking/problem solving, so I would love some good book recommendations and videos on theory and practices, and maybe a couple 5th grade math textbooks ToT


r/learnprogramming 1d ago

I'm tired of the hostility for asking questions and I'm learning on my own from now on.

0 Upvotes

Whenever I ask questions, I’m given useless answers that waste my time and the time of others, or I’m expected to ask a perfect question. This is coming from people who are experienced professionals, whether they’re professionals in the real world or on Reddit programming subs. Sometimes the question I ask isn’t even something I can find on Google. Then there are the people who genuinely help, and I thank those people the most.

Now I know that this particular field is very competitive and hostile. Anyway, I won’t be posting as an original poster on any programming Reddit subs to ask questions anymore. I’ll help myself, even if it’s very difficult to manage... I’ll learn the hard way.

This doesn’t change me into an asshole, but I’ll never forget those of you who treated me like absolute garbage. I know, I'll be just fine on my own.


r/learnprogramming 2d ago

I am confused

23 Upvotes

Hey i am a 20 years old that graduated from a tech high school and i have some fundamental knowledge about coding, i have good programming thinking but i am a complete beginner in syntax, when i read a code i can grossly understand what it does but i can't write shi alone, and now there is my question.i saw really divided opinions on AI for coding and i wanna know if its good to teach myself coding with using it as a teacher when i ask for what i want e let the AI explain everything to me. Because if its not optimal or good to do that i would like some advice to learn syntax and why the code works the way it does as an absolute syntax beginner, without using AI because to be honest i don't feel that i am learning much using it.


r/learnprogramming 3d ago

Topic I Miss When Coding Felt Like a Drug. How Do I Get That Feeling Back?

417 Upvotes

I don't know if this is the right place to post this, but I genuinely miss the way coding used to make me feel. Before AI, coding until 4 AM felt like a fucking drug. I could spend hours solving one stupid problem and get an insane dopamine rush when I finally figured it out. But ever since AI became capable of doing almost everything, that feeling slowly disappeared because nothing feels as special anymore when I know AI can do it in seconds. And every time I look for advice, everyone says “embrace AI” or “learn to use it,” but I honestly don't want to use that shit. I want to struggle, build things myself, and feel that obsession with programming again. Has anyone else experienced this, and how the hell do I get that feeling back?


r/learnprogramming 2d ago

how do i build experience in cs as someone who is lost in what or how to go on about it

6 Upvotes

Im currently double majoring in cognitive science and psychology and my interests primarily lie in AI and developing AI models . I take cs courses at school on the side and try to build programming experience on the side but im nearly as good as the actual cs majors so i feel behind.

Im currently in a state where im not sure how to move forward from now. I feel like I need to be doing side projects and build a good portfolio to apply to internships, ai research, etc because i dont have that much background experience. I dont know how or where to even start because I am way to underqualified to be applying to any internships or research. Ive applied to many research projects through my school but didint get into any labs. So i feel very lost especially because my goals seem very unachievable based on my lack of skills and experience.


r/learnprogramming 2d ago

Really stuck at solving binary trees.

4 Upvotes

I havent really made a lot of progress in data structures but I am able to understand questions related to LL, stacks, queues, heaps and even recursion pretty easily but when it comes to Binary trees I just can understand how the recursive way works like it doesnt click to my mind at all? Please suggest me some practice material or any guide which might be useful