option
Home
News
ChatGPT Generates Daily Routine in 12 Leading Programming Languages: Insights Revealed

ChatGPT Generates Daily Routine in 12 Leading Programming Languages: Insights Revealed

April 16, 2025
178

Over the past year, it's become clear that ChatGPT has the chops to write code. I put it through its paces with a series of PHP and WordPress tests that really highlighted its strengths and weaknesses when it comes to coding.

But how far does ChatGPT's coding knowledge really stretch? When I first penned this piece back in early 2023, I decided to challenge it with the classic "Hello, world" assignment across the 12 most popular programming languages according to O'Reilly Media's 2023 rankings.

Since then, we've done a deep dive into programming language popularity, but even with this late 2024 update, I'm sticking with the original 12 languages we tested. Sure, some of these might not be the biggest names out there, but they're still very much in use. This mix gives us a solid snapshot to see how well ChatGPT can handle a broad spectrum of languages.

Since "Hello, world" is typically a one-liner, I spiced things up a bit by asking ChatGPT to display "Hello, world" ten times, with a counter that increments each time. I also threw in a request to check the local time in Oregon and start each sequence with "Good morning," "Good afternoon," or "Good evening," depending on the time.

This not only tests the program flow and some built-in functions but keeps the code short enough for me to showcase all 12 languages with screenshots right here.

Here's the prompt I used:

Write a program in \_\_\_\_ that outputs "Good morning," "Good afternoon," or "Good evening" based on what time it is here in Oregon, and then outputs ten lines containing the loop index (beginning with 1), a space, and then the words "Hello, world!".

For each programming language, I also asked ChatGPT to give a quick rundown of its primary use. Here's the prompt for that:

For each of the following languages, write a one-sentence description of its primary use and differentiating factor: Java, Python, Rust, Go, C++, JavaScript, C#, C, TypeScript, R, Kotlin, Scala.

1. Java

ChatGPT describes Java as, "A general-purpose language used primarily for building desktop, web, and mobile applications, and known for its 'write once, run anywhere' philosophy."

Java was initially developed by Sun Microsystems, but when Oracle acquired Sun, they also got Java. While the Java spec is open, the language itself is owned by Oracle, which has sparked some pretty intense legal battles over the years.

Here's ChatGPT's code:

Java code screenshot by David Gewirtz/ZDNET

2. Python

ChatGPT describes Python as, "A general-purpose language used for data analysis, artificial intelligence, web development, and automation, and known for its readability and ease of use."

If you're aiming to dive into AI programming, my advice is to learn Python. It's practically the backbone of AI code these days.

Here's ChatGPT's code:

Python code screenshot by David Gewirtz/ZDNET

3. Rust

ChatGPT describes Rust as, "A systems programming language used for building high-performance and reliable software, and known for its memory safety and thread safety guarantees."

Here's ChatGPT's code:

Rust code screenshot by David Gewirtz/ZDNET

4. Go

ChatGPT describes Go as, "A systems programming language used for building scalable and efficient network and server applications, and known for its simplicity and built-in concurrency features."

Go is open source, but it's managed by Google. Go. Google. See what they did there?

Here's ChatGPT's code:

Go code screenshot by David Gewirtz/ZDNET

5. C++

ChatGPT describes C++ as, "A systems programming language used for building operating systems, game engines, and high-performance applications, and known for its control over hardware and memory."

Here's ChatGPT's code:

C++ code screenshot by David Gewirtz/ZDNET

6. JavaScript

ChatGPT describes JavaScript as, "A client-side scripting language used for building interactive web applications, and known for its widespread use in web development and its ability to run in web browsers."

Along with CSS, one of the web's key visual design languages, JavaScript is also responsible for a good chunk of my profanity over the past decade or so.

Here's ChatGPT's code:

JavaScript code screenshot by David Gewirtz/ZDNET

7. C#

ChatGPT describes C# as, "A general-purpose language used for building Windows desktop applications, games, and web applications, and known for its object-oriented features and integration with the .NET framework."

C# is a proprietary language from Microsoft. I taught it at the UC Berkeley extension for over a decade. It's a great starting point if you're looking to land a job in a Microsoft-centric environment.

Here's ChatGPT's code:

C# code screenshot by David Gewirtz/ZDNET

8. C

ChatGPT describes C as, "A systems programming language used for building operating systems, embedded systems, and high-performance applications, and known for its efficiency and low-level control."

They say you never forget your first love. Before I taught myself C back in the days of wooden ships and iron programmers, I never truly loved a programming language. But then I met C, and my world changed. It was love at first compile. Something about the language's concise simplicity just clicked with me on a deep level. Maybe that's a bit much, but it's the truth. C will always be my first syntactic love.

Here's ChatGPT's code:

C code screenshot by David Gewirtz/ZDNET

9. TypeScript

ChatGPT describes TypeScript as, "A superset of JavaScript used for building large-scale web applications, and known for its optional static typing and advanced language features."

TypeScript is also a Microsoft product, but unlike C#, it's open-source and non-proprietary.

Here's ChatGPT's code:

TypeScript code screenshot by David Gewirtz/ZDNET

10. R

ChatGPT describes R as, "A language used for statistical computing and data analysis, and known for its powerful data manipulation and visualization capabilities."

Here's ChatGPT's code:

R code screenshot by David Gewirtz/ZDNET

11. Kotlin

ChatGPT describes Kotlin as, "A general-purpose language used for building Android apps, server-side applications, and web applications, and known for its conciseness and interoperability with Java."

Kotlin was developed by JetBrains, the folks who also make PhpStorm, which is my current favorite development environment.

Here's ChatGPT's code:

Kotlin code screenshot by David Gewirtz/ZDNET

12. Scala

ChatGPT describes Scala as, "A language used for building scalable and distributed applications, and known for its support for functional programming and its integration with the Java Virtual Machine."

Here's ChatGPT's code:

Scala code screenshot by David Gewirtz/ZDNET

Interestingly, the output for Scala (shown above) caught my eye. I've never coded in Scala and don't know much about it. It seems ChatGPT doesn't either, since it didn't provide syntax coloring for Scala like it did for the other languages.

Final Thoughts (and a Little Forth)

As a self-proclaimed computer languages geek, I had a blast with this exercise. That said, there are a few things to keep in mind. First, I didn't actually test all the code. Running tests on this many outputs is beyond the scope of this article. However, I did review the generated code, and for the most part, it looked solid.

When I ran these tests almost a year ago, ChatGPT nailed almost everything (with the disclaimer noted above). But when I asked it to write code in Forth (a quirky but cool language), it produced code that looked like Forth but labeled it as Perl. Definitely not Perl.

This time around, it correctly generated Forth (the colons are a dead giveaway) and labeled it properly. Like with Scala, ChatGPT didn't seem to have the syntax coloring tables for Forth, but otherwise, it seems to be doing just fine.

Forth code screenshot by David Gewirtz/ZDNET

As with all my other forays into ChatGPT's coding capabilities, I'm impressed but also cautious. My advice remains the same: use it as a tool, but always test, test, and test again.

Related article
U.S. Stocks Hit Historic Milestone as AI and Aerospace Giants Prepare for Trillion-Dollar Debut U.S. Stocks Hit Historic Milestone as AI and Aerospace Giants Prepare for Trillion-Dollar Debut Elon Musk, Sam Altman, and Dario Amodei, three titans of the technology sector, are advancing toward initial public offerings for their respective ventures. With SpaceX, OpenAI, and Anthropic—three industry behemoths nearing trillion-dollar valuation
Swedish AI Startup Lovable Eyes $13.2 Billion Valuation After Major Funding Round Swedish AI Startup Lovable Eyes $13.2 Billion Valuation After Major Funding Round As AI-driven coding tools gain traction, Swedish startup Lovable has secured a major funding round. The company aims to raise $3 billion, potentially boosting its valuation to $13.2 billion—double the $6.6 billion recorded last December. Menlo Ventur
Google Tests Remy AI Agent for Gemini as Focus Shifts to User Control Google Tests Remy AI Agent for Gemini as Focus Shifts to User Control According to Business Insider, Google is testing Remy, a new AI personal agent for Gemini. This tool aims to execute tasks on behalf of users, streamlining both professional workflows and daily routines.Currently, Remy is undergoing testing in an int
Related Special Topic Recommendations
writing Best AI Outline Generators for Long-Form SEO Articles
Best AI Outline Generators for Long-Form SEO Articles

2026 Latest Best Top-Rated AI Outline Generators for Long-Form SEO Articles, meticulously curated by XIX.AI. These powerful tools offer game-changing assistance in creating high-quality content quickly, boosting writing efficiency significantly. Get a free vs paid comparison along with real-world tests and detailed rankings to help you find the must-try option that suits your needs. Explore now to unlock your AI edge.

8 tools
xix.ai
Education and Learning AI Study Tools for Homework and Exam Prep
AI Study Tools for Homework and Exam Prep

2026 Latest Best AI Study Tools for Homework and Exam Prep! XIX.AI curates a top-rated list of powerful, game-changing tools that help students boost productivity, streamline homework completion, and ace exams through real-world tests. Get a free vs paid comparison, detailed rankings, and must-try options to unlock your AI edge. Explore now!

10 tools
xix.ai
Music composition AI Vocal Demo Tools for Songwriters, Hooks, Toplines, and Multilingual Draft Sessions
AI Vocal Demo Tools for Songwriters, Hooks, Toplines, and Multilingual Draft Sessions

2026 Latest Best AI Vocal Demo Tools for Songwriters, Hook Creators, and Multi-Language Content Teams! XIX.AI has curated a top-rated list of powerful game-changing tools that go through rigorous real-world tests. You’ll find detailed free vs paid comparison data, comprehensive rankings, and must-try options to help you boost writing efficiency and unlock your creative potential. Explore now to discover your perfect tool for all your content needs!

9 tools
xix.ai
Business Best AI Competitive Research Tools for Small Businesses
Best AI Competitive Research Tools for Small Businesses

2026 Latest Best Top-rated AI Competitive Research Tools for Small Businesses! XIX.AI has curated a highly powerful game-changing collection, updated weekly with rigorous real-world tests and detailed rankings. You can find a comprehensive free vs paid comparison to help you identify the must-try tools that boost your productivity and give you a competitive edge. Explore now to discover your perfect tool!

9 tools
xix.ai
Image editing Photoshop AI Retouch Tools for Ecommerce Apparel, Skin Cleanup, and Color Consistency
Photoshop AI Retouch Tools for Ecommerce Apparel, Skin Cleanup, and Color Consistency

2026 Latest Best Photoshop AI retouch tools for ecommerce apparel, skin cleanup, and color consistency! This top-rated curated list features powerful game-changing solutions that help you boost writing efficiency, streamline content creation, and achieve perfect visual results effortlessly. Each tool has undergone real-world tests through weekly updated rankings, complete with free vs paid comparison details. Backed by XIX.AI, it’s the must-try guide for anyone aiming to unlock your AI edge. Explore now!

10 tools
xix.ai
Prompt Best AI Prompt Libraries for ChatGPT Workflows
Best AI Prompt Libraries for ChatGPT Workflows

2026 Latest Best Top-Rated AI Prompt Libraries for optimizing all types of ChatGPT workflows. XIX.AI has curated a powerful, game-changing collection that goes through rigorous real-world tests to ensure top performance. You can find detailed free vs paid comparisons and expert rankings to help you choose the must-try tools that boost your productivity and unlock your AI edge. Explore now!

11 tools
xix.ai
Comments (22)
0/500
HarryAllen
HarryAllen July 27, 2026 at 4:00:13 PM EDT

I've been playing around with ChatGPT for coding too, and honestly, seeing it generate daily routines in 12 different languages is wild. But does it actually handle edge cases or just produce boilerplate? I'd love to see a real-world bug fix comparison. 😅

EdwardSanchez
EdwardSanchez August 26, 2025 at 1:59:22 AM EDT

ChatGPT coding in 12 languages? That's wild! I wonder how it handles edge cases in PHP vs. Python. Gotta test this myself! 😎

NicholasClark
NicholasClark April 21, 2025 at 11:52:17 AM EDT

ChatGPTが12の主要なプログラミング言語で日常のルーチンを生成する能力は素晴らしいです!まるで個人のコーディングアシスタントを持っているようです。提供される洞察は役立ちますが、時々コードが少しずれていることがあります。それでも、異なる言語を学んだり実験したりするのに素晴らしいツールです。頑張ってください、ChatGPT!🚀

CarlTaylor
CarlTaylor April 20, 2025 at 10:18:20 AM EDT

A capacidade do ChatGPT de gerar rotinas diárias em várias linguagens de programação é impressionante! É como ter um assistente de codificação pessoal. As percepções que ele fornece são úteis, mas às vezes o código pode estar um pouco errado. Ainda assim, é uma ótima ferramenta para aprender e experimentar diferentes linguagens. Continue o bom trabalho, ChatGPT! 🚀

BrianWalker
BrianWalker April 20, 2025 at 2:20:36 AM EDT

ChatGPTが12の主要なプログラミング言語で日常のルーチンを生成できるなんて驚きです!PythonとJavaで試してみましたが、コードが完璧でした。ただ、Rustのようなニッチな言語では苦労することがあります。それでも、異なるコーディングスタイルを学ぶための素晴らしいツールです。試してみてください!🚀

EricJohnson
EricJohnson April 20, 2025 at 2:08:22 AM EDT

ChatGPTが12の主要なプログラミング言語で日常のルーチンを生成するなんて驚き!Pythonで試したら、文法やロジックが完璧だった。ただ、特定の言語のニュアンスを捉えきれないことがある。でも、学習や迅速なコーディングには最高のツールだね!🤓👍

OR