Hacker News new | ask | show | jobs
by eternityforest 592 days ago
If AI doesn't understand something I assume it's too clever, even if I do get the AI to figure it out I won't understand it in a month and other devs won't understand it at all unless I somehow convince them to read the code(Like as if that's going to happen!).

I think it's definitely improved my own code, because it's like always working with a pair programmer, who represents a very average developer with insane typing speed. I think you kind of subconscious pick up the style like you would learn a literary style by reading books.

With Codeium what usually works is writing a prompt inline as a very descriptive comment.

For a non critical piece of a personal project, I think this section is the most impressive thing I've gotten AI to do:

``` float getFilterBlendConstant(float tc, float sps){ return 1.0f - exp(-1.0f / (tc * sps)); } float fastGetApproxFilterBlendConstant(float tc, float sps){ return 1.0f - (tc * sps) / (tc * sps + 1.0f); } ```

1 comments

> unless I somehow convince them to read the code(Like as if that's going to happen!).

code is read more often than its written. I spend maybe 60-70% of my time reading code when I'm "writing code". I don't think it will take much convincing if you're working on a project with others.

If you're maintaining a part of the code by yourself, some devs might not want anything to do with it, they won't read it or think about it or even learn to use it if they don't have to.

Especially if they're busy, it's very easy to wind up as the lone maintainer of some fairly isolated part of the system that nobody else touches because you seem to be doing just fine.