News for hackers. Stuff that matters.
Re:40% of the code GitHub Copilot users check-in is AI gener... by layer8 on Tuesday March 14, 2023 @11:37PM (#35163509)
I agree to some extent. But there are redundancies that are inherently beneficial and make code more robust and readable, like separating interface from implementation (where some declarative elements have to be repeated), or explicit type annotations instead of full-program type inference. There are also strictly necessary redundancies, like when you pattern-match an ADT, you repeat its declared structure. For desirable or necessary redundancies like that, AI code completion can still save time.

Intelligent unit test creation (if it is indeed intelligent) is also a good use-case. Not to render thinking by the programmer unnecessary, but to save typing and to point out potentially useful tests that you might not have thought of.

Re:40% of the code GitHub Copilot users check-in is AI gener... by nine_k on Tuesday March 14, 2023 @11:44PM (#35163568)
This is trivial stuff which is handled well by any competent IDE from 2015, and even a well enough-working set of editor templates.

I don't see where "AI" is required for stuff like this.

Re:40% of the code GitHub Copilot users check-in is AI gener... by js8 on Tuesday March 14, 2023 @11:50PM (#35163612)
I agree, but also, this is actually where AI (whatever it is) would be helpful. Suggesting actual abstractions that could replace boilerplate. Of course, these can build on existing abstractions.