4 ms·
Kinda funny but my current feeling about it is different from a lot of people. I did a lot of AI assisted coding this week and I felt, if anything, it wasn't
by PaulHoule 1y ago
Kinda funny but my current feeling about it is different from a lot of people.
I did a lot of AI assisted coding this week and I felt, if anything, it wasn't faster but it led to higher quality.
I would go through discussions about how to do something, it would give me a code sample, I would change it a bit to "make it mine", ask if I got it right, get feedback, etc. Sometimes it would use features of the language or the libraries I didn't know about before so I learned a lot. With all the rubber ducking I thought through things in a lot of depth and asked a lot of specific questions and usually got good answers -- I checked a lot of things against the docs. It would help a lot if it could give me specific links to the docs and also specific links to code in my IDE.
If there is some library that I'm not sure how to use I will load up the source code into a fresh copy of the IDE and start asking questions in that IDE, not the one with my code. Given that it can take a lot of time to dig through code and understand it, having an unreliable oracle can really speed things up. So I don't see it as a way to gets things done quickly, but like pairing with somebody who has very different strengths and weaknesses from me, and like pair programming, you get better quality. This week I walked away with an implementation that I was really happy with and I learned more than if I'd done all the work myself.
- dbtc 1y ago> It would help a lot if it could give me specific links to the docs Just a super quick test: "what are 3 obscure but useful features in python functools. Link to doc for each." GPT 4o gave good links with each example. (its choices were functools.singledispatch, functools.total_ordering, functools.cached_property) Not sure about local code links.
- steveklabnik 1y agoI've had this return great results, and I've also had this return hallucinated ones. This is one area where MCPs might actually be useful, https://context7.com/ https://context7.com/ being one of them. I haven't given it enough of a shot yet, though.
- furyofantares 1y agoThis is great, it's so easy to get into the "go fast" mode that this potential gets overlooked a lot.
- andy99 1y ago> I did a lot of AI assisted coding this week Are you new to it? There's a pretty standard arc that starts with how great it is and ends with all the "giving up on AI" blog posts you see. I went through it to. I still use a chatbot as a better stack overflow, but I've stopped actually having AI write any code I use - it's not just the quality, it's the impact on my thinking and understanding that ultimately doesn't improve outcomes over just doing it myself.
- PaulHoule 1y agoI've been doing it for a while. I never really liked stack overflow though it always seemed like a waste of time versus learning how to look up the real answers in the documentation. I never really liked agents because they go off for 20 minutes and come back with complete crap But if I can ask a question get an answer in 20 seconds and iterate again I find that's pretty efficient. I’ve usually been skeptical about people who get unreasonably good results and not surprised when they wake up a few weeks later and are disappointed. One area where I am consistently disappointed is when there are significant changes across versions: I had one argue over where I could write a switch in Java that catches null (you can in JDK 21) and lots of trouble with SQLAlchemy in Python which changed a lot between versions. I shudder to think what would happen if you asked questions about react-router but actually I shudder to think about react-router at all.
- resonious 1y agoI've been back and forth, and currently heavily relying on AI-written code. It all depends on knowing what the AI can and can't do ahead of time. And what it can do often overlaps with grunt work that I don't enjoy doing.
- whynotminot 1y agoWhen's the last time you "went through the loop" ? I feel like with this stuff I have to update my priors about every three or four months. I've been using AI regularly since GPT 4 first came out a couple years ago. Over that time, various models from Sonnet to Gemini to 4o have generally been good rubber ducks. Good to talk to and discuss approaches and tradeoffs, and better in general than google + stack overflow + pouring over verbose documentation. But I couldn't really "hand the models the wheel." They weren't trustworthy enough, easily lost the plot, failed to leverage important context right in front of them in the codebase, etc. You could see that there was potential there, but it felt pretty far away. Something changed this spring. Gemini 2.5 Pro, Claude 4 models, o3 and o4-mini -- I'm starting to give the models the wheel now. They're good. They understand context. They understand the style of the codebase. And they of course bring the immense knowledge they've always had. It's eerie to see, and to think about what comes with the next wave of models coming very soon. And if the last time you really gave model-driven programming a go was 6 months or more ago, you probably have no idea what's about to happen.
- Shorel 1y agoSome people copy and paste snippets of code without knowing what it does, and in a sense, they spread technical debt around. LLMs lower the technical debt spread by the clueless, to a lower baseline. You were part of the clueless, so an LLM improved your code and lowered the technical debt you would have spread.
- gerdesj 1y ago"I would go through discussions about how to do something" Have you compared that to your normal debugging thought processes? I get that you might be given another way to think about the problem but another human might be best for that, rather than a next token guesser. I have a devil of a time with my team and wider, the younger ones mainly, getting them to pick up a phone instead of sending emails or chats or whatever. A voice chat can solve a problem within minutes or even seconds instead of the rather childish game of email ping pong. I do it myself too (email etc) and I even encourage it, despite what I said earlier - effective use of comms is a skill but you do need to understand when to use each variety.
- x86x87 1y agoviewing it as an assistant is the way to go. it's there to help you - like an overpowered autocomplete - but not there to think for you.