News for hackers. Stuff that matters.
Re:Hacker plants false memories in ChatGPT to steal user dat... by afc on Wednesday September 25, 2024 @06:08AM (#41645647)
Not op, but for productivity, I'll mention one example: I use it to generate unit tests for my software, where it has saved me a lot of time.
Re:Hacker plants false memories in ChatGPT to steal user dat... by cowoder on Wednesday September 25, 2024 @06:20AM (#41645728)
Won't it generate tests that prove the correctness of the code instead of the correctness of the application? As in: if my code is doing something wrong and I ask it to write tests for it, it will supply tests that pass on the wrong code instead of finding the problem in my code?
Re:Hacker plants false memories in ChatGPT to steal user dat... by datadrivenangel on Wednesday September 25, 2024 @09:01AM (#41646992)
That's what a unit test does.
Re:Hacker plants false memories in ChatGPT to steal user dat... by MiddleMan5 on Wednesday September 25, 2024 @11:02AM (#41648301)
I use it for the same and usually have to ask it to infer the functionality from the interfaces and class/function descriptions. I then usually have to review the tests for correctness. It's not perfect but it's great for building a 60% outline.

At our company I have to switch between 6 or 7 different languages pretty regularly and I'm always forgetting specifics of how the test frameworks work; having a tool that can translate "intent to test" into the framework methods really has been a boon