DEV Community

Cover image for The Best Assistant for Coding: Gemini, ChatGPT, or DeepSeek?
Stuxint
Stuxint

Posted on

The Best Assistant for Coding: Gemini, ChatGPT, or DeepSeek?

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:

Image description

2. ChatGPT's:

Image description

3. DeepSeek's (Sorry about image, had trouble combining website screenshots into one thing):

Image description

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})
Enter fullscreen mode Exit fullscreen mode

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!")

Enter fullscreen mode Exit fullscreen mode

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>

Enter fullscreen mode Exit fullscreen mode

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✌️✌️✌️!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

πŸ‘‹ Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay