Reported that when requesting a WordPress plugin for ChatGPT, work that took several days was completed in 5 minutes



The chat AI '

ChatGPT ' is growing rapidly, reaching 100 million monthly users in February 2023. The high accuracy has been reported in various cases. David Gewarts , a policy adviser and computer scientist involved in American technology and national security policy, has newly reported that ``ChatGPT created a WordPress plugin in 5 minutes,'' and said, ``Attractive, wonderful, and scary. It's something,' he commented.




I asked ChatGPT to write a WordPress plugin I needed.
https://www.zdnet.com/article/i-asked-chatgpt-to-write-a-wordpress-plugin-i-needed-it-did-in-less-than-5-minutes/

The chatbot 'ChatGPT' developed by OpenAI can respond to questions from humans very naturally, so it can be used for homework support and exam practice, and even experts can write the gist of the paper on ChatGPT. It is often talked about for its high accuracy, such as being unable to distinguish between the two, and obtaining passing scores in college-level free-text exams , final exams for master's degree in business administration (MBA), and law school exams . increase. In addition to such question-and-answer sessions, there are authors who have written novels using AI, and ChatGPT has been listed as one of the authors of research papers, showing creative work.

Interview with a writer writing a novel on 'ChatGPT' about what happened when AI was used, one question and one answer about how to write a novel with AI and ethical issues - GIGAZINE



Mr. Gewarts, a computer scientist, says that Mr. Gewarts' wife owns a WordPress-based e-commerce site and uses a paid external tool to 'select a random name from a Facebook customer group' every month. Since I was having a hard time, I thought that I could easily do the same work by creating a WordPress plugin and installing it on the site. However, in order to create a WordPress plugin independently, it takes several days to create user interface elements and logic code even for a simple plugin, so it was difficult for Mr. Gewarts who was busy. .

Therefore, not only is it possible to have a natural text-based conversation , but it is also very good at coding. Mr. Gewarts experimentally used ChatGPT, which was also reported to pass as an engineer.

Mr. Gewarts first investigated whether the correct question could be asked for the desired answer by entering a basic prompt (instruction) into ChatGPT, and whether ChatGPT worked well for the purpose. A PHP8-compatible WordPress plugin that provides a text input field into which a list of rows can be pasted, and a button that, when clicked, randomizes the rows in the list and displays the result in a second text input field, according to Gewarts. Create', the code like the image below was generated. I copied this code into a file with the extension '.php', placed it in a folder with the correct root name, zipped it, and uploaded it to my wife's server, and it actually worked.



In addition, according to his wife's request, Mr. Gewarts added the condition that ``the same name does not stick with the roulette used for random selection'' and the command ``remove blank lines'', and changed the number of lines in the input and output fields. I did some additional work, such as displaying it. As a result, Mr. Gewarts said, ``There were points such as the inability to sanitize to prevent hackers from entering data that could destroy the site, and the position of the summary line was misaligned, but overall The code quality was clean.' On the other hand, there are also points to keep in mind, such as the fact that ChatGPT was made to create a fairly simple plugin this time, and that ChatGPT is not good at 'maintenance of code', which is important when operating. I am emphasizing.

When Mr. Gewarts tweeted that he created a plugin using ChatGPT, he commented on the concerns that ``AI may embed malicious information in the plugin'' and ``Is it really good code?'' However, Mr. Gewarts responded, ``It's the same when you ask a human to be scrutinized by a trusted person.Also, the code doesn't always have to be the best. As far as we have scrutinized, ChatGPT's code was fine and good enough.'

Also, in response to the concern that ``If ChatGPT can do enough coding, it may take away human jobs,'' ``it will almost certainly be,'' Gewarts replied. Mr. Gewarts himself was amazed at the excellence of the plugins he made ChatGPT create, saying, 'As long as clients want code and writing from excellent programmers and excellent writers, AI will take away jobs. It takes time, but if you're just looking for productivity, that's not the limit, and that's what I'm worried about.'

in Posted by log1e_dh