2 ms·
I can only speak to my experience using ChatGPT. But it’s doing a lot more than copying and pasting code snippets it finds on the internet. It actually is tra
by scarface74 4y ago
I can only speak to my experience using ChatGPT. But it’s doing a lot more than copying and pasting code snippets it finds on the internet. It actually is translating English to code.
I had a “DevOps” project I was working on creating deployment process using AWS technologies (disclaimer: where I work in Professional Services). I needed a few relatively simple Python scripts.
I first asked ChatGPT:
“given a JSON file like this [{“company”:”${company}”} replace the word surrounded by ${} with the equivalent environment variables using Python”.
It worked perfectly. But it hardcoded the input file.
“Modify the script to accept the input file using a command line argument -json-file using argparse”
That worked and used the “required=true” parameter.
“Instead of skipping replacement if an environment variable is not found, raise an exception”.
And it seems to understand the AWS SDK. I told it to convert a script I wrote to a CloudFormation custom resource using the cfnresponse module and it knew the correct Lambda event structure, the event format etc.
I have seen reports and have witnessed it making up functions occasionally.
But, I believe with the right prompts, it should be able to create simple CRUD scripts.
- mellosouls 4y agoI understand what it is doing, and how impressive it is; the question is whether or not the normal use case is for stuff that requires the originality of thought that requires attribution, and I can't see that being the case except in a very small minority of instances.