Article Preview
Buy Now
FEATURE
Can ChatGPT Write Xojo Code?
Testing Out AI Code-Generation
Issue: 21.4 (July/August 2023)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 19,856
Starting Page Number: 21
Article Number: 21403
Resource File(s):
project21403.zip Updated: 2023-07-03 09:54:47
Related Link(s): None
Excerpt of article text...
I was skeptical on the idea that ChatGPT could write code, so I decided to test it.
The first thing I learned is that you can't expect ChatGPT to generate a Xojo project file and the whole program finished. It isn't going to do all your work for you—you'll have to connect the parts, create the UI, debug, and polish, so there's a fair amount left to do. You'll definitely need to be proficient in coding to use it.
It also can make errors that are difficult to find, especially if you don't understand the code.
But AI can definitely help with certain ideas, give you example code that you can refine, or finish little parts you find challenging or tedious. It could be a great way to get a project started, to create prototypes more quickly, or to solve tricky aspects of your program.
Finally, note that talking to ChatGPT—the "prompt" you generate—is a skill in itself. The better your question, the better your answer. I haven't had enough experience with it to know what I'm doing, so it's quite possible one could get better results than I did if you know what you're doing.
, so expect to have to do a fair amount on your own.
...End of Excerpt. Please purchase the magazine to read the full article.