Sign In
  • U.S.
  • Canada
  • Australia
  • Dubai
  • UAE
  • Dominica
  • Spain
RCO News Logo Light RCO News Logo
  • Home
  • Immigration
    ca Quick guide to the first job for international students in Canada
    Canada

    2️⃣ Have a specific salary rangeOne of the first questions a career counselor or employer will ask you is:"How much…

    1 Min Read
    Get to know Ryazan University in Russia! Complete guide for 2026 study applicants
    promo
    Immigration

    Complete review of Ryazan universities for study applicants and educational immigrationStudying in Russia in recent years has become one of…

    11 Min Read
    ca PGWP golden tips that most Canadian students don’t know
    Canada

    🔟 Field of Study conditionThis condition applies to people who:are exempted:Other programs must be on the list of government-approved fields…

    1 Min Read
    ca
    Canada

    Example 2: Obtaining permanent residence through the Atlantic Immigration Program (AIP)Clara's Status: Clara is 24 years old and is working…

    2 Min Read
    A detailed comparison of Russia and China for education and immigration, an analytical and realistic guide to the decision that will shape your future
    promo
    Immigration

    Introduction Why is this comparison not simple? For many educational immigration applicants, choosing the destination country is no longer an…

    8 Min Read
    Check out more:
    • Canada
  • Travel
    Sights of Tabas From Kal Jeni to Cheshme Morteza Ali + photo
    River flow in Kal Jeni Valley
    Travel

    Tabas is a small city in the central plateau of Iran in South Khorasan province with a rich historical and…

    20 Min Read
    Parthian treasure in a postal envelope; Discovery of billions of coins
    Dubai News UAE News RCO News
    Travel

    Colonel Karam Hosni said: Following intelligence measures and timely monitoring by the intelligence police officers of Dereshahr city and with…

    1 Min Read
    When Tutankhamun’s amazing tomb was opened; The shocking narrative of the first reporter
    Two camels with sarabans on top of a sand hill in the deserts of Egypt
    Travel

    His burial goods were prepared to cement the king's power in the other world forever. This amount of treasure, which…

    14 Min Read
    Free tickets to Atlantis Water Park Dubai
    Dubai News UAE News RCO News
    Dubai

    Atlantis water park has a special offer for your birthday: a free water park ticket worth 355 dirhams! This ticket…

    1 Min Read
    The best places to visit in Samui 2026
    Introducing the island of Koh Samui, Thailand
    Dubai

    It is enough to see the sights of Samui on the island of Samui, Thailand once, and this beautiful tropical…

    22 Min Read
    Check out more:
    • Dubai
  • Technology
    The best tools for creating Farsi subtitles with artificial intelligence
    Farsi subtitles with artificial intelligence
    artificial-intelligence

    In recent years, one of the biggest challenges for content producers, especially in the field of video, has been the…

    21 Min Read
    Review of the film “Return to Silent Hill”; A big disrespect to the fans
    Pyramidhead
    artificial-intelligence

    Return to Silent Hill is terrifying…but not the good kind. Christopher Gans, the director of the 2006 film "Silent Hill",…

    12 Min Read
    Establishment of the first artificial intelligence banking assistant in Tehran University Science and Technology Park
    Dubai News UAE News RCO News
    artificial-intelligence

    "Adan" company located in Tehran University Science and Technology Park announced the development and launch of an intelligent banking assistant…

    4 Min Read
    America used artificial intelligence Claude in the operation to arrest Maduro
    Technology

    Anthropic's Claude AI model was reportedly used in the US military operation to capture Nicolás Maduro last month.There are moments…

    3 Min Read
    Introducing Geely Galaxy Cruiser; The Chinese attack on the territory of Mercedes G class and Defender
    Geely Galaxy Cruiser
    Gadgets

    Posted by: Poriya Hashempour February 25, 1404 at 12:23The Chinese company Geely plans to launch the Galaxy Cruiser off-road SUV…

    7 Min Read
    Check out more:
    • Artificial Intelligence
    • CryptoCurrency
    • Gadgets
  • Fashion
    FashionShow More
    The difference between a stylish and up-to-date make-up and a messy make-up

    Makeup, just like clothes, depends on the time and taste of the…

    9 Min Read
    The best sport type with a tie
    The best sport type with a tie; How to look well-dressed? • Image of life magazine

    A sporty look with a tie looks good for people who want…

    8 Min Read
    What is the best Valentine set? All kinds of ideas for buying gift sets on the day of love

    As Valentine's Day approaches, choosing a different and lasting gift becomes one…

    9 Min Read
    Suitable style for traveling to the south
    The right clothes for traveling south! The best brigade in the south

    The south of Iran consists of very beautiful cities such as Qeshm,…

    8 Min Read
    Models of sports coats for girls that have become fashionable this year! • Image of life magazine

    when choosing New sports coat for girlsIt is very important to pay…

    11 Min Read
  • Health
    HealthShow More
    Travox tablets for hair loss
    Is Travox pill good for hair loss? + Complications of Travox tablets for hair

    Travox tablets for hair loss + side effects and how to useTravox…

    7 Min Read
    The cause of premature graying of the beard and its prevention
    The cause of premature graying of the beard in youth + pills and methods to prevent the graying of the beard

    The cause of premature graying of the beard and its preventionPremature graying…

    10 Min Read
    Lavender oil for hair
    Is lavender oil good for hair? How to use lavender oil for hair

    Lavender oil for hairLavender oil is one of the types of herbal…

    5 Min Read
    The reason why women get angry quickly
    What is the reason for women getting angry quickly? Solutions and treatment for women getting angry quickly

    The cause of women getting angry quickly and its treatmentWomen getting angry…

    8 Min Read
    The best beard and mustache transplant doctor and a complete guide to having a thick and natural beard in Barad Clinic
    The best beard and mustache transplant doctor

    To use the service beard plantingOne of your most important needs is…

    16 Min Read
  • Science
    ScienceShow More
    Tomorrow’s solar eclipse will not be visible in Iran/experts’ opinion about seeing the crescent moon of Ramadan

    The spokesperson of the Amateur Astronomy Committee of the Iranian Astronomical Society,…

    6 Min Read
    An Iranian researcher won the 2025 Fundamental Physics World Prize – RCO News Agency

    According to RCO News Agency, citing the Ministry of Science, citing Yazd…

    1 Min Read
    Holding the Royana student scientific festival; A three-month study opportunity in Royan – RCO News Agency

    According to RCO News Agency, citing Jihad University, the press conference of…

    17 Min Read
    NASA’s photo of the day from the red cosmic rose

    NASA's photo of a red rose-shaped nebula in the dark sky presents…

    1 Min Read
    The granting of land to 2000 elites in Tehran was finalized; Housing supply situation in 26 provinces – Mehr news agency RCO News Agency

    According to Mehr reporter, the National Elite Foundation in the 14th government…

    7 Min Read
  • World
    WorldShow More
    The aftershocks of the Epstein case in American universities

    The aftershocks of the Epstein case in American universities The release of…

    4 Min Read
    14 martyrs in the Zionist attacks on Gaza – Mehr news agency RCO News Agency

    14 martyrs in the Zionist attacks on Gaza - Mehr News agency…

    2 Min Read
    Trump: “Peace Coalition” allocates 5 billion dollars for the reconstruction of Gaza – Mehr News Agency | RCO News Agency

    Trump: "Peace Coalition" allocates 5 billion dollars for the reconstruction of Gaza…

    2 Min Read
    The air attack of the Zionist regime on eastern Lebanon left 4 martyrs – Mehr news agency RCO News Agency

    The air attack of the Zionist regime on eastern Lebanon left 4…

    2 Min Read
    3 killed and 7 wounded in an attack by rapid response forces on a hospital in Sudan – Mehr News Agency | RCO News Agency

    3 killed and 7 wounded in an attack by rapid response forces…

    1 Min Read
Reading: Which AI chatbot is best for coding?
Share
RCO NEWS Daily world news agency Based on Dubai, UAERCO NEWS Daily world news agency Based on Dubai, UAE
Aa
  • Immigration
  • Travel
  • Technology
  • Science
  • Fashion
Search
  • Home
  • Immigration News
    • Canada
  • Technology News
    • Gadgets
    • cryptocurrency
  • Travel News
    • Dubai
  • Fashion News
  • World News
  • Bookmarks
  • Sitemap
Have an existing account? Sign In
Follow US
© 2023 RCO News Network. Studio TEDSA Design Company. All Rights Reserved.
RCO NEWS Daily world news agency Based on Dubai, UAE > Blog > Technology > artificial-intelligence > Which AI chatbot is best for coding?
artificial-intelligence

Which AI chatbot is best for coding?

IT Technology
Last updated: 2024/08/25 at 9:21 PM
IT Technology
Share
Which AI chatbot is best for coding?
SHARE

ChatGPT artificial intelligence chat bot It represents the presence of many users, but recently, the new robot under the title Gemini He has entered competitions and has the ability to code. In this article, we answer the important and controversial question of which AI chatbot performs better for coding.

Contents
Language supportCode accuracy and qualityDebugging and error detectionAwareness of contextproblem solvingProgramming featuresChatGPT is in a league of its own!

If you’re stuck on a programming project, you might be looking for a tool to help you brainstorm ideas, write clean code, or explain a complex concept. Which AI chatbot is better for coding in your opinion, and which one would you choose: the fast and informative Gemina, or the comprehensive and powerful ChatGPT? Next, we introduce the best artificial intelligence chat bot for coding.

Language support

When it comes to language support, ChatGPT surpasses Gemina in terms of breadth and skill. While Gemina officially supports around 22 popular programming languages ​​– including Python, Go and TypeScript – ChatGPT’s language capabilities are much broader.

Unlike Gemini, ChatGPT does not have an official list of supported languages. However, the bot can handle not only the popular languages ​​Gemina supports, but dozens of others, from newer ones like TypeScript and Go to older ones like Fortran, Pascal, and BASIC.

To test their language capabilities, I tried simple coding tasks in languages ​​such as PHP, JavaScript, BASIC, and C++. Both Gemini and ChatGPT performed well with common languages, but only ChatGPT could convincingly put together programs in older languages ​​like BASIC.

Code accuracy and quality

You’re behind on your project deadline and you need a whole lot of code. You ask ChatGPT and Gemina to generate code to implement that functionality, and both tools spew out dozens of lines of code. It seems that with a simple trick, you came out victorious from this challenging situation.

But which tool’s code can you trust to deliver the functionality you’ve requested? To compare the accuracy and quality of code produced by two AI chatbots, I performed a simple coding task on them. I asked Gemini and ChatGPT to create a simple to-do list app using HTML, CSS, and JavaScript. I did not provide any primers. The goal is to see how well both chatbots can work with limited information. ChatGPT (GPT-4o) produced “good enough” functional code. Using the ChatGPT code, you can add or remove a task. Here’s what I got after running the ChatGPT result in the browser:

Then, I asked Gemina from Google to repeat the same thing. Gemini is also able to create a To-do list application was You can also add and remove tasks, but the overall design was not that attractive:

AI chatbot for coding

I did the second test. This time I asked both chatbots to recreate the Twitter feed (X.com). ChatGPT produced an old-style Twitter feed with functional tweeting capabilities. I can type in a textbox, send a tweet and dynamically load on the page. It wasn’t the Twitter feed I was hoping for, but given that most of ChatGPT’s training data is full of old Twitter code, the results seem understandable.

Unfortunately, in this round, Google Gemina was unable to provide functional code. It generated hundreds of lines of JavaScript code, but there were too many placeholders to fill in with missing logic. If you’re in a hurry, such code with locations won’t be very useful, as it still requires heavy development work. In such cases, it is more efficient to write the code from scratch.

I tried a few other basic coding tasks and in all cases, the ChatGPT solution was clearly the better option.

The book The Teenage General and Secrets of Artificial Intelligence by Henry Brooke Publishing
4% 150,000

143,260 Toman

Debugging and error detection

Bugs and bugs are like puzzles that programmers have every right to hate! These bugs will drive you crazy, but fixing them is quite satisfying. So when you run into a bug in your code, should you ask Gemina or ChatGPT for help? It really depends on the type of error you want to avoid.

To decide, I gave both AI chatbots two problems to solve. First, I asked both chatbots to solve a logic error in simple PHP code. Logical errors are much harder to detect than syntax errors because it depends on the purpose of the code:

The code in this screenshot is executed and even produces the correct result in many cases. However, it has several logical errors that are not immediately apparent. Can you spot them? I asked Gemina for help and unfortunately the chatbot could not detect the logic error in the code:

AI chatbot for coding

None of Gemina’s three attempts to solve the problem were accurate. I tried a similar problem six months ago with the same disappointing result. It seems that Gemina has not progressed in this field.

I then asked ChatGPT for help and it immediately recognized the logic error.

Gemina also rewrote the code to fix this error:

AI chatbot for coding

After doing some more troubleshooting, ChatGPT was clearly better at this. However, Gemina’s performance was not entirely in vain. The bot could handle most of the intentional errors I threw at it, but it struggled with complex errors, especially logic errors.

Awareness of context

One of the biggest challenges of using artificial intelligence chatbots for coding is their relatively limited knowledge of the context or topic. They may be able to create separate code for well-defined tasks, but struggle to create the code base for a larger project.

For example, let’s say you’re building a web app with an AI chatbot. You tell it to write code for your signup and login HTML page, and it does just fine. Then ask the chatbot to create a server-side script to handle the login logic. This is a simple task, but due to limited context awareness, it may produce a login script with new variables and naming conventions that do not match the rest of the code.

Which AI chatbot for coding is better at maintaining context awareness? I gave both tools the same programming task: a chat application that we know ChatGPT can already build.

The book A New Approach to Artificial Intelligence by Stuart Russell and Peter Norvig published by Dibagaran Tehran

Since the introduction of GPT-4 Turbo and its 128k context window, ChatGPT’s ability to retain much more text, for longer periods of time, has improved significantly. When I first built a chat application with ChatGPT using a 4k GPT-4 context window, it ran smoothly with only minor incidents of text deviation.

A November 2023 reconstruction of the same project with 128k GPT-4 Turbo showed a significant improvement in context awareness. Six months later, in May 2024, there was no significant change in context awareness, but neither was it worse.

Unfortunately, when I first tried Gemina (then called Bard) in the same project, it lost the project path and failed to complete the program. Several rounds of updates later, I tested Gemini again in the same project, and it seems to have gotten worse. So, once again, in terms of context awareness, ChatGPT wins.

problem solving

At this point, Google’s Gemini is lacking in many ways. But can he win in the end? Let’s test its problem-solving abilities. Sometimes you just have a problem, but you’re not sure how to show it programmatically, let alone how to solve it.

In this situation, chat bots like Gemina and ChatGPT can be useful. I asked them both to “write a JavaScript code that counts the number of times a particular word appears in a text”.

In the following, we see the result of Google Gemina:

AI chatbot for coding

And then we see the result of ChatGPT:

At first, both approaches seem very solid. Gemina’s approach seems even brief. However, the ChatGPT code has a more robust and accurate approach to counting the number of words in a text. It takes into account word boundaries and case sensitivity, handles punctuation correctly and provides more reliable results. Once again, ChatGPT is superior.

The ChatGPT approach breaks the input text into words in such a way that it can handle all non-word characters such as punctuation marks and special characters as word separators. In the meantime, Gemina considers only the white space as a separator. This approach may fail if the text contains punctuation or other non-word characters in the words, or if the words are not separated by whitespace characters.

Since the Gemina lost in almost every benchmark I used for comparison, I decided to give it a chance at redemption. “ChatGPT vs. Gemini: Which AI Chatbot is Better for Coding?”, I asked the chatbot. We see the result:

AI chatbot for coding

Sounds like something I agree with to an extent! I asked ChatGPT what he thought of the assessment and he agreed:

AI chatbot for coding

Now, while this sounds perfectly normal, there’s an interesting twist here. For most of the last year, Geminai (then Bard) always confidently stated that he could produce better code, was more efficient, and made fewer mistakes. Here is a screenshot from one of my tests in November 2023:

AI chatbot for coding

It seems that Gemina has become a little self-conscious and humble now!

Programming features

Neither ChatGPT nor Gemini has any major features that are exclusive to programming. However, both chatbots have features that can significantly enhance your programming experience if you know how to use them effectively.

ChatGPT offers a set of features that can simplify the programming process when using a chatbot. Useful add-ons like Memory and Custom GPT allow you to customize ChatGPT for your specific programming needs.

For example, the Custom GPT feature can help you create specialized mini versions of ChatGPT for specific projects by uploading the relevant files. This makes things like debugging code, optimizations, and adding new features much easier. Overall, ChatGPT has more features than Google Gemina that can improve your programming experience.

ChatGPT is in a league of its own!

Google’s Gemini has been heavily hyped, so it might be surprising to see how much it lacks compared to ChatGPT. While ChatGPT was clearly off to a good start, you might think Google’s massive resources would help it take that advantage away. Despite these results, it would be unwise to dismiss Gemini as a programming aid. Although Geminai is not as powerful as ChatGPT, Geminai bot still has impressive performance and is evolving at a fast pace.

Source: Makeuseof

Common questions and answers

Can Google’s Gemini code?

yes Simple coding can be done with Google Gemina.

What is Custom GPT?

The Custom GPT feature can help you create specialized mini versions of ChatGPT for specific projects by uploading the relevant files.

What is the ChatGPT extension for advanced coding?

Useful add-ons like Memory and Custom GPT allow you to customize ChatGPT for your specific programming needs.

Dubai company setup

Latest Passing over countries : Spain | Dominica | United Arab Emirates

RCO NEWS

RCO News

We are glad that you have decided to subscribe to our email list.
Please take a few seconds to fill out the listing details to join our list.
You will receive an email to confirm your subscription, just to make sure it is your email address.
TAGGED: chatbot, coding
IT Technology August 25, 2024 August 25, 2024
Share This Article
Twitter Email Copy Link Print
What is your Reaction in this page of RCO News?
Love0
Sad0
Happy0
Sleepy0
Angry0
Surprise0
Previous Article A report of Ukrainian casualties in the last 24 hours A report of Ukrainian casualties in the last 24 hours
Next Article The enemy is not looking for a truce/ the resistance gains strength by assassinating its leaders – Mehr News Agency | RCO News Agency
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

UAE immigration
Dominica immigration
Spain immigration

Latest Passing over countries : Spain | Dominica | United Arab Emirates

Editor's Pick

ca Quick guide to the first job for international students in Canada

2️⃣ Have a specific salary rangeOne of the first questions a career counselor or employer will ask you is:"How much…

By Editor-in-chief of Canada 1 Min Read
Dubai News UAE News RCO News
Parthian treasure in a postal envelope; Discovery of billions of coins

Colonel Karam Hosni said: Following intelligence measures and timely monitoring by the…

1 Min Read
Two camels with sarabans on top of a sand hill in the deserts of Egypt
When Tutankhamun’s amazing tomb was opened; The shocking narrative of the first reporter

His burial goods were prepared to cement the king's power in the…

14 Min Read

Top Writers

Editor-in-chief of Canada 844 Articles
We at Canada RCO News Observatory are responsible for gathering…
Editor-in-chief of Canada
TakeOff 4918 Articles
We at RCO NEWS for Travelers of the Takeoff travel…
TakeOff

Oponion

The difference between a stylish and up-to-date make-up and a messy make-up

Makeup, just like clothes, depends on the time and taste…

February 15, 2026

You Might Also Like

Farsi subtitles with artificial intelligence
artificial-intelligence

The best tools for creating Farsi subtitles with artificial intelligence

In recent years, one of the biggest challenges for content producers, especially in the field of video, has been the…

21 Min Read
Pyramidhead
artificial-intelligence

Review of the film “Return to Silent Hill”; A big disrespect to the fans

Return to Silent Hill is terrifying…but not the good kind. Christopher Gans, the director of the 2006 film "Silent Hill",…

12 Min Read
Dubai News UAE News RCO News
artificial-intelligence

Establishment of the first artificial intelligence banking assistant in Tehran University Science and Technology Park

"Adan" company located in Tehran University Science and Technology Park announced the development and launch of an intelligent banking assistant…

4 Min Read
P͏6͏0i Bluetooth headphones
artificial-intelligence

P6Oi bluetooth headphones review; From quality to price

Choosing a wearable gadget that can establish a precise balance between price and performance is always a big challenge for…

9 Min Read
RCO News Logo Light RCO News Logo

Other News

  • Science
  • Fashion
  • Business

Technology

  • Technology News
  • artificial-intelligence
  • cryptocurrency
  • Gadgets

Immigration

  • Immigration News
  • Canada

Travel

  • Travel News
  • Dubai

More

  • Advertise
  • Contact

Subscribe

  • Dubai Company
  • TEDSA HOLDING
  • Nobel Cert Universal

© RCO News Network. By Studio TEDSA HOLDING. All Rights Reserved.

Welcome Back!

Sign in to your account

Lost your password?