option
Home
News
X's Grok Surpasses Expectations in AI Coding Tests

X's Grok Surpasses Expectations in AI Coding Tests

April 17, 2025
247

X

When X first launched its chatbot, it was tucked behind a paywall. But, as the saying goes, there ain't no such thing as a free lunch (TANSTAAFL), until recently when X decided to open up Grok to everyone. Curious about its capabilities, I decided to put it through my programming tests.

I've always had a soft spot for Grok, thanks to its name, which was coined by Robert Heinlein, one of my all-time favorite sci-fi authors. Heinlein's works played a significant role in shaping my young mind. My parents, who were quite strict about the media I consumed, allowed me to dive into science fiction at our local library, under the assumption that anything labeled as 'science' must be educational.

Heinlein's stories were not just entertaining; they were thought-provoking, challenging societal norms and weaving in scientific themes with social commentary. The term "grok," introduced in *Stranger in a Strange Land*, embodies a deep, fundamental understanding, making it a fitting name for an AI chatbot.

However, there's a catch...

When I inquired about the large language model (LLM) Grok uses, it mentioned being inspired by the wit and rebelliousness of *Hitchhiker's Guide to the Galaxy*. While *Hitchhiker's* certainly has its charm, it doesn't actually use the term "grok." But let's move on to the programming tests.

1. Writing a WordPress Plugin

This test required the AI to demonstrate PHP programming skills and knowledge of WordPress plugin development. It stemmed from a real-life request from my wife, who needed a tool to randomize names for her e-commerce site's monthly involvement device. The twist was that some users could have multiple entries, so the randomizer needed to ensure these names weren't placed side by side.

The code also had to be user-friendly, allowing her to simply paste names, click a button, and get her list. Grok passed this test with flying colors. The interface was clean, functional, and did exactly what it was supposed to do.

2. Rewriting a String Function

The second test involved fixing a user-reported issue with a function meant to validate dollar and cent amounts. My original code only accepted integers, so $5 was valid, but $5.25 wasn't. Grok rewrote the regular expression, coming close to a win. However, it failed to recognize numbers like .5 as valid currency, and it used an inefficient method with double conversions. So, it's a loss on this one.

3. Finding an Annoying Bug

This test required understanding the WordPress framework and API to pinpoint a subtle bug. Many LLMs, including myself initially, struggled with this. But Grok nailed it, providing a correct and useful solution. That's two wins out of three.

4. Writing a Script

The final test was a challenging one, requiring knowledge of Keyboard Maestro, a niche Mac scripting tool, and the ability to write code for multiple environments simultaneously: Keyboard Maestro, Chrome, and AppleScript. Only Google Gemini and ChatGPT with GPT-4 or higher had passed this test previously. Grok, however, aced it, securing three wins out of four.

Final Thoughts

Grok held up well in these tests. If it had just allowed currency values without a leading zero, it would have been perfect. Despite my mixed feelings about the changes at X since it replaced Twitter, Grok has proven to be a robust chatbot, especially in terms of programming skills.

What's your take on Grok? Have you tried it out? And what about *Stranger in a Strange Land* or *Hitchhiker's Guide to the Galaxy*? Share your thoughts in the comments below. So long, and thanks for all the fish!

Related article
Stripe to Acquire OpenRouter as AI Model Routing Gains Momentum Stripe to Acquire OpenRouter as AI Model Routing Gains Momentum Stripe has agreed to acquire OpenRouter, an AI model-routing platform that gives developers access to hundreds of models through a single interface. The deal adds model selection and routing to Stripe’s existing work around AI usage and token-based b
Former OpenAI Researcher Barrett Zoph Returns to Google to Support Gemini Development Former OpenAI Researcher Barrett Zoph Returns to Google to Support Gemini Development Barret Zoph, who previously abruptly left and joined OpenAI due to a disagreement with Thinking Machines Lab CEO Miriam Mularati, has once again changed employers. Alphabet's Google announced that Zoph will return as Vice President of Research, bring
How Recursive Intelligence Raised $335M at $4B Valuation in 4 Months How Recursive Intelligence Raised $335M at $4B Valuation in 4 Months The co-founders of startup Ricursive Intelligence seemed destined to be co-founders.Anna Goldie, CEO, and Azalia Mirhoseini, CTO, are so well-known in the AI community that they were among those AI engineers who “got those weird emails from Zuckerber
Related Special Topic Recommendations
Design & Art Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster
Top AI Illustration Tools: Create Editorial Scenes and Cover Art Faster

2026 Latest Top-rated AI Illustration Tools: Our curated list features the best powerfully designed tools for creating stunning editorial scenes and eye-catching cover art quickly. Each option has gone through rigorous real-world tests, offering a free vs paid comparison to help you find the perfect match for your workflow. Try these must-try solutions today to unlock your AI edge and boost your creative productivity. Explore now at XIX.AI.

10 tools
xix.ai
Education and Learning Top AI Tutors for Exam Prep: Practice Math, Science, and English
Top AI Tutors for Exam Prep: Practice Math, Science, and English

2026 Latest Top-Rated Best AI Tutors for Exam Prep are here on XIX.AI! Our curated list features powerful game-changing tools that offer free vs paid comparison, real-world tests, and weekly updated rankings. They help boost your writing efficiency, simplify complex topic learning, and unlock your academic potential. Explore now to Discover your perfect exam prep tool and Start creating today to Unlock your AI edge!

10 tools
xix.ai
Finance AI Budget Planning Tools for Personal Money Management
AI Budget Planning Tools for Personal Money Management

2026 Latest Best Top-Rated AI Budget Planning Tools for Personal Money Management are here on XIX.AI! This curated collection features powerful, game-changing solutions that help you conduct real-world tests, understand spending habits, and create personalized plans to boost productivity. Enjoy a free vs paid comparison along with detailed rankings. Must-try tools designed to simplify money management and unlock your AI edge. Explore now!

11 tools
xix.ai
Health & Wellness AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits
AI Sleep Tracking Assistants: Improve Recovery with Better Bedtime Habits

2026 Latest Best Top-Rated AI Sleep Tracking Assistants curated for ultimate recovery. This fully updated weekly guide features powerful tools that deliver real-world tests, free vs paid comparison, and detailed rankings to help you find the must-try solution that boosts sleep quality and supports better bedtime habits. Explore now at XIX.AI to Unlock your AI edge.

10 tools
xix.ai
Data Analysis AI SQL Copilots for Product and Revenue Analytics
AI SQL Copilots for Product and Revenue Analytics

2026 Latest Best Top-Rated AI SQL Copilots for Product and Revenue Analytics! XIX.AI has curated a powerful, game-changing collection of must-try tools that undergo real-world tests through weekly updated rankings. These tools help users boost productivity significantly by accelerating data analysis, streamlining complex queries, and generating accurate insights to drive smarter business decisions. Explore now to Discover your perfect tool for unlocking your AI edge!

14 tools
xix.ai
Education and Learning Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers
Best AI Homework Helpers That Teach: Learn Concepts, Not Just Answers

2026 Latest Best Top-Rated AI Homework Helpers That Teach Core Concepts Not Just Answers Powerful Tools for Students Must-Try Curated List Weekly Updated Free vs Paid Comparison Real-World Tests Accurate Rankings to Help You Unlock Your Full Learning Potential Explore now to Discover your perfect tool for smarter studying.

10 tools
xix.ai
Comments (23)
0/500
SamuelEvans
SamuelEvans August 27, 2025 at 11:01:28 AM EDT

Grok's coding skills blew me away! 😮 I threw some tricky Python problems at it, and it nailed them faster than my old CS prof. Makes me wonder if AI like this will soon be pair-programming with us at work. What's next, Grok writing my entire app?

JosephScott
JosephScott August 22, 2025 at 9:01:25 PM EDT

Wow, Grok's coding skills are seriously impressive! I tossed some tricky Python problems at it, and it nailed them faster than my old professor could grade papers. Makes me wonder if it'll start writing my apps for me soon! 😎

EdwardJackson
EdwardJackson July 27, 2025 at 9:20:21 PM EDT

Grok's coding skills blew me away! 😮 I tossed some tricky Python problems at it, and it nailed them faster than my old prof could grade papers. X opening it up for free feels like a game-changer—wonder how long it'll stay this good before they slap a paywall back on?

WalterLee
WalterLee April 20, 2025 at 7:43:55 AM EDT

ग्रॉक की कोडिंग क्षमता अद्भुत है! ऐसा लगता है जैसे मेरे पास एक सुपर स्मार्ट दोस्त है जो इंसानों से बेहतर कोड करता है। मैंने अपने टेस्ट से इसे चेक किया और यह सभी में पास हो गया, बिना किसी परेशानी के! बस काश यह कभी-कभी जल्दी जवाब देता। फिर भी, किसी भी कोडर के लिए जरूरी है! 🚀

JonathanKing
JonathanKing April 20, 2025 at 6:14:26 AM EDT

¡Las habilidades de codificación de Grok son increíbles! Es como tener un amigo superinteligente que programa mejor que la mayoría de las personas. Lo probé con mis tests y pasó todos sin problemas. Solo desearía que respondiera más rápido a veces. Aún así, esencial para cualquier programador! 🚀

BruceClark
BruceClark April 19, 2025 at 7:37:49 AM EDT

Grokのコード能力は驚異的です!まるで人間のコードを超える友達がいるようです。自分のテストで試してみたら、全て完璧にこなしました。ただ、返事がもう少し早ければいいのに。でも、コーダーには必須のアプリですね!🚀

OR