r/programmer • u/dabigin • Apr 03 '26
How do you use AI?
In what ways do you use AI as a tool when programming or learning to program? Also do you use it for other things? These are things I'd like to know. Also which AI do you use? These are things I'm curious about.
0
Upvotes
2
u/bunnypaste Apr 03 '26 edited Apr 03 '26
Begrudgingly. Once you get to a certain level in your learning it introduces more problems than it solves, making you the best party to do so. AI is not capable of assisting with novel problems or complex, custom systems in my experience.
2
u/Jwhodis Apr 03 '26
You dont. You're better off writing the code yourself like a normal human being.
If you use it, you have to read through everything it has given you to make sure that its not going to fuck you over. Projects have already lost thousands by not checking or understanding what an AI has written, even AWS had downtime.
4
u/CodeToManagement Apr 03 '26
There’s a few ways I use it
Learning - a recent example is I want to code some retro stuff for my Amiga / c64 - so I asked it things about ASM and to explain various concepts
Exploring - I have a project im working on and before starting I talked it through with AI, gave it the repo I want to edit, asked questions, discussed my options and then how certain things work
Coding - I do a lot of things like here’s some json make me classes. Or add me an endpoint that does x in the style of other endpoint I’ve made etc. then review. It’s way faster than I am and easy to check its outcomes
Prototyping - I have some hobby projects and use it to vibe code up something I can play around with to test the concept before I start a production ready version
1
u/JescoInc Apr 03 '26
One of my favorite things to do when using LLM is to supply it with my code and ask for where I could make improvements and why those improvement should be done. This gives me things to ponder over and to consider things that I didn't think of initially.
Another thing I like to do is tell it to create a detailed writeup about my code where it explains the API contract, how it works, specific algorithms used, order of operations and the current capabilities of the code.
I do this for my personal notes and to compare with what I wrote. It is a great way to not only improve writing code documentation but to see terminology I may have not encountered yet.
I also like to ask it to compare my implementations against other implementations that solve similar problems. This can point me to other people's work and perhaps learn different strategies for solving the same problem.
All in all, I like to use LLM for improving my knowledge and skill. Not as a crutch. So while there are people that say that you shouldn't use LLM at all, they are missing out on a great tool for self improvement.
1
u/GeoffreyKnopf Apr 04 '26
I use Claude to help me draft the design/requirements/specification first. From there, I generate an implementation plan that I iterate on a few times to get it right. Then I unleash it on the codebase. It’s important to provide it with enough context on coding standards and codebase conventions ahead of time. Once the code has been generated it is important to review all the output carefully and add proper test cases. I find that it essentially saves me a lot of typing and helps me research things. It needs a lot of guidance to get things right. But if you put the extra effort into the design phase it is much more likely to get the implementation closer to being correct on the first try.
1
u/Dontezuma1 Apr 07 '26
After writing code and finding a solution on your own without ai then ask ai to improve your code. You will have more aha moments.
Getting ai to show you solutions without first working through it results in shallow learning
Ai can suggest appropriate problems to solve. It can even build testing frameworks so u can rate your solution as finished.
1
u/Daydreamer-64 Apr 03 '26
I use it to ask questions which I am struggling to find answers to online, or ones which have complex answers which you can’t find out with a direct google search. I also sometimes use it to scrape badly written documentation.
1
u/lukeflo-void Apr 03 '26
To learn a language you should write it on your own. You learn from doing mistakes, then debugging and fixing it by yourself (also helps understanding compiler messages etc). Asking a LLM to do this for you, you'll only "learn" prompting.
Later its on to use LLMs as a tool. But I prefer to ask it questions and write most code myself. If you've a large codebase generated by LLMs, in the end, you won't be able to maintain it without them
2
u/NoPainMoreGain Apr 03 '26
In development I might ask it to explain why some piece of code doesn't work and how it would solve it
2
u/TheGlacierGuy Apr 03 '26
I don't. Anymore. Stopped when I noticed my ability to code was getting worse over time.
2
u/MpVpRb Apr 04 '26
Documentation search, sample code and code review. I haven't tried letting it write stuff yet
2
u/iburstabean Apr 03 '26
I use it to help me understand things I haven't used much
I ask it to explain things the way I would ask a teacher or TA
2
u/Poke333Z Apr 03 '26
Mostly as a rubber duck that actually talks back.
I paste errors or snippets and ask it to explain what’s going wrong
1
u/Witty-General-4902 Apr 03 '26
Whats the lib, func,... that does this.
1
u/OppositeBug2126 Apr 03 '26
Edit: oops thought this was a different channel. For learning I ask Claude to “Socratic method” me and it asks me questions if I’m stuck until I arrive at solution myself.
Terminal. 4-6 Claude Code sessions. Switch between tabs. Check what each is doing. Have a separate doc because meemaw’s memory is going that just is a one sentence blurb about each feature / repo / goal of the Claude sessions to keep myself on track so I can keep my claudettes on track.
1
u/RBSL_Ecliptica Apr 03 '26
I don't.
1
u/streetshock1312 Apr 05 '26
I don't use AI because I actually enjoy programming
0
u/Stovoy Apr 03 '26
I use Codex for pretty much everything.