←back to thread

258 points signa11 | 8 comments | | HN request time: 0.001s | source | bottom
Show context
kirubakaran ◴[] No.42732804[source]
> A major project will discover that it has merged a lot of AI-generated code

My friend works at a well-known tech company in San Francisco. He was reviewing his junior team member's pull request. When asked what a chunk of code did, the team member matter-of-factly replied "I don't know, chatgpt wrote that"

replies(16): >>42733064 #>>42733126 #>>42733357 #>>42733510 #>>42733737 #>>42733790 #>>42734461 #>>42734543 #>>42735030 #>>42735130 #>>42735456 #>>42735525 #>>42735773 #>>42736703 #>>42736792 #>>42737483 #
gunian ◴[] No.42733790[source]
the saddest part is if i wrote the code myself it would be worse lol GPT is coding at a intern level and as a dumb human being I feel sad I have been replaced but not as catastrophic as they made it seem

it's interesting to see the underlying anxiety among devs though I think there is a place in the back of their minds that knows the models will get better and better and someday could get to staff engineer level

replies(3): >>42733866 #>>42733917 #>>42734750 #
nozzlegear ◴[] No.42733866[source]
I don't think that's the concern at all. The concern (imo) is that you should at least understand what the code is doing before you accept it verbatim and add it to your company's codebase. The potential it has to introduce bugs or security flaws is too great to just accept it without understanding it.
replies(3): >>42734056 #>>42734087 #>>42734129 #
1. gunian ◴[] No.42734056[source]
Exactly why devs are getting the bug bucks

that is right now at some point what if someone figures out a way to make it deterministic and able to write code without bugs?

replies(2): >>42734159 #>>42734288 #
2. eggnet ◴[] No.42734159[source]
Then the programming language becomes natural language and you’ll have to be very good at describing what you want. Unless you are talking about AGI, aka, the singularity. Which is a whole other topic.
replies(1): >>42734316 #
3. hackable_sand ◴[] No.42734288[source]
You cannot write code without bugs.
replies(1): >>42734678 #
4. gunian ◴[] No.42734316[source]
not AGI at that point all human jobs can be replaced that's my personal bar at least

i'm thinking like models get small enough, you fine tune them on your code, you add fuzzing, rewriting

it may not be bug free but could it become self healing with minimal / known natural language locations? or instead of x engineers one feeds the skeleton to chatgpt 20 or something and instead of giving you the result immediately it does it iteratively would still be cheaper than x devs

5. manmal ◴[] No.42734678[source]
I‘d say, you cannot write _interesting_ code without bugs.
replies(1): >>42734787 #
6. hackable_sand ◴[] No.42734787{3}[source]
You know what

One man's bug is another man's feature

replies(1): >>42734961 #
7. jononor ◴[] No.42734961{4}[source]
Sure. And some of those people are black hats ;)
replies(1): >>42735034 #
8. gunian ◴[] No.42735034{5}[source]
modern freedom fighters Abe Lincoln couldn't compare :)