4 ms·
I had a minor desire to make a feature that had a slightly higher effort than reward, so although I knew I could struggle it out I didn't bother. After years o
by CaffeineLD50 2y ago
I had a minor desire to make a feature that had a slightly higher effort than reward, so although I knew I could struggle it out I didn't bother.
After years of this I decided to give an AI a shot at the code. It produced something plausible looking and I was excited. Was it that easy?
The code didn't work. But the approach made me more motivated to look into it and I found a solution.
So although the AI gave me crap code it still inspired the answer, so I'm calling that a win.
Simply making things feel approachable can be enough.
- radlad 2y agoI had a similar experience but found that with a little prodding, I was even able to get it to finish the job. Then it was a little messy, so I asked it to refactor it. Of course, not everything lends itself to this: often I already know exactly the code I want and it's easier to just type it than corral the AI.
- headcanon 2y agoAgreed, its always nicer for me to have something to work with, even if by the end of it its entirely rewritten. It helps to have it generate code sometimes to just explore ideas and refine the prompt. If its obviously wrong, thats ok, sometimes I needed to see the wrong answer to get to the right one faster. If its not obviously wrong, then its a good enough starting point we can iterate to the answer.
- __xor_eax_eax 2y agoI love throwing questions at it where previously it would have been daunting because you don't even know the right questions to ask, and the amount of research you'd need to do to even ask the proper question is super high. Its great for ideating in that way. It does produce some legendary BS though.
- nineplay 2y agoOne of my more effective uses of AI is for rubber duck debugging. I tell it what I want the code to do, iterate over what it comes back with, adjust the code ( 'now rewrite foo() so 'bar' is is passed in'). What comes back isn't necessarily perfect and I don't blindly copy and paste but that isn't the point. At the end I've worked out what I want to do and some of the tedious boiler-plate code is taken care of.
- soperj 2y agoI've tried it, and ended up with the completely wrong approach, which didn't take that long to figure out, but still wasted a good half hour. Would have been horrible if i didn't know what I was doing though.
- CaffeineLD50 2y agoYes, that's one of the bigger traps. In my case I knew what needed to be done and could've done it on my own if I really needed to. A novice with no idea could blunder through but get lost quickly.
- gopalv 2y ago> some of the tedious boiler-plate code is taken care of. For me that is the bit which stands out, I'm switching languages to TypeScript and JSX right now. Getting copilot (+ claude) to do things is much easier when I know exactly what I want, but not here and not in this framework (PHP is more my speed). There's a bunch of stuff you're supposed to know as boilerplate and there's no time to learn it all. I am not learning a thing though, other than how to steer the AI. I don't even know what SCSS is, but I can get by. The UI hires are in the pipeline & they should throwaway everything I build, but right now it feels like I'm making something they should imitate in functionality/style better than a document, but not in cleanliness.
- dartos 2y agoThe idea of untangling AI generated typescript spaghetti fills me with dread. It’s as bad as untangling the last guy’s typescript spaghetti. He quit, so I can’t ask him about it either.
- thephyber 2y agoWhen you ask AI to do a thing, you at least have some minimal amount of intent — you just need to retain the prompt. Most of the time, programmers don’t record all of the assumptions and design decisions in code or documentation.
- golergka 2y ago> I decided to give an AI What model? What wrapper? There's just a huge amount of options on the market right now, and they drastically differ in quality. Personally, I've been using Claude Code for about a week (since it's been released) and I've been floored with how good it is. I even developed an experimental self-developing system with it.
- CaffeineLD50 2y agoI prefer open source models.
- infogulch 2y ago> although the AI gave me crap code it still inspired the answer This is exactly my experience using AI for code and prose. The details are like 80% slop, but it has the right overall skeleton/structure. And rewriting the details of something with a decent starting structure is way easier than generating the whole thing from scratch by hand.
- thinkingtoilet 2y agoMy experience with ChatGPT is underwhelming. It does really basic language questions faster and easier than google now. Questions about a function signature or questions like, "how do I get the first n characters of a string". Things like that. Once I start asking it more complex questions not only does it get it wrong often, if you tell it the answer is wrong and ask to do it again it will often give you the same answer. I have no doubt it will get there, but I continue to be surprised at all the positives I hear about it.
- kansface 2y agoWhat language are you writing? I mostly write go these days, and have often wondered if it is uniquely good in that language given its constraints.
- deleted 2y ago[deleted]
- d0mine 2y agoit looks like a variation of Stone soup story https://en.wikipedia.org/wiki/Stone_Soup https://en.wikipedia.org/wiki/Stone_Soup