r/AskProgramming • u/Deep-Today5715 • Sep 11 '26
As a mid-level programmer, how should I deal with AI phenomena?
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:
- 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.
- 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.
- 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.
- 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.
- 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.
12
u/New-Repair8325 Sep 11 '26
Yeah that’s about how i feel.
My entire week has been reviewing ai slop from the juniors that couldn’t even be bothered to test their work or write replication steps. So over it.
11
u/canarydev Sep 11 '26
i think just new skills dude. you need to learn how to define correctness and specs.
i dont mind colleagues or people using AI to code. I just have a huge problem when they let AI come up with creating the tests based on what the AI wrote. green tests mean fuck all these days. they just tell you that the implementation and test AI wrote is in agreement. has nothing to do with correctness and its worthless
3
u/mredding Sep 11 '26
I am thoroughly impressed by the speed and volume of code that can be generated. I am thoroughly unimpressed by the code quality and volume of the code that is generated.
I find AI can be a partner to discuss and gather ideas into structure, to prototype, and to debug. The first really helps reduce that research and design burden, because you can iterate with an AI quickly, and it's easy to catch inconsistencies. I'll happily allow AI to prototype ideas and build demonstrators, but I find the code quality so poor I'd never roll it into production. Instead, I can go back to the first part and explore better solutions.
I had an AI generate several hundred lines of code to implement HTTP basic authentication. With
libcurl. It worked as a prototype, but then I asked the AI if it could do that in the fewest lines oflibcurlpossible; this hit the limits of what the AI could do, and I had to drive this home myself, but man - the AI definitely closed a lot of the gap.I think there are two different types of senior engineers; those who can code, and those who can't. I don't consider this a virtue or detriment, respectively.
I've got a guy here - while his poor code quality leads to a lot more work over time - he's hitting all the metrics management is measuring. He's productive. He's getting shit out the door. He's making the right kind of compromises to do that, compromises I can't make. He's excellent at process, and AI generated code is better than his own, so his productivity is way up, his incident reports are down, and he looks like a rock star to management. And just because he sucks at writing code doesn't mean he doesn't understand it. He has enough knowledge to know how to reign the AI in.
Because he's process-centric, his productivity is way up. Whereas I on the other hand, I'm actually on the next-gen product, because we have a lot of legacy to un-fuck that these other guys can't do. I can add novelty and sophistication. I can make code encapsulated, modular, composable, and maintainable. I can get compile times and code size down. There's grace and beauty to all that. Elegance. But the client never sees that. And the metrics don't measure for that. And the reckless AI guys, at least, will eventually grind that down.
I can't compromise. I can't write code like these other guys can. It's unacceptable to me. Impossible, even. This puts me at risk of flushing out of one employer, but it also grants me access to employment where those other guys could never get hired. So AI may create new and novel partitions or strata across the industry. But the outstanding question is how much demand is there for code quality? On the one hand, it's kind of niche and hard to select for. On the other hand, there are a TON of vibe coders creating multi-million LOC shit shows that need eventual un-fucking when they grind production to an absolute halt with their garbage, so there's a new market for rescuing companies from themselves.
3
u/who_am_i_to_say_so Sep 11 '26
It can be a great learning tool. I don’t get why people say AI claims to diminish thinking ability when it is the most patient teacher around. You can interrupt it incessantly to get your head around concepts.
I recently spent an afternoon taking a crash course in explaining the diffs between Vue and React and it went down the list as I interrupted with memoization clarifications.
I guess it’s all how you use it.
As a mediocre developer myself, I am adjusting fine. I am building workflows that work how I work.
4
u/mid_coast Sep 13 '26
I hate the fucking brain rotting AI. That said, I find myself thankful to have been able to advance past junior level before it showed up on the scene. I don't see how a lot of the newer devs will ever actually catch up.
They don't understand their code and can't answer basic questions about it. We learn by repitition and with AI it seems no one has the patience to do anything once on their own let alone more than once
3
u/BoBoBearDev Sep 11 '26
Everything you said, is basically me reading PR review from another human. They only difference is, I have to beg kindly and not hurt their feelings.
3
u/Ok_Respect_7071 Sep 12 '26
The future holds that we won’t have computers we fully trust and understand. If most of code will be written by AI years from now, the computers will literally have a code even the human master doesn’t understand fully, and with that, the robot can take over. Some things are inevitable at this point
2
u/crazylikeajellyfish Sep 11 '26
You need to do more of the design work yourself, rather than leaning on the robot to come up with one. Don't ask for an application like an end user. Think about the problem, build a mental model, and then decide what design you'd like to implement & maintain.
If understanding the agent's work takes as long as writing it yourself, I think that means you delegated too much of the thinking. When you're reviewing, you should recognize the decisions you made and be able to determine where the agent drifted.
This approach also addresses some of the "it doesn't feel fun anymore". You're still designing and building a system, the process of printing your ideas out as code has just gotten much faster. We're all different, but I enjoy coding because of the system design & problem solving, not the typing. The agent will do that for you if you can't be bothered, but wouldn't you rather have a system that you understand?
2
u/cadet-pirx Sep 14 '26
You wrote a lot here, which makes it hard to give a short answer, so I'll give you my view rather than go point by point.
The way I see it the situation is simple, and I don't see a dilemma. I see a task. For me, and for you if you want it.
This is a tool. A very complex tool with a very steep learning curve. Most people treat it as a problem solver that works with zero effort. It looks like that, but it isn't. Learning to use it properly is hard work.
What you have to build is a workflow, and in my experience the hardest part of that workflow is deciding what to use the tool for and what not to use it for. Use it the wrong way and the errors multiply, along with a review workload you'll never have time to clear. Use it the right way and it helps enormously.
So what's the "correct" way? There's no shortcut: you get there by accumulating experience with the tool itself, and by bringing everything you already know as a developer to it. That's the part I think you're missing in your own post. You describe your experience as something AI is taking away from you. It's the opposite. Your judgement about what's fragile, what's an edge case, what smells wrong, is exactly what decides whether this tool helps you or buries you. Someone without that judgement can't use it safely at all.
A few things that follow, which might help you draw your lines:
Don't frame it as trust. You don't "trust" a circular saw. You learn where it kicks back and you hold it accordingly.
Your point 2 is the rule, not the problem. If verifying the output costs more than writing it yourself, that's a task you shouldn't be handing over. If verification is cheap (a well-bounded function, a test you can write first, a refactor you can read as a diff), the tool wins. And that boundary moves as you get better at using it.
The meshing algorithm: An unrequested rewrite you can't read isn't help, it's a dependency on something nobody in the conversation understands. "No thanks, but can you tell me which part was wrong?" is a complete answer. The diagnosis in there is worth extracting. The rewrite isn't.
Keep the parts you enjoy. Nobody is forcing you to hand over the code you write for fun. Productivity isn't the only thing you're optimising for, and pretending it is, is how people end up miserable.
You're not behind, and you're not fighting progress. You're at the point where the tool exists and the skill to use it mostly doesn't yet, for anyone. So go build it.
3
u/MpVpRb Sep 11 '26
Master the AI tools. Get really good at using them. Understand their strengths and weaknesses.
The transition will be rough as the clueless pump out vast quantities of slop.
Learn to be one of the masters who uses the tools to create great code.
1
u/gearcloud 5d ago
Good to know I am not the only one struggling in that way. Doesn't seems like anyone has an answer though. I guess just keep trying figuring out your own approach. For myself I will probably try to make it as hard as possible for myself to fully delegate the development to AI, or maybe just make sure I have days where I am not allowed to use it to write code at all, so my problem solving skills don't atrophy. Don't know. I just hate the feeling of being just a code reviewer, it's taking all the fun from coding, the state of flow you find yourself sometimes.
1
u/j_fear Sep 12 '26
Agents.md or claude.md for claude.
Plan, specify programming stack, patterns. Be specific. You can also provide best practices for specific language. And most important - what is not allowed. You can use some highest model to rewrite for you with token usage per session in mind.
Thats actually it. Planing ai worflow is just heavy research until output satisfy your needs.
1
u/Kiana_Harpel Sep 15 '26
The CAD example is probably where I’d draw the line. I’d rather have AI tell me what’s wrong with my approach or suggest the smallest possible fix than rewrite the whole thing. If the new version works but I can’t explain why, I don’t really feel like the problem is solved yet.
0
u/yuehuang Sep 11 '26
For context, a "Computer" used to be a human who did math. Your phone does more math in a day than the entire human computer did ever. I don't think we are going back, whether the path we are going is good or bad.
-6
u/sliiboots Sep 11 '26
Did you use AI to write this though? Lol
You need to adapt. Someone who wrangles AI code is (temporarily) the next best move. Traditional programming by humans is dead. Maybe not completely by today or tomorrow but within a year no one will be writing code anymore. The writing is clearly on the wall. As a 25-year vet developer, it’s over.
-2
u/Papa-pwn Sep 11 '26
How should you feel?
Empowered to continue to improve.
Eng 1s with Claude are never going to be more valuable than Principal Engineers with Claude, because they’re not going to know how to get the most out of it nor will they always know what to do with what it’s given them.
The best AI users and the best engineers are often the same people in an enterprise. It’s just another skill in the toolbelt.
0
u/[deleted] Sep 11 '26
[deleted] — view deleted comment