r/C_Programming • • 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

46 comments sorted by

68

u/dario_p1 6d ago

If you are learning, no point in ai doing the work for you

8

u/PittLeElder 5d ago

Pretty much. After you've written something that does the job well, there probably value to shoving it into Claude to do a code review, it's fairly good at highlighting potential issues. But you need to do the work if you actually want to learn anything.

2

u/Taewyth2 3d ago

This. I have to repeat that to my student during each class

-8

u/lovelacedeconstruct 5d ago

But there is a point in using it to learn

11

u/flyingron 5d ago

Often learning how to do things incorrectly.

-4

u/lovelacedeconstruct 5d ago

You are absolutely delusional

8

u/flyingron 5d ago

Not in the least. I'm responsible for fixing code that delusional AI programmers generate.

2

u/lovelacedeconstruct 5d ago

Yeah, apparently you're either a vibe coder or someone who doesn't use AI at all. There's no middle ground, no nuance. Everything has to be black and white.

6

u/flyingron 5d ago

I ran a software company that went from two guys to being sold for several hundred million. I do use AI, but if you think that AI is going to be instructive to you, you are the one that is delustional.

It can be handy to quickly pull up some concepts, but if you can't think like a programmer, you code (with or without AI assistance) is going to be unmaintainable shit.

6

u/lovelacedeconstruct 5d ago

We are saying the same thing then and you are just pedantic

6

u/flyingron 5d ago

Then you are being unclear. If you'd clarified what you were saying when I responded to your comment rather than throwing ad hominem attacks at me, you might have contributed something useful to this thread.

4

u/scaredpurpur 5d ago

People bash its use, but it CAN be helpful to learning. Sure, simply running it to create programs blindly is an absolute waste of time in terms of learning. AI can be extremely helpful towards learning if you constantly ask the how and why of things. "Why do these functions require pointers?..."

5

u/im-not-in-a-meeting 5d ago

You can also feed it a text book or other learning material and have it generate problems and examples for you.

Working on these in your ide to solve can boost your trouble shooting skills.

4

u/scaredpurpur 5d ago

Don't even need a book. I essentially asked it to help me learn assembly. Was able to get it to ask questions on the flow of basic assembly problems. Learned a surprising amount on the language from it.

Also helped with the frustrating aspects of the language like setting up vs code. Who has the time to memorize 100+ homebrew commands?

1

u/Taewyth2 3d ago

I mean, there's been plenty of exemples and some studies showing that doing so gives you the illusion of learning more than actually learning

1

u/Drach88 8h ago

Using AI to learn is like hiring a tutor that writes all of your problem sets for you, and then explains it to you afterwards.

You learn by doing. You learn by struggling. You learn by being forced to debug yourself.

I've never seen someone actually learn by using AI.

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.

2

u/thevnom 5d ago

Unironically this, because typing skills, and learning to control your editor efficiently is also good experience

1

u/Gold-Part4688 5d ago

you also read code much more carefully. with any mistakes being very, very obvious. A fun alternative is to do this on different desktops/windows, and needing to switch between them. Also, of course, breaking and changing things to see what happens

3

u/UnmappedStack 5d ago

tbh if you're getting the AI to create everything and you just hand copy it into your editor, I don't think that's really much better lol.

8

u/max123246 5d ago

When I started programming it was typing code verbatim from codecademy for htnl css and JavaScript. I was like "how am I ever going to learn when Im just typing what it says". Yet if I never did that, I'd never start to feel more and more comfortable over time with code. I'm fluent now and can barely remember what it's like to not know how to code but I still try and remember that time, when even a variable felt mystical and impossible to understand

First step of learning needs to be baby steps, even miming the action gets your brain started to learn

3

u/Future_Pace_5290 5d ago

I hand copied all the programs in K&R then solved the exercises.

2

u/SayuriShoji 5d ago

Even if you use AI, you can still think about every line and double check whether the called functions are used correctly.

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.

2

u/Dazzling_Music_2411 3d ago

using AI for learning is proven to be basically worthless:

Oooh, I'd say it's a lot worse than worthless, it's positively detrimental.

And I'm being generous here.

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.

1

u/kprotty 1d ago

only sensible comment for a tool adept at searching and explaining semantic patterns

4

u/madu_tualang 6d ago

For me:

Never use AI for learning. Use AI for productivity.

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/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.