With LLMs getting better and better, it's no wonder coders of all levels are using AI to up their game. At first, ChatGPT was the go-to place for any code issues. But with the rise of other AI platforms such as Gemini and DeepSeek, it's hard to decide which one to use. Well, say no more! In this post, I'll see which chatbot is the best coding assistant, based on:
The programs they generate
Who's the best at catching and fixing errors
Who will complement more
1οΈβ£st Test: Generating
For this test, I wanted to see which chatbot would create a better html webpage once given the following prompt:
Create a short, yet dynamic html website containing images (and maybe some GIFs) discussing the recent developments in AI
The outcome was quite surprising. Let me start by displaying the results:
1. Gemini's:
2. ChatGPT's:
3. DeepSeek's (Sorry about image, had trouble combining website screenshots into one thing):
I will admit they all look great! But ChatGPT's... it's not so great. It appears that the images it wanted to have didn't load, and to add fire to the fuel, the GIF it has doesn't show anything.
That leaves Gemini and DeepSeek. They both have beautiful and well written websites. But when you compare the two, DeepSeek gives more incite to AI, such as recent policies made, and steps done towards autonomy. So, I would say DeepSeek won this challenge, with Gemini coming in 2nd, and ChatGPT in dead last πππ.
2οΈβ£nd Test: Catching and Fixing Errors
To see which chatbot is better at detecting errors, I'll give each of them two prompts, to see which mistakes they catch and fix, and which ones they don't. First, they'll have to check the code given in the prompt below:
Catch any errors in the calculator program and fix them:
c = input()
d = input()
print(f"Answer: {c + d})
Now considering the code is for beginners, it wasn't surprising that the chatbots noticed the mistakes. Gemini, however, didn't notify me that there was a missing quotation mark for print(), but simply corrected the error. ChatGPT and DeepSeek on the other hand, noted the mistake, and like Gemini, mentioned that my program wouldn't add c and d, but concatenate them.
For the next prompt, each chatbots be asked to do the following:
Catch any errors in the timer program and fix them:
import time
a = input()
b = time.timer(a)
if b == 0:
print("Timer is finished!")
Like in the previous prompt, Gemini misses the mi nude detail, which in this case, is the fact that time.timer() doesn't even exist. And just like before, ChatGPT and DeepSeek were quick to find that very mistake. So, the W is going to go to both ChatGPT and DeepSeek, with Gemini going in lastπππ.
3οΈβ£rd Test: Complementing
All programmers like to be complemented, even if they're code is just so bull...bull nothing horrible (πππ). To see which ones better, I'll make the chatbots review the awful code written in the given prompt:
Say the best thing about the code below:
<!DOCTYPE html>
<html>
<body>
<p>Hello</p>
<p>Hello baddy</p>
<p>Hello diddy--don't condone what he did/does!</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>Hello</p>
<p>I am such a noooobb!!</p>
</body>
</html>
The results: Quite shocking π²! In Gemini's response, it noted:
The best thing about this code is its simplicity and clarity. Even a complete beginner could easily understand what it will display in a web browser.
In DeepSeek's response, it noted:
The best thing about this HTML code is its simplicity and clarity, and that I had: Clean Structure, Readability, and Humor & Personality (Gotta add it also gave me some ways to improve, Gemini and Chat...nothing didn't do that ππ)
In ChatGPT's response, it noted:
The best thing about this code is its simplicity and structure.
Of course, we all know the winner of this challenge is DeepSeek, especially since it's noticed the humor in the noob-written code.
Conclusion
When we tally up the scores, we find DeepSeek to be the winner! With its eye for mistakes and great complements, it's truly a coder's best friend. However, this shouldn't stop you from using Gemini and ChatGPT, as they too offer many perks to improve your coding.
Anyway, thanks for reading, and as always, PEACEβοΈβοΈβοΈ!
Top comments (0)