Hacker News new | ask | show | jobs
by synicalx 696 days ago
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 writing them, but a very very useful little time saver IMO.
1 comments

> 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?

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.