Global Feed Post Login
Replying to Avatar jb55

One of things i find myself doing a lot these days is getting chatgpt to write a function and then using another chat instance to check the code. I’ll do this over and over until all the bugs are caught. Since each chat is like a new code reviewer it often finds all of the bugs after many iterations.

I’ll even give the code review from one of the AIs to the one who wrote the code, it will then give a different implementation based on the ai review. I then give that implementation to the reviewers implementation and ask if its better or not. I can very quickly get to an optimized and less buggy function this way.

This feels very *human*. This is exactly how code review tends to play out in meatspace.

Demo:

https://chat.openai.com/share/a3ac3201-eee8-4d69-9671-e1e8dd9c2917

https://chat.openai.com/share/21c189a6-f29e-4e31-b163-5f009cc48e1b

Avatar
techfeudalist 2y ago

I do this too.

I’ve changed my process to first start with writing and critiquing the tests and then getting the AI windows to write and critique the functions.

It seems the AIs excel at test driven development. Code coverage far higher than I would do on my own.

Reply to this note

Please Login to reply.

Discussion

No replies yet.