Live data from Hacker News

Google CEO says more than a quarter of the company's new code is created by AI

businessinsider.com

571–580 of 1001 posts

Re: Google CEO says more than a quarter of the company's new code is created by AI

#572
I wanted a new feature in our customer support console and the dev lead suggested I write a JIRA. I’m the CEO, so this is not my usual thing (and probably should not be). I told Claude what I wanted and pasted in a .js file from the existing project so that it would get a sense of the context. It cranked out a fully functional React component that actually looks quite nice too. Two new API calls were needed, but Claude helpfully told me that. So I pasted the code sample and a screenshot of the HTML output into the JIRA and then got Claude to write me the rest of the JIRA as well.

Everyone knows this was “made by AI” because there’s no way in hell I would ever have the time. These models might not be able to sit there and build an entire project from scratch yet, but if what you need is some help adding the next control panel page, Claude’s got your back on that.

Re: Google CEO says more than a quarter of the company's new code is created by AI

#573
post #537

I work for Google, and I just got done with my work day. I was just writing I guess what you'd call "AI generated code." But the code completion engine is basically just good at finishing the lines I'm writing. If I'm writing "function getAc..." it's smart enough to complete to "function getActionHandler()", and maybe suggest the correct arguments and a decent jsdoc comment. So basically, it's a helpful productivity…

So this is basically the google CEO saying "a quarter of our terminal inputs is written by a glorified tab completion"?

Yeah, but he wants people to hear "reduce headcount by 25% if you buy our shit!"

Re: Google CEO says more than a quarter of the company's new code is created by AI

#575

Earlier quoted context omitted.

Do people find these AI auto complete things helpful? I was trying the XCode one and it kept suggesting API calls that don't exist. I spent more time fixing its errors than I would have spent typing the correct API call.

I often delete large chunks of it unread if it doesn't do what I expected. It's much like copy and paste; deleting code doesn't take long.

So your test is "seems to work"?

Re: Google CEO says more than a quarter of the company's new code is created by AI

#576

I work for Google, and I just got done with my work day. I was just writing I guess what you'd call "AI generated code." But the code completion engine is basically just good at finishing the lines I'm writing. If I'm writing "function getAc..." it's smart enough to complete to "function getActionHandler()", and maybe suggest the correct arguments and a decent jsdoc comment. So basically, it's a helpful productivity…

Do people find these AI auto complete things helpful? I was trying the XCode one and it kept suggesting API calls that don't exist. I spent more time fixing its errors than I would have spent typing the correct API call.

I use the one at G and it's definitely helpful. It's not revolutionary, but it makes writing code less of a headache when I kinda know what that method is called but not quite.

Re: Google CEO says more than a quarter of the company's new code is created by AI

#577

Earlier quoted context omitted.

I often delete large chunks of it unread if it doesn't do what I expected. It's much like copy and paste; deleting code doesn't take long.

So your test is "seems to work"?

No, what I meant is that, much like when copying code, I only keep the generated source code if it's written the way I would write it.

(By "unread" I meant that I don't look very closely before deleting if it looks weird.)

And then write tests. Or perhaps I wrote the test first.

Re: Google CEO says more than a quarter of the company's new code is created by AI

#578

It's Go. 25% of the code is just basic error checking and returning nil.

In Java, 25% of the code is import statements and curly braces

Over 3 imports from the same package - use an asterisk.

Re: Google CEO says more than a quarter of the company's new code is created by AI

#579
post #338

Earlier quoted context omitted.

In Java, 25% of the code is import statements and curly braces

You generally don’t write those by hand though. I’m pretty sure around 50% of the code I write is already auto-complete, without any AI.

Simply strech your definition of AI and voilá, you are writing it with AI.

Re: Google CEO says more than a quarter of the company's new code is created by AI

#580

I work for Google, and I just got done with my work day. I was just writing I guess what you'd call "AI generated code." But the code completion engine is basically just good at finishing the lines I'm writing. If I'm writing "function getAc..." it's smart enough to complete to "function getActionHandler()", and maybe suggest the correct arguments and a decent jsdoc comment. So basically, it's a helpful productivity…

This is exactly how I’ve used copilot for over a year now. It’s really helpful! Especially with repetitive code. Certainly worth what my employer pays for it.

The general public has a very different idea of that though and I frequently meet people very surprised the entire profession hasn’t been automated yet based on headlines like this.

Post reply on HN