News for hackers. Stuff that matters.
Re:AI-enhanced development makes me more ambitious with my p... by Thorentis on Friday March 31, 2023 @03:41AM (#35383914)
You can't read API calls and know if they're real, or if the function names are plausible but non existent. This is the problem with GPT. It creates great sounding possible APIs, but has no idea which APIs actually exist.
Re:AI-enhanced development makes me more ambitious with my p... by simonw on Friday March 31, 2023 @03:50AM (#35383977)
That's the great thing about using GPT for code - unlike factual knowledge, it's very easy to confirm if the code it wrote had errors or not: you run it.

The you test it manually with a few more inputs, then you write some automated tests for it (maybe with GPT's assistance).

Re:AI-enhanced development makes me more ambitious with my p... by politician on Friday March 31, 2023 @09:50AM (#35387147)
You can put AI in an iteration loop with a compiler and have it bake a functional test suite overnight. It’s a TDD practitioner’s dream.
Re:AI-enhanced development makes me more ambitious with my p... by withinboredom on Friday March 31, 2023 @09:55AM (#35387213)
Oh. Now that is pretty slick
Re:AI-enhanced development makes me more ambitious with my p... by macintux on Friday March 31, 2023 @12:10PM (#35389241)
“Ran this with no errors, works great” is how you end up with Microsoft exposing everyone’s personal email via Bing.
Re:AI-enhanced development makes me more ambitious with my p... by IanCal on Friday March 31, 2023 @07:34AM (#35385476)
> You can't read API calls and know if they're real, or if the function names are plausible but non existent

Why not? And if I miss them, my editor, compiler or general testing should pick that up.

Re:AI-enhanced development makes me more ambitious with my p... by satvikpendem on Friday March 31, 2023 @09:02PM (#35395898)
Yeah, I think many people are using them for dynamically typed languages like Python or Ruby, not Rust or TypeScript. If it's the latter, your compiler will automatically find the errors for you.
Re:AI-enhanced development makes me more ambitious with my p... by satvikpendem on Friday March 31, 2023 @09:01PM (#35395895)
If you use a dynamically typed language like Python or Ruby, sure. I use it for Rust and the compiler immediately catches any errors. Just one more reason I don't use dynamically typed languages.