Programming and AI...

Programming and AI...

ChatGPT. I was checking what the hubbub was about AI code generation. Did a simple, base expirement with ChatGPT.

First, I asked it to generate code in C that would add two numbers input by a user. It generated the following Code,

Code without validation

It explained the code, And wait for it.... notified me that the code does not have Input Data Validation. (love it!!!).

Code explanation and warning.

Ok, Smarty Pants, I thought, if you are smart enough to see the lack of data validation, generate a robost code then.


So next, requested code for same senario but with added numeric validation on the user input. It resonded with

No alt text provided for this image

along with the complete explanation of the code. Color me Impressed!!!


Epiphany!! It will be long time before we need to worry about SkyNet taking over the Terminators and fighting humanity. But if we are not using AI to Validate Software, look for Vulnerabilities, and get suggestions on fixing, then we are missing a huge opportunity.

Any Feedback?

Elena Arzamas

Search Engine Optimization Team Lead – Kolos Digital

1 年

Praveen, thanks for sharing!

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了