r/programmer • u/Excellent_Ad_9873 • 3d ago
Question Is this a ok use for AI?
I just wantted to ask and im not sure if its the right place to ask but so be it. Im pretty new to programming and have been enjoyin it but the habit thats gnawing on me is my own use of AI. For me if i want to program somthing but i dont know how to get thiere if ask AI for instructions on how to get thiere making sure it dosnt generate code and id follow them. My question is this appropriate use of AI or should i kick the habit?
0
Upvotes
2
u/nacnud_uk 3d ago
I think you more need to move into concepts, than actual typing of code. The typing is done by the robots now. That is, the Ai. You have to be aware of the concepts and the "what you want". So, designing good requirements, getting at the Must Haves, The Could Haves and the Would be nice to haves. You're going to have to move more into a kind of design role with regards any programming language that you use from now on.
The underlying output of the robot is not really of any important.
For sure, learn programming for fun and entertainment, but don't learn it if you think you are going to make a career out of it. Learn the tools that are current for your generation, not the tools that your elders ( me ) used for 40 years. They are gone now. We just use AI, and we use it hard. As we know the benefits of it.
Nothing can produce results in the speed that it can. You can't compete with that, no matter what you do.
If you want to learn programming, you can do , for sure, millions of others have. I know you can. But just think about why you're doing it.
PS. Don't give up with AI, unless you want to be totally irrelevant in any marketplace.
2
u/Vesuvius079 3d ago
If you're learning code because "it's interesting and typing out code sounds more fun as a hobby than knitting" then yeah that's a reasonable use of AI.
If you're hoping to build career skills: you need to move up the layers of abstraction and tell the AI to write the code without worrying too much how it works and be aware that going forward there's a strong chance each year that the profession has to move up layer after layer. It's a mad scramble to stay relevant at this point.
3
u/Content-Ad5196 3d ago
this is old but idk, i hear various senior programmers saying they do not even read code not except for the important business logic. The issue for us beginners (i am 1 year out of my studies) is that we won't get to the former seniors skill level if we act like this.
2
u/CaffeineLiker 3d ago
I've been programming for a while, and I use Copilot as a shorthand for googling questions or checking syntax in unfamiliar languages. If it disappears tomorrow or finally gets priced closer to cost, I'll go back to googling (duckduckgo). Really it's fine, but would defer to documentation for understanding concepts.
1
u/ReflectionMost9826 3d ago
It depends on how much you lean on it to generate plans and solutions. Use it to help you find things.
If you know there's a problem in rendering but don't know where rendering even happens and you can't even begin to debug, ask it something like: "where does rendering happen", then go take a look and see if you can figure it out. That's better than, "how do I fix the rendering bug"', or even "what's wrong with the rendering?".
There's also a big difference between asking "how do I build an interface with X, Y, Z features"? and saying "can you link me to the API for the components library?" and then flipping through it to find out what capabilities the libraries you are using have. It's easier to plan what you're building if you understand your tools, but if you lean on AI to spoonfeed you everything you'll never know. The amount of times that I've solved issues I wasn't even working on because I was going through a library's API trying to work on something completely different is really high.
Good luck. The times I've learned the most were the times I struggled the most, and had no way out except to figure things out the hard way. I don't think I'd be half as good as I am today if AI existed while I was learning.
1
u/Specific-Musician444 3d ago
If you have to, use Socratic method, otherwise it's detrimental to your learning process.
1
u/Arcanite_Cartel 3d ago
Depends on what you are trying to achieve. If want to know how to solve problems with code, then asking the AI to do that for you isn't going to make you learn. I'm not talking about looking up some language or framework doodad, I talking about crafting a solution with code.
An alternative approach might be to outline your own solution to a problem, and then have an AI assess it.
But I sympathize with juniors wanting to learn programming in this transition period. I think though, knowing what specifically to ask the AI for, is where things are at. And in five years, more so. Programming itself is gong to end up being... well, how many people program assembler or machine code these days? It will be that way for most programming languages and you really won't need to think about it anymore. Not quite there yet. Not entirely. Will be soon.
1
u/FortyThousandBees 3d ago
First, don't say AI. AI is an amorphous marketing term used by "AI comapnies" to convince you that their product is a black box that can do anything when it is really much less than that. You're using an LLM, which is very specifically a machine learning model for autoregressive natural language generation.
Second, absolutely. And in fact, I'd say you should be using it more. When you want to build something, I would recommend that you don't start with writing code. Instead write a specification in markdown (those ".md" files you'll see often in GitHub repositories), and then ask the coding agent where the spec is ambiguous or underdefined. Have it help you fill in the blanks, and, while you can let the agent modify the specification text itself, tell it that it should not decide how to do so itself, and instead ask you how to do it.
The thing about LLMs is that they're most useful when you think of them as extremely powerful pattern generation machines that can basically reproduce any pattern they observed in their training data but without being able to reason about how to combine those patterns into a novel structure, so it will know what all of the "standard choices" for any particular decision are and present them to you to reason about yourself, and this, IMO, is the future of what software engineering will look like.
1
u/Individual_One_1793 3d ago
Why do you need approval from someone you don't know about anything at all???
1
u/FinancialTrade8197 3d ago
Better than being a vibe-coder, but not the best use.
An important part of programming, arguably more than typing the code itself, is being able to break down problems into logical steps. You're using AI for that part, which isn't great. Instead, you could use AI to give you hints when you're totally stuck, like a little push instead of a walkthrough.
0
u/AlexMTBDude 3d ago
Yes, just as long as the AI isn't writing the code for you then AI can be a good guide to learn a new programming language or tech. The danger is that AI can give you a false sense of understanding something, when you really don't without the AI. The way to learn a new programming language is to write a lot of code in that language.
(I've been a programming language instructor for the past 25 years)
0
u/i_am_someone_or_am_i 3d ago
My rule is, if you can explain the code line by line, it is ok.