Dev rail guards against ChatGPT manufactured code— as of Jul 2024

Deepak Chaudhary
2 min readJul 10, 2024

--

Photo by Stephen Hocking on Unsplash

What is ChatGPT and what it is not — is not the context of this story. Many organizations are enabling higher developer productivity with tools such as ChatGPT. Yes, in my opinion it is nothing more then a tool — a shiny, possibly over-marketed tool — which in fairness is good enough to enable or assist increased developer productivity. Ofcourse, what future holds for us, no one knows. Now, with all the hallucinations and adhoc unpredictable nature, what rail-guards as developers can we put in-place so we can enjoy better success with it?

From my personal experience, I believe automated test cases and practices such as TDD will be even more crucial then ever. The more we can arm our codebases with good, quality automated test-cases — that much we can safeguard against any side-effects of tool generated code. Will ChatGPT learn patterns using these test-cases knowledge base and improve… I guess we will find out in next 6 months or so…..

Feel free to share your thoughts about how you effectively and efficiently utilize tools as ChatGPT and others. Learning is a life long journey, let us keep supporting each other by sharing our knowledge. Thank you for reading this quick article.

--

--