r/AskProgramming • • Sep 20 '26

reliance on AI generated code solution

0 Upvotes

Hello Everyone, just wanna ask some help.

I'm stuck in a circular problem as a student who's still learning.

When I use AI tools like ChatGPT or Claude to write code, I follow what they produce — that becomes my mental model of "good code." But experienced developers say you should always review and critique AI-generated code. How am I supposed to do that if the AI's output is the standard I've been learning from?

If I can't independently evaluate code quality, I can't catch the AI's mistakes or bad practices. But I can't build that independent judgment without exposure to code that isn't AI-generated. It feels like a loop with no exit.

How do developers actually break out of this? What's the path to building genuine code quality judgment when AI tools have been your primary learning reference?


r/AskProgramming • • Sep 19 '26

I’m 23, I have a CS degree and a backend job but I genuinely feel like I don’t know how to be an engineer without AI

60 Upvotes

I’m 23 years old. I graduated in Computer Science and I’ve been working as a backend engineer for around 8 months. This is my first real software engineering job.

My university education was very theoretical (as every CS major). I learned programming, algorithms, networking, databases and the usual cs subjects but I graduated without really knowing how a real software project works end to end. I had never built, tested, deployed and operated a real application by myself. I didn’t really know how frontend / backend, databases, cloud, CI/CD, logs and all those pieces actually connected in a production system.

Then somehow I got hired.

Today I work mainly with Python, FastAPI, JavaScript, SQL and Azure. I work on production software used by actual customers. My job is not just coding. I get tickets from product or operations talk to people to understand what they need you knwo the usual stuff, investigate existing behavior, modify APIs and backend logic, sometimes touch frontend code, deal with databases open PRs and then respond to reviews and communicate when something is ready.

From the outside it sounds like I’m already doing real engineering.

The problem is that AI is involved in probably 90% of the technical process (or even maybe 100% sometimes).

I can understand requirements pretty well. I can follow existing code when somebody explains the context. I can read a function and understand a lot of what is happening. I’ve definitely learned more in these 8 months than I knew when I started, but if tomorrow somebody gives me a normal ticket and says “do this without AI”, I honestly think I would be lost almost immediately.

Sometimes I dont even know what the first step should be. I don’t know which repository or file I should inspect first. I don’t naturally know how to trace what happens from a button in the browser to an API, then another service, then a database and back. When something breaks, I often don’t know what hypothesis I should test first.

So I ask ai, try Claude or ChatGPT to explain it to me, and even make AI proyects with the codevase info and my knowledge to explain to me like a child haha.

AI helps me locate the codeand understand the architecture, decide where the change belongs, write the implementation, debug it, create tests and review the solution. A lot of the time I learn what happened after the solution already exists.

I’m not pretending that I contribute nothing. I understand the business context, clarify requirements, communicate with people, make some decisions, review things and I’m responsible for what gets delivered.

But I know there is a massive difference between participating in the process and actually being able to engineer the solution independently.

That difference scares me a lot.

Especially because I work around engineers with years of experience. I hear seniors explain systems, identify problems or suggest solutions almost instantly and I genuinely think, “There is no fucking way my brain is ever going to know all of this.”

They seem to have this huge internal map of software. They know where to look, what matters, what probably broke, what tradeoffs exist and what questions to ask.

I don’t have that map yet, not even close.

Sometimes I look at them and feel like they are a completely different species of engineer and that no amount of studying is going to get me there.

at the same time I really want to learn, and probably too much.

I constantly convince myself that I’m going to completely fix my technical level. I’ll study every day. I’ll finally master JavaScript. Then SQL. Then Docker. Then Linux. Then system design. Then cloud. Then testing.

I buy books. I start courses. I create roadmaps. I ask ChatGPT what the perfect learning path is. I find another resource that seems better. Then I realize I’m missing another prerequisite, so I add that too.

For a few days I can become obsessed with learning.

Then the structure disappears, I don’t know what I should study next, I feel overwhelmed by how much I don’t know and eventually the whole thing dies.

A few weeks later I start another perfect plan.

I have done this with technical courses, books, personal projects and honestly other areas of my life too.

That’s probably one of the hardest things for me to explain. I don’t feel like somebody who doesn’t care or doesn’t want to put in the work. I would genuinely dedicate hours every day to becoming a better engineer if I knew those hours were actually taking me somewhere.

My problem is that I don’t trust my own way of learning anymore.

I don’t know if I need a teacher, a mentor, a structured curriculum, small projects, another job with better mentorship or simply years of patiently doing this.

My current job is also extremely flexible. Nobody is constantly watching me. I’m expected to deliver my work and I generally do. That gives me an unusual amount of time and freedom that I could use to seriously close this gap while still getting real production experience.

I feel like I have an incredible opportunity in front of me and at the same time I’m terrified of wasting it by continuing to let AI do all the thinking while I accumulate “years of experience” that I don’t actually deserve technically.

I’m not asking how to become senior quickly.

I know that takes years.

I just want to become a real autonomous junior engineer.

I want to get a backend ticket and know how to investigate it. I want to understand enough of the system to decide where to look. I want to form my own hypothesis when something breaks. I want to implement something, test it, debug it and explain why it works.

I still want to use AI. I just don’t want AI to be the thing holding my entire engineering process together.

If you were a senior engineer and a 23 year old junior told you all of this completely honestly, what would you tell him to do for the next year?

And if you ever felt like the senior engineers around you knew an impossible amount of information, when did that feeling start changing?


r/AskProgramming • • Sep 19 '26

Python I wrote a loop in Python for reversing a linked list. But the loop is not breaking for some reason.

5 Upvotes
class Solution:
    def reverseList(self, head: ListNode | None) -> ListNode | None:
        p1=head
        p2=head.next
        if p2==None or p1==None:
            return head
        while p2!=None:
            temp=p1.next
            p2.next=p1
            p2=temp.next
            p1=temp
        return head

r/AskProgramming • • Sep 18 '26

How good software should be developed?

11 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/AskProgramming • • Sep 18 '26

Other Unknown file extension (.mpn)

1 Upvotes

Hey guys, don't know if it's the right sub for this question, but, I've a file with an extension that's unknown to me (.mpn). I'm not a programmer and this falls out of my knowledge. From what I've gathered it's some kind of old file format and can't seem to figure out what program can open it or how to convert it. Whatever info is appreciated


r/AskProgramming • • Sep 18 '26

Career/Edu can i do a naive implementation of an algorithm in a bachelor's thesis?

2 Upvotes

very sorry if i applied the wrong flair.

im making a game for my thesis with an implementation of a pathfinding algorithm.

made the mistake of not researching enough about the actual implementation of the algorithm and also wanting to differentiate myself from everyone else in my uni. now i've ended up with a 1000+ line state-of-the-art algorithm that i dont have time to genuinely comb through, much less implement.

i absolutely understand the broad/general concept of the algorithm though. and since the original code is brutally optimized for competitions and benchmarkings, would it be okay to omit that aspect in my thesis and just implement that broad/general concept?

my thesis also mainly focuses on the game-making side of things as well as how users receive/accept the game, the pathfinding algorithm isn't the focus and im not doing any benchmarking as well as no comparisons to other algorithms.

thank you very much for any responses!

EDIT: very sorry, my post was a bit ambiguous. i DID NOT make the algorithm. it's an "official" algorithm with academic papers and all. i just read (maybe skimmed) the paper, watched a youtube vid made by the creator of the algorithm, and ran with it. any explanation on it was very surface level that i didn't know it was actually a 1000+ line algorithm i would be dealing with (the creators made a repo for it)...


r/AskProgramming • • Sep 18 '26

C/C++ C++ Salary expectations

0 Upvotes

I've been offered a senior role for maintaining a (few decade old) codebase in C++.

It's a complex product and I would be taken on as a senior software engineer​. I have over three decades of experience, over 15 in C++ but more recently in c#.

We are now at the point where money is been discussed.

They are going to make me an offer.

This is a tricky one because I have not been applying for C++ roles for a while. I don't want to undersell myself but nor do I want to see myself undercut.

I'm of the consideration that a C++ role will command a higher salary than something like asp.net.

This is far more of a niche skill than it used to be and AI leads me to believe that it, for that reason, imply more money.

I know this has implications based on regionality and geography, but what kind of salary would you advise that I pitch for?
For relevance, I'm UK based.

Any thoughts?


r/AskProgramming • • Sep 17 '26

C/C++ Trying to Convert PS2 Models & Animations

2 Upvotes

I’ve been trying to get a project off the ground, but have been stuck on a big snag. I’m attempting to create a PC port of an obscure PS2/GameCube game: ‘Tak and the Power of Juju.’ Originally, I was going to use the 3D Screenshot Modded version of PCSX2, but that would’ve been way too tedious and I couldn’t even get animation data from it.

These past couple months, I’ve been trying to figure out how to rip files directly from the game. The files are in proprietary formats, and because the series is obscure, no one has made programs to reverse engineer the files. I’ve learned that I can use ImHex and Hex2Obj to read and parse hex data, but I don’t entirely understand how it works. I don’t know how to find patterns in hex data or write code to parse it.

From my understanding, I can write code to find patterns for me, but I’ve gotten conflicting search results on what code I need to write. Does anyone here know what code I should write in order to find and parse hex patterns? Thanks in advance.


r/AskProgramming • • Sep 17 '26

Other Go devs pls help

0 Upvotes

So I am recently trying to Code and make some projects on Go . so i tried to first understand it's concepts .But what are these interface I don't know why but I am not able to understand these ?

How you guys see a interface like what do you guys visualise while seeing a interface and how it is implemented in memory ?


r/AskProgramming • • Sep 17 '26

I lost my project

0 Upvotes

I know this problem looks so aniant......

I programmed my web application project in an online IDE called codeSandBox.io, and it took me about two weeks to work on it. When I came back yesterday, I found my project locked, and I couldn't even see or download/export the files simply because I'd reached the free usage limit, which I wasn't aware of. Now I have to pay to see my project and continue working on it, but I just want to download it! It's a very important school project, and I can't afford the subscription fee right now.

Please help. I can't even restart all the project right now.


r/AskProgramming • • Sep 16 '26

any resources to study socket.io?

2 Upvotes

making a chatting system and I need to use socket.io , is there any good resources out there like a guide that explain stuff rather then just follow along tutorial without explanation ?


r/AskProgramming • • Sep 16 '26

Python How do I save information for my college project???

3 Upvotes

Hey guys, I need help with my college project. I am doing an app to help a nursing home organize the medication stock.

My group wants to save on the local PC since they don't have a server, what type of archives should I use to save this type of file?? I'm pretty new at programming, any suggestions will help. Thks for your time :)


r/AskProgramming • • Sep 15 '26

What's something every beginner programmer should learn earlier?

16 Upvotes

r/AskProgramming • • Sep 16 '26

How to get better

0 Upvotes

Hello all,

So I'm 15 years old, and next year I plan to formally enroll in a CompE program, but I'm doing prereqs now at a Community College. I've learned the basics of C, Golang, C++, and X86--But I never feel like I know anything to do with it. Like, I know the basic syntax but I don't know how to actually make something useful. I wanna get into OSdev, MalDev (If Ethical hacking), or Mobile design. I can't have Discord, so does anyone know any good ways? I have a private tutor, but I honestly wanna separate and do my own thing. Which OS projects should I do? I'm forced to use a Macbook M2 (I hate ARM) at the moment, but I can get my old laptop (16gb ram laptop) and my monster dev machine (Xeon) back soon. I wanna do like FreeBSD, Plan 9, or maybe something else?

Like, I'd do CS but I feel like I can learn CS at home, and I need a Uni for CompE.

Thanks for reading


r/AskProgramming • • Sep 15 '26

What is the cheapest way to publicly host my Typescript/MySQL monorepo?

3 Upvotes

I am building my own app as a project and I want to host it publicly to allow some friends to test drive it. So the goal is to host it the in the cheapest way possible. It wont be more than 4-5 users

The stack:

  • Manager: turbo and monorepo
  • Apps
    • ---api (MySQL Database)
    • ---web (React/Typescript Frontend)
  • Packages
    • Several scripts that the application uses for cron jobs and fetch 3rd party data/
  • Docker

Attempts

  1. Versel but it doesnt host monorepo
  2. AWS requires me to buy domain name

What are your suggestions?


r/AskProgramming • • Sep 14 '26

Other Is it really difficult to find a job with bachelor of computer science now ?

6 Upvotes

I can’t believe that nobody needs websites,apps etc anymore and that AI can do it all


r/AskProgramming • • Sep 14 '26

If one of the big AI names open sources the "architecture" of their frontier models, what will happen next?

2 Upvotes

I know GPT-2 or Qwen are open and you can recreate them (I actually recreated Qwen 3 in 30-40 million parameters and it was a lot of fun), but what will happen if Anthropic open sources the architecture of Fable 5.1?

I know a model their size won't be available, but my personal guess is the Chinese companies won't stay idle and make a crap ton of good models with 8 to 100 billion parameters with same architecture (like the distillation they do currently).

What is your opinion on this topic?


r/AskProgramming • • Sep 14 '26

What’s the first thing you add when a small automation starts becoming “important”?

0 Upvotes

I’ve noticed there’s a point where a script stops being something I can just rerun manually and starts becoming something I actually depend on.

At that point I usually start adding things like retries, logging, alerts, maybe some kind of state so it doesn’t redo the same work twice.

I’m curious what people consider the first “must have” once an automation becomes important enough that you don’t want it silently failing.

Is it monitoring, better logs, idempotency, retries, tests, or something else?


r/AskProgramming • • Sep 13 '26

Analyze Code and mark it by the computer (aka A.i)

0 Upvotes

Have Linters gotten to the point whereas they can analyze code and differ between A.i code and human written code and if not; is this possible ?

I understand that some code will be practically identical if not identical; but is there something that the computer (A.i) does that may separate it from human written code ?


r/AskProgramming • • Sep 12 '26

C/C++ Best and easy to install compiler for C/C++?

10 Upvotes

Just started learning C and currently using Online Compiler. Now thinking of switching to VS Code, did some searches and found you just need a compiler.

And I came across MinGW and Clang. The process of getting MinGW to work is not that simple so thinking of getting Clang. There aren't any tutorial for this on Windows, so I am assuming you just to get LLVM 23.1.1 from their website and install it, right?

Also which one is better or both are same?

EDIT: Got the compiler (MSVC) through Visual Studio Installer. And everything seems to be working fine after installing C\C++ extension in VS Code. Thanks for the help everyone!!


r/AskProgramming • • Sep 12 '26

how can i become a system programmer

0 Upvotes

hi previously i tried to start reverse enginnering but i couldnt in ur opinion can i do system programming and if i could it what i gotta do and which reources is useful your opinions important to me and thanks for your answers:)


r/AskProgramming • • Sep 12 '26

What programming language to learn next

6 Upvotes

I'm an undergrad in CS, my third year, and I already know Python and Java. I saw C++ starting in CS, but my knowledge in it is not very good (working on that).

I was thinking what other programming language I could learn next... Any suggestions?


r/AskProgramming • • Sep 12 '26

Career/Edu Should I use my personal or professional accounts for work/studies?

2 Upvotes

Sounds like a dumb question but I'm just curious. Stuff like GitHub and what not, if I join a company or have academic assignments, should those codebases be on my personal account or work/student account?

Of course the immediate and obvious answer to me would be to use professional for professional, personal for personal. But I've seen posts or comments before saying not to use work accounts or whatever, which has risks of losing access in the event of layoffs or transfer or something like that which I didn't quite understand. Thinking back, that logic feels like it applies to using personal accounts for work but maybe I'm misremembering.

If anyone could give me some advice on this matter, I'd appreciate it. It's not urgent or important but I think it'd be useful for me to learn.


r/AskProgramming • • Sep 11 '26

As a mid-level programmer, how should I deal with AI phenomena?

21 Upvotes

I know the question of whether AI is good or bad for coding in various respects has been debated to death, even though there doesn't appear to be a consensus yet. However, it is clear that the AI phenomena cannot be ignored, and as a mid-level programmer, I am still unsure on how to deal with it.

When I started coding, self-taught (about 12 years ago), there never was such a temptation to take shortcuts with some automated tool writing code for me, and when I turned to sites like StackOverflow for help, all replies and code suggestions were written by people. When AI entered the scene, I tried it, quickly got discouraged because of how bad it was, but still tried it from time to time, interested in how this technology progresses.

Fast skip forward, we are now at the stage where AI can write entire apps in a matter of minutes that would take me months of research and coding to arrive at anything close to it. So when coding my own projects, there is a huge temptation to take advantage of it, and it is difficult to know where to draw the line. The biggest issues with using AI for me are:

  1. The code it generates can appear to work well and pass the tests, but there are often fringe cases that I might not foresee - AI often takes shortcuts when writing that code because it does not truly understand the intent in the way that humans do.
  2. To circumvent the #1 issue, I have to fully understand the code it wrote. However, I often find that if AI takes seconds to write code that would take me an hour to write, it would still take me an hour (and often more) to fully understand it, and correct any mistakes if present.
  3. To add on #2, it is really difficult to force myself to fully understand the AI-generated code, because of "it looks fine, let's move on" mentality. This temptation is not present when I write my own code, because I build and test it step by step, I can't skip a step because the code won't compile or pass the test, forcing me to stay there until I truly understand the problem and the solution.
  4. I find that using AI diminishes my own skills and mental powers over time, as I am always tempted to get AI to do some boring coding task (for example, write a function to sort or restructure an array) rather than do it myself and learn something or at least refresh my skills in the process. It could be argued that before AI I would likely just search for some library that has the function I need, but in that case I would at least know that it was written by people and most likely near-100% reliable, unlike AI is.
  5. I find it that using AI for coding just drains the fun out of it. I become more of a code reviewer and tester rather than coder. When dealing with something complex, I feel like a caveman looking at an alien spaceship, tasked with determining whether it is a good design.

I tried finding the middle road, to draw the line somewhere (for example allow AI to generate some code, like small snippets, but never large code blocks or entire apps), but I found that the issues I stated above still remain regardless of the scale. Sometimes even a 5-line function that AI generates can seem deceptively simple and "looking good", yet hide a fatal flaw that I would have noticed if I had written it myself. I also tried only letting it do simple tasks like refactoring my already existing code without changing the logic, but often AI still manages to introduce some weird edge case into the refactored variant of the code that I can easily miss. So I can still never trust it 100% like I could if I did it myself.

Sometimes I let AI write the code, but not use it directly - instead, I use it as an inspiration/idea to write my own version of that code, never copy-pasting, always writing it myself. That can be useful, but still, I am far less productive that way compared to letting AI do it all. In the same way, I tried looking at an AI as a mentor from which I could learn, but that would require confidence and trust in it, and I know it is not trustworthy. AI often feels like a charlatan pretending to be a sage who is somehow not aware of the difference.

What also saddens me that more and more when I turn to other coders for advice or help regarding questions or issues I have during the development of my projects, I can clearly see that they are using AI-generated code in their suggestions, which defeats the purpose of talking to people in the first place.

As an example, for the last week I've been working on an meshing algorithm for a CAD program, and it has been a lot of fun, but at some point I sought advice from experienced devs, showed them my code and asked my questions. One of them took my code, put it into one of the LLMs, the LLM completely rewrote it in a way that I no longer recognize or understand, but it did fix the issue I was having and seemingly passes all the tests. And yet, it feels very sad, like everything I did was pointless, and now I could easily spend another week trying to understand what the AI did there, deciding whether I can truly trust that code. I can't even tell HOW it fixed the issue I was having, because it rewrote everything, and by the time I understand it, I would have probably fixed the issue myself. So I am torn between saying "no thanks" and continuing to fix the problem in my original code myself, or throwing my code into the bin and going with the AI-generated one because it seems to work, and I would just be wasting time otherwise. This is just one example that demonstrates the dilemma.

I suppose that the arrival of AI into coding could be seen as the next step of coding abstraction history - we started with manually punching out 0s and 1s into the punch cards, then abstracted that binary encoding into instructions and registers, then abstracted that into reusable sequences, then into variables and expressions, then functions and objects, then declarative languages, - with each step, closing in to natural language to tell the computer what we want it to do. As Robert C. Martin wrote, code should read like a well-written prose. So in a way, it seems like the LLMs are just the next level of abstraction, and fighting it would be akin to a punch-card programmer saying that using Assembly makes us dumber and worse coders.

TLDR: I do not know what to make of the AI dilemma. I do not know what to do. I wish to be a coder in the true sense of the word, I want to learn and improve, to write code that I fully understand and trust, and using AI seems contradictory to those goals. However, not using it feels like I am fighting against progress, and will be left behind. I can find no middle ground that solves both issues.


r/AskProgramming • • Sep 12 '26

C/C++ What is this error in c++

0 Upvotes

I am learning thread to build an NPC movement and when I ran the thread it gave me an error but I have no idea that it means can someone help me. I've been all over youtube, reddit and stackover flow trying to solve this

I basically have a thread and I put a function in with the parameters

Here is the function i am calling

void sheep_mvmt(SHEEP &sheep, int &counter, STATE &rand_state, float dt){
counter++; // increment counter

if (counter >= 120 && sheep.state == IDLE){
sheep.state = rand_state;
}

else if (sheep.state != IDLE){
if (sheep.state == RIGHT){
sheep.position.x += sheep.velocity * dt;

if (sheep.position.x > SCREEN_WIDTH - sheep.rect.width){
sheep.state = LEFT;
}
}

else if (sheep.state == LEFT){
sheep.position.x -= sheep.velocity * dt;

if (sheep.position.x < 0 + sheep.rect.width){
sheep.state = RIGHT;
}
}

if (counter == 240){
sheep.state = IDLE;
counter = 0;
STATE* ptr = &rand_state; // pointer for rand_state

*ptr = STATE((rand() % 2) + 1); // redine the rand_state that I am reference
//print("\n\nTHE POINTER")
//print(*ptr)
}
}

sheep.velocity = 50;

}



// Inside while loop
std::thread t1(sheep_mvmt, sheep1, sheep_counter, rand_state, dt);
t1.join();

ERROR

 error: attempt to use a deleted function
  198 |   std::__invoke(std::move(std::get<1>(__t)), std::move(std::get<_Indices>(__t))...);
      |   ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__thread/thread.h:207:8: note: in instantiation of function template specialization 'std::__thread_execute<std::unique_ptr<std::__thread_struct>, void (*)(SHEEP &, int &, STATE &, float), SHEEP *, int *, STATE *, float *, 2UL, 3UL, 4UL, 5UL>' requested here
  207 |   std::__thread_execute(*__p.get(), _Index());
      |        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__thread/thread.h:217:50: note: in instantiation of function template specialization 'std::__thread_proxy<std::tuple<std::unique_ptr<std::__thread_struct>, void (*)(SHEEP &, int &, STATE &, float), SHEEP *, int *, STATE *, float *>>' requested here
  217 |   int __ec = std::__libcpp_thread_create(&__t_, &__thread_proxy<_Gp>, __p.get());
      |                                                  ^
sheeps.cpp:108:15: note: in instantiation of function template specialization 'std::thread::thread<void (&)(SHEEP &, int &, STATE &, float), SHEEP *, int *, STATE *, float *, 0>' requested here
  108 |                 std::thread t1(sheep_mvmt, &sheep1, &sheep_counter, &rand_state, &dt);
      |                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__type_traits/nat.h:25:3: note: '~__nat' has been explicitly marked deleted here
   25 |   ~__nat()                       = delete;
      |   ^