(no title)
hugocbp | 1 year ago
But anything more complex and it is very hit or miss. I'm trying now to use GPT-4 Turbo to write some integration tests for some Go code that talks to the database and it is mostly a disaster.
It will constantly mock things that I want tested, and write useless tests that do basically nothing because either everything is mocked or the setup is not complete.
I'm settling in using it for tests for those small, pure functions, and more using it as a guide to find possible bugs / edge cases in more complex cases, then writing the tests myself and asking it in another prompt if they would cover those cases.
As most people that actually use AI heavily these days, I think the usefulness of AI for coding increases a lot if you already have a pretty good grasp of the subject and the problem space you are working on. If you already know roughly what you want and how to ask, they can be a huge time saver on the smaller and simpler things.
acedTrex|1 year ago
dartos|1 year ago
I like having it translate config formats too. A series of env vars to a yaml or toml or something
afro88|1 year ago