| ▲ | cheema33 8 hours ago | ||||||||||||||||||||||
This is how you do things if you are new to this game. Get two other, different, LLMs to thoroughly review the code. If you don’t have an automated way to do all of this, you will struggle and eventually put yourself out of a job. If you do use this approach, you will get code that is better than what most software devs put out. And that gives you a good base to work with if you need to add polish to it. | |||||||||||||||||||||||
| ▲ | overgard 6 hours ago | parent | next [-] | ||||||||||||||||||||||
I actually have used other LLMs to review the code, in the past (not today, but in the past). It's fine, but it doesn't tend to catch things like "this technically works but it's loading a footgun." For example, the redux test I was mentioning in my original post, the tests were reusing a single global store variable. It technically worked, the tests ran, and since these were the first tests I introduced in the code base there weren't any issues even though this made the tests non deterministic... but, it was a pattern that was easily going to break down the line. To me, the solution isn't "more AI", it's "how do I use AI in a way that doesn't screw me over a few weeks/months down the line", and for me that's by making sure I understand the code it generated and trim out the things that are bad/excessive. If it's generating things I don't understand, then I need to understand them, because I have to debug it at some point. Also, in this case it was just some unit tests, so who cares, but if this was a service that was publicly exposed on the web? I would definitely want to make sure I had a human in the loop for anything security related, and I would ABSOLUTELY want to make sure I understood it if it were handling user data. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | summerlight 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
The quality of generated code does not matter. The problem is when it breaks 2 AM and you're burning thousands of dollars every minutes. You don't own the code that you don't understand, but unfortunately that does not mean you don't own the responsibility as well. Good luck on writing the postmortem, your boss will have lots of question for you. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | timcobb 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
> you will struggle and eventually put yourself out of a job. We can have a discussion without the stakes being so high. | |||||||||||||||||||||||
| ▲ | 3kkdd 8 hours ago | parent | prev [-] | ||||||||||||||||||||||
Im sick and tired of these empty posts. SHOW AN EXAMPLE OF YOU ACTUALLY DOING WHAT YOU SAY! | |||||||||||||||||||||||
| |||||||||||||||||||||||