ChatGPT is already “smarter”. I can ask ChatGPT for the answer to my very specific problem and it can answer it snd give me code.
For instance, I needed to write a simple script that gave me all of the roles containing a list of policies where you can specify multiple policies from the command line using “-p” multiple times.
If I look it up on Google, I get this response which is close enough
https://stackoverflow.com/questions/66127551/list-of-all-rol...
And I still have to make slight modifications.
Of course I could write the entire thing myself just by looking at the boto 3 docs.
But instead I told ChatGPT
“ Write a Python script that returns a comma separated list of arns of all AWS roles that contain policies I specify with the “-p” parameter using argparse”
Then I told it, “that won’t work with more than 50 roles”. It then corrected the script and used a paginator.
Yes, I had to know enough to recognize the bug. But I count have written or modified a Python script that fast and I write boto3 based Python scripts all of the time.
I definitely could have told it that the first version wasn’t returning all of the results and it would have corrected itself like it did and added a paginator