ChatGPT is an Artificial Intelligence Application designed to write code, giving users the chance to create powerful code quickly and efficiently. It has been proving its capabilities, showing both its strengths and weaknesses online with several tests.
This article is built around the same idea of testing ChatGPT’s coding knowledge on the classic “Hello, World” assignments in the twelve popular languages that were ranked and made famous by O’Reilly Media in 2023. A slight alteration was added by making it output “Good morning,” “Good afternoon,” or “Good evening,” before bringing up ten lines containing the loop index and the words “Hello, world!” to check the time and program flow.
To gain more knowledge of the programming languages that ChatGPT can work with and distinguish the primary use and differentiating factor between each of them, a one sentence description describing the primary use and differentiating factor was written for Java, Python, Rust, Go, C++, JavaScript, C#, C, TypeScript, R, Kotlin, and Scala.
ChatGPT responded by providing 12 codes as well as an additional brief description of each language with a reference that shows the differences and highlights the integral features of each language. The code was then tested for accuracy, and for the first language – Java, for example – ChatGPT described it as a general purpose language used primarily for the building of desktop, web, and mobile applications, and known for its ‘write once, run anywhere’ philosophy. It also added an additional note, explaining how Oracle bought Sun Microsystems and thus Java, leading to some spectacular legal fireworks over the years.
Some of the results were impressive, as ChatGPT managed to make a concise one-line code for some of the languages like Python, while others may still be in the debugging stage like Scala. Regardless, this exercise shows the potential of ChatGPT’s coding capabilities, as it is able to provide basic programming with minimal effort on the part of the user.
ChatGPT’s code writing abilities prove invaluable for developers, especially those working remotely with limited time and resources. The AI application can generate codes faster, meaning that developers can focus on more critical areas and benefit from tasks done quickly.
Google (who is the owner of the programming language Go) and Microsoft (who has C#) are credited for creating proprietary technologies, often being the choice for predominantly-Microsoft environments. But Microsoft’s TypeScript offers a different route from open source and non-proprietary.
As an overall conclusion, ChatGPT’s AI coding technology has potential to be an essential tool for developers and a powerful addition to many projects. However, it needs to be thoroughly tested for accuracy to assure functionality, efficiency, and security.