Live data from Hacker News

Up to 90% of my code is now generated by AI

techsistence.com

31–40 of 50 posts

Re: Up to 90% of my code is now generated by AI

#31
post #29

I don't think AI could generate 90% or even 40% of my code, but by god does it generate me a lot of boilerplate and comments. My work just gave us all Copilot and it's really good at creating useful comments (even for Pydocs), and writing out simple but mildly tedious things like the outline of a loop, simple functions etc. No risk really from either since they're all short enough for me to sanity check as the AI is…

> but by god does it generate me a lot of boilerplate and comments. Why would you have it write comments? The core of most useful comments is understanding that's not directly reflected in the code (hence the comment), and things that capture your understanding of what you're doing. Boilerplate comments are noise.

My fault for poor wording, what I mean it understands the code its commenting on, and writes useful comments that I would normally write myself, and can also write simple boilerplate code for me.

So for example if I start typing 'while' it will let me tab complete out the whole skeleton of that loop. For simpler things it even seems to be able to guess my intentions and actually populate the loop and its conditions.

Re: Up to 90% of my code is now generated by AI

#32

I don't understand the influx of these kinds of posts. I use ChatGPT and Claude daily, but I wouldn't say 90, 80, or even 50%. Not because I don't want it to be, but because it just can't. LLMs are perfect for those who are at the beginner-level with some language, or with rather simple code that is not very business-specific, or solving/implementing tidbits that are isolated from the larger surface area of a product…

Add CoPilot to the mix, and your percentage will climb higher.

Re: Up to 90% of my code is now generated by AI

#33
post #3

I'm interested but skeptical. I have not dived as deeply as you. Mostly I'm using ChatGPT. There is just no way it could generate 90% of my code. It is great at generating boilerplate for simple cases. I find it most useful for getting started on this I know nothing about. Like I was working with SVG recently, something I know nothing about. But is have to say chatgpt was helpful, but not, in the long run useful. Too…

CoPilot gets the percentage higher.

Re: Up to 90% of my code is now generated by AI

#34
post #29

Earlier quoted context omitted.

> but by god does it generate me a lot of boilerplate and comments. Why would you have it write comments? The core of most useful comments is understanding that's not directly reflected in the code (hence the comment), and things that capture your understanding of what you're doing. Boilerplate comments are noise.

My fault for poor wording, what I mean it understands the code its commenting on, and writes useful comments that I would normally write myself, and can also write simple boilerplate code for me. So for example if I start typing 'while' it will let me tab complete out the whole skeleton of that loop. For simpler things it even seems to be able to guess my intentions and actually populate the loop and its conditions.

> what I mean it understands the code its commenting

As in the business case for the code existing? Like linking it to a specific requirement?

Re: Up to 90% of my code is now generated by AI

#35
post #8
post #3

I'm interested but skeptical. I have not dived as deeply as you. Mostly I'm using ChatGPT. There is just no way it could generate 90% of my code. It is great at generating boilerplate for simple cases. I find it most useful for getting started on this I know nothing about. Like I was working with SVG recently, something I know nothing about. But is have to say chatgpt was helpful, but not, in the long run useful. Too…

Are you using the paid gpt-4? It is a world of difference of improvement over the free tier. Like the author I am now writing 80% + of my code in chatgpt. Every now and then something pops up that it doesn't quite understand and I have to pick up my shovel and head back into the mines, but mostly with good prompting in chat gpt and preceding everything I write in my ide with a comment explaining what I'm doing copilo…

Are you at least testing the code? Or are you delegating testing to AI as well?

Re: Up to 90% of my code is now generated by AI

#36

Earlier quoted context omitted.

My fault for poor wording, what I mean it understands the code its commenting on, and writes useful comments that I would normally write myself, and can also write simple boilerplate code for me. So for example if I start typing 'while' it will let me tab complete out the whole skeleton of that loop. For simpler things it even seems to be able to guess my intentions and actually populate the loop and its conditions.

> what I mean it understands the code its commenting As in the business case for the code existing? Like linking it to a specific requirement?

In that very specific scenario, no. Fortunately there are many more use cases for comments other than just linking to design docs and jira tickets.

Re: Up to 90% of my code is now generated by AI

#38

I don't understand the influx of these kinds of posts. I use ChatGPT and Claude daily, but I wouldn't say 90, 80, or even 50%. Not because I don't want it to be, but because it just can't. LLMs are perfect for those who are at the beginner-level with some language, or with rather simple code that is not very business-specific, or solving/implementing tidbits that are isolated from the larger surface area of a product…

Add CoPilot to the mix, and your percentage will climb higher.

AI is like XML, which is like violence?

Re: Up to 90% of my code is now generated by AI

#40

I don't understand the influx of these kinds of posts. I use ChatGPT and Claude daily, but I wouldn't say 90, 80, or even 50%. Not because I don't want it to be, but because it just can't. LLMs are perfect for those who are at the beginner-level with some language, or with rather simple code that is not very business-specific, or solving/implementing tidbits that are isolated from the larger surface area of a product…

Add CoPilot to the mix, and your percentage will climb higher.

I use CoPilot and agree that 50% is a very good day, and also only for fairly simple code.
Post reply on HN