Further Nitpicking of GPT
chatGPT and its friends have been all over the news. One of its uses is to generate program code. In fact, this article even predicts it will replace programmers. Is your job in danger? I think, you're probably safe for a little while. I have seen chatGPT tools promoted as a way for non-coders to generate code without the pain of learning Python, JavaScript, or some other language. Like it's use for text generation, it does some thing reasonably well, However, I think programming noobs should be careful. I tried to generate some very simple code using the code-davinci-002 model. prompt = """write a python function that accepts a string and returns a dictionary with each letter in the text as key and the letter frequency as value""" Here's the code that makes the request. #!/usr/bin/env python # -*- coding: utf-8 -*- """ test_GPTcode.py - test GP# code generation author: Bill Thompson license: GPL 3 copyright:...