r/C_Programming • u/xounss • 6d ago
Discussion 1 year With No AI
As a beginner in programming who is interested in low-level programming, I think I should avoid Ai for at least a year
because I believe that at the high level and in large-scale projects, you won’t even be able to get started without a high level of problem-solving skills and an understanding of architecture and engineering.
So I’d like to hear your thoughts, because we beginners know that learning to program the traditional way is important, but the temptation of AI is strong and distracting.
What do you think?
50
Upvotes
68
u/dario_p1 6d ago
If you are learning, no point in ai doing the work for you
32
u/Future_Pace_5290 6d ago
If you're learning to program, always write the code on your own manually.
Even if you use AI, write its code by hand into your editor. Never copy paste.
6
u/Daveinatx 5d ago
I don't use AI for regular programming, and recommend not to while learning.
That said, there will be times you'll feel stuck while learning. First, try your hardest as epiphanies are the best way to have real understanding, and it's exciting!! But, there will be times you feel like you're hitting your head against a wall. Then, just ask AI questions not not to solve.
If the temptation for it to take over your assignment is too great, then back off using it. Stack overflow, YT, and a few others still have answers to specific questions.
Be proud that you want to learn. I hope it serves you well!
9
u/tastygames_official 6d ago
using AI for learning is proven to be basically worthless: What AI does to the minds of novice coders
what LLMs ARE good for is a search engine. If you KNOW the information you're looking for, an LLM is essentially trained on the whole internet so can give you more or less whatever a search engine would lead you to find. Now just like any random webpage, it's not guaranteed to be right, so eventually you'll have to go to a trusted source like a book or official documentation website, but you can also prompt the LLM to always give you original sources for you to check out.
BUT... if you're a beginner then you don't know what you don't know, so asking questions becomes tough. You CAN, however, ask very precise things like "explain to me how malloc() works" and then ask follow-up questions and ask for official guides or further reading. Ask something like "what are some popular methodologies for variable-length arrays in C?" or "where can I find a tool to show me what my C compiles to in machine code and how to interpret it?" But asking it to write code for you or to analyze your code is generally a bad idea. Experts might be able to work with AI-written example code, but only because they already know all the pitfalls and best practices. A beginner should really only look at professional example code. An LLM *might* be able to produce some professional example code, but it's not guaranteed. It can and often does hallucinate answers or do things that it "learned" from ingesting shitty code from github.
And whether you use examples from books or have an LLM create an example for you or you look to StackOverflow for examples, the main key in learning is to TYPE IT OUT YOURSELF. Copy/paste or letting an LLM write directly in your IDE is always a bad idea since you don't learn. Again, every pedagogue has known this since the beginning of education, which is why kids still have to write down dictation and fill out times tables and such - because repetition builds (muscle) memory.
Anyway, there are TONS of resources out there to get you started with C and assembly programming. Hell, just ask an LLM which ones there are and it can point you in the right direction, just like any search engine can.
5
u/AnonymousGamerAcc 6d ago
Avoid using AI for the actual solving of the problem, but if you're completely stuck, I'd say it's better to use AI the research than to try scrolling through outdated sources. Just don't give the AI more context than it needs, and don't ask for the solution, ask for the direction
5
u/muxcode 6d ago
You can use ai to review your code, explain concepts, give you advice on how to achieve something through steps, it can write custom tutorials on demand. You don’t have to use it to just write the code for you.
One of the hard parts about learning is most people who had to learn the traditional way spent a lot of time stumbling in the dark. That is time consuming and not always productive.
4
u/madu_tualang 6d ago
For me:
I have to put boundaries somewhere to not deter my education.
2
u/Brick-Sigma 6d ago
Definitely avoid AI when starting out, the best way to learn is to try write code for yourself, let it crash and fail, and keep trying until you get the hang of it.
I would recommend getting a textbook to help you learn as well, and maybe try come up with a small project you’d like to do. Apart from learning to code, try learn how to solve problems yourself by planning a solution. I personally do that with a pen and notebook, and it goes a long way into making programming easier and more fun.
2
u/eruanno321 6d ago edited 6d ago
Yes, the danger of AI is that it can immediately push you into the role an architect normally has. But architects don't appear out of nowhere - it takes them years of experience and learning to make wise, well-informed design decisions. Skip that, and you'll only ever be as good as the agent you operate.
I wouldn't give up on AI entirely, though. AI is part of reality now, whether you like it or not. You can tell an agent that you're learning and limit it to a few areas it's allowed to automate, or ask it to only do a code review. Once you've learned a concept, you can gradually widen its scope.
You may need to develop some self-control, because yes, AI is a very tempting tool. If that's a problem for you, a self-imposed one-year ban on AI might not be a bad decision at all.
2
u/Ok_Exam3826 6d ago
I’m also new to coding, whenever I’m coding something and it doesn’t work what I do is paste my code into an ai chatbot and ask it to help me fix it while also explaining the problem and the solution so that it doesn’t happen again
3
u/Fujinn981 6d ago
That's for the best. AI doesn't know, or understand anything, which makes it especially bad for beginners as beginners have no way at all to know if it's bullshitting them or not.
1
u/____Eureka____ 6d ago
Good idea. It's like when you start out in primary school to learn +-×÷ you don't just pull out a calculator staight away, even it's a lot more powerful than you are.
1
u/gnix0 6d ago
Yep! I'd keep it simple in the beginning. Focus on learning how to reason through a problem and the different ways you can implement a solution, being able to evaluate which decisions make sense, making tons of mistakes and learning from them, developing debugging skills, learning other tools, browsing man pages and docs... all that builds your skills and gives you a knowledge that will carry throughout your career. Then, once you're in the job market and you have deadlines and etc., you'll be able to use AI like it should be used: a tool.
1
u/gremolata 5d ago
You can use AI to summarize topics, to elaborate on things that aren't clear and to hint at a solution when stuck.
That is, use it as an advanced Google/StackOverflow alternative rather than a black box solver.
1
u/Dangerous_Region1682 5d ago
Nothing wrong with using AI to help you when you are stuck. We all learned aspects of low level programming from those around us, our mentors if you like. Nothing wrong with asking AI questions to help you.
Sure, don’t move on until you understands the suggestions it gives you. It’s just another tool. We all used to Google stuff when we needed to know something we didn’t know how to do. AI is just a better Google if you like.
I just debugged a problem I had with macOS and photos, where I could no longer import photos. I had no idea what the problem was, but it turned out to be stale Time Machine snapshots were associated with the partition I was using as I’d used it for TM a year ago. I banged my head against a wall for half the evening until I gave up and asked ChatGTP and it put me on the right path pretty quickly. Would I have got it myself, probably, eventually, after a week of messing about. And I’m a 25 year macOS user.
So AI has its place. How much you use it, is up to you. The tricky stuff with low level code I learned from those in the know back when I started. Yes, I learned a lot by myself through trial and error, but the field is too complicated and life is too short not to use all the available tools.
1
u/Shjohn0710 4d ago
im gonna do that also. just bought a book for C.
im even gonna use just pen and paper to make sure i really get it. not sarcastic in any way, just really wanna ingrain it into my head.
1
u/Traveling-Techie 4d ago
I recommend using AI as you would a tutor. Let them recommend problems, give hints and look up reference material. Don’t let them do your homework.
1
u/kodifies 4d ago
I'm not convinced "vibe" coding is any quicker, and often produces code that while may be correct, maybe isn't the best structured for maintenance, or later improvement
That said, if you get stuck on a particular point and frustration sets in, you've probably stopped learning, so let a clanker help you out of a hole, but make sure it explains its solution and keep questioning it till you understand the issue, oh and double check what is says if you are not confident of its answer...
1
u/ferriematthew 2d ago
From experience, if you generate code using the AI and then just copy-paste, you will spend five times more time debugging than you do coding, and it still won't work right. If you use it to read giant error logs and tell you approximately what's wrong, or maybe use it to summarize documentation, you might have a better time.
1
u/effessdev 2d ago
I think you should still ask AI when you have questions though 🤔
1
u/Key_River7180 6d ago
Try it!
1
u/QuraToop314 6d ago
You shouldn’t give up on AI, but you should use it properly. Only let it take over tasks you can already do yourself – such as boilerplate code, or use it for quick research, but stay in control. By that I mean, if there’s something you’re not familiar with, you can ask the AI to explain, in abstract terms (not specific to your project) , what would be technically possible; then look into it yourself, think it through, and implement it yourself. Let the AI (preferably several models) check your code. Don’t use it to generate code that you couldn’t generate yourself without help. It may be tempting at first, but the more often you do this, the more efficient you’ll become; you won’t lose control of your codebase, but you’ll work much faster. I use AI in this way, but AI should never touch my code, and I explain problems to it in abstract terms, without any project context. I like to instruct AI to provide me with a linguistic reference, which I then cross-check against my own knowledge and, where necessary, expand upon through further research, so that I can ultimately write the code myself, This also helps you continue to recognise patterns, meaning that AI won’t need to help you with this in future. In short, ask for individual building blocks in an abstract way at most, but not for the blueprint.