Sign In
  • U.S.
  • Canada
  • Australia
  • Dubai
  • UAE
  • Dominica
  • Spain
RCO News Logo Light RCO News Logo
  • Home
  • Immigration
    Immigration to France through asylum

    The asylum visa is for people who have been threatened and tortured in their own country and have no life…

    14 Min Read
    What is the MCAT test Company Conditions, Required Documents and Preparation Course
    How is the MCAT test structure?
    Immigration

    MCAT test An international test To measure students' skills interested in Medical field Designed. Depending on the rank you will…

    8 Min Read
    What is a Professor of Permeate + Conditions and Conditions Required to Apply
    Professor Permeite
    Immigration

    Professor Permeite is an academic authorization to go to Foreign students Allows them to enter the destination country to continue…

    11 Min Read
    ca Increase in Canada International Students’ Financing
    Canada

    The Canadian Immigration, Refugee and Citizenship Office (IRCC) has announced that from date September 9Minimum amount required to prove International…

    1 Min Read
    Migration methods to France of 2025 (legal and guaranteed)
    Photo of a French visa sample
    Immigration

    France is one of the most important countries in the world where many people migrate to it every year. The…

    21 Min Read
    Check out more:
    • Canada
  • Travel
    Mirrors to watch life; Three readable offers from avant -garde

    In a world where speed has taken the depth of meaning, the book may be the only media that still…

    8 Min Read
    Video; Hidden hangouts of the Cinema Museum

    The Museum of Cinema is one of the attractions in the north of Tehran with its large and lively enclosure.…

    0 Min Read
    Story of Citadel Karim Khan, The Glory of Shiraz History
    Story of Citadel Karim Khan, The Glory of Shiraz History
    Travel

    At the heart of the most historic point of Shiraz, the citadel of Karim Khan, a firm structure with tall…

    15 Min Read
    Travel to Old Tehran; Valiasr Square and People’s Special Type in the 1980s!

    In this image, which shows part of Tehran's urban memory in the early 1980s, a group of youths and teens…

    0 Min Read
    Shiraz Lawyer Bath, Negin of Zandieh Architecture
    Shiraz Lawyer Bath, Negin of Zandieh Architecture
    Travel

    In the heart of the historical context of Shiraz, one of the most magnificent memorials of the Zandieh era shows;…

    15 Min Read
    Check out more:
    • Dubai
  • Technology
    Google signed a $ 2 billion contract to buy water electricity
    Podcasting
    artificial-intelligence

    Google announced on Tuesday that it has finalized a $ 2 billion contract with Brookfield to buy water from the…

    2 Min Read
    The best blue cooler float; Introducing the best -selling models and brands of the market 1 • DigiKala Meg
    What is the best portable blue air conditioner?
    artificial-intelligence

    When the water cooler in the middle of the summer heat breaks, our minds usually go to the engine, pump…

    10 Min Read
    The popular rock group with a million listeners was just the illusion of artificial intelligence
    artificial-intelligence

    Study time: 2 Minutes Your Browser Dos Not Support the Video Tag for Audio Playback. Inspired by the Rock music…

    3 Min Read
    Artificial intelligence changes all jobs completely
    artificial-intelligence

    Nvidia's CEO Jensen Huang believes that artificial intelligence is not going to get people's jobs, but it will change how…

    3 Min Read
    Samsung succeeded in maintaining the first place in the smartphone market
    Samsung
    Technology

    Samsung is facing a very fierce competition in a variety of areas such as smartphones, semiconductor chips and TVs. However,…

    3 Min Read
    Check out more:
    • Artificial Intelligence
    • CryptoCurrency
    • Gadgets
  • Fashion
    FashionShow More
    Is the silver bangle infographic better or become better?
    Silver bangle or bangle? How to recognize their differences? • Life Image Magazine

    The bangles have long had a special place in different cultures, especially…

    11 Min Read
    The difference between the original and fake stone necklace
    Difference of Original and Fake Stone Necklace • Life Image Magazine

    Diagnosis of the original stone necklace from counterfeit requires precision and attention…

    7 Min Read
    Complete guide to traveling with an external tour

    Traveling on a foreign tour is an unforgettable and exciting experience that…

    7 Min Read
    Colors
    Introduction to Colors Set Principles • Life Image Magazine

    Colors They play an important and important role in creating a harmonious,…

    7 Min Read
    The most complete summer style guide; or 1404

    The expectations finally came up and the summer came with all its…

    10 Min Read
  • Health
    HealthShow More
    What is the sign of black spots on the face and body of the face? Treatment of black spots on the skin
    What is the sign of black spots on the face and body of the face? Treatment of black spots on the skin

    Black spots on the face and body of the faceBlack spots on…

    8 Min Read
    Why don't I get lean even though I don't eat anything
    Why don’t I lean | ۱۴ Reason for not leaning with diet and exercise

    Why don't I lean? I don't eat and increase exercise; So why…

    22 Min Read
    What foods to sleep before? • Life Image Magazine

    ۱ Foods that should be avoided before bedtimeThere are so many things…

    8 Min Read
    What is the above cortisol?
    What is the above cortisol? Symptoms of High Cortisol in Men and Women + Treatment

    High cortisol and its symptoms in men and womenIn general, cortisol is…

    13 Min Read
    Have a muscular body without medication!
    ۱۱ Arm back moves for bulky + Best Arm back training program

    To make bulk arms that don't even fit into the sleeve, the…

    24 Min Read
  • Science
    ScienceShow More
    Last Registration Deadline in the 9th Martyr Ahmadi Roushan Project – | Iranian and world news

    According to the , the National Elite Foundation announced: Registration was extended…

    1 Min Read
    Start of recruiting postgraduate researchers in Key Projects – | Iranian and world news

    In its latest call, the National Science Foundation of Iran invited PhD…

    2 Min Read
    The largest black hole integration was observed – | Iranian and world news

    The Advanced Network of Ligo, Virgo and Kagra or LVK gravitational waves…

    2 Min Read
    Notification of scientific laboratory safety instructions; Single activity banned – | Iranian and world news

    According to Mehr Reporter, Dr. Peyman Salehi; Research Assistant of the Ministry…

    2 Min Read
    The style of maintaining and promoting the elite was announced in the executive agencies – | Iranian and world news

    According to the Vice President of Science, Technology and Economics of the…

    1 Min Read
  • World
    WorldShow More
    US and European Troicha Dell Against Iran – Mehr News Agency | Iranian and world news

    US and European Troicha Dell Against Iran - Mehr News Agency |…

    2 Min Read
    Disclosure of the US’s failed attempt to intercept Iranian missiles against Israel – Mehr News Agency | Iranian and world news

    Disclosure of the US's failed attempt to intercept Iranian missiles against Israel…

    2 Min Read
    Unprecedented Restrictions of the Zionist regime in the shrine of Ebrahimi – Mehr News Agency | Iranian and world news

    Unprecedented Restrictions of the Zionist regime in the shrine of Ebrahimi -…

    1 Min Read
    The Zionist regime pilots were killed in the 6 -day war – Mehr News Agency | Iranian and world news

    The Zionist regime pilots were killed in the 6 -day war -…

    1 Min Read
    Türkiye condemned the Zionist regime’s attack on Syria – Mehr News Agency | Iranian and world news

    Türkiye condemned the Zionist regime's attack on Syria - Mehr News Agency…

    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 Increase in Canada International Students’ Financing

The Canadian Immigration, Refugee and Citizenship Office (IRCC) has announced that from date September 9Minimum amount required to prove International…

By Editor-in-chief of Canada 1 Min Read
Video; Hidden hangouts of the Cinema Museum

The Museum of Cinema is one of the attractions in the north…

0 Min Read
Story of Citadel Karim Khan, The Glory of Shiraz History
Story of Citadel Karim Khan, The Glory of Shiraz History

At the heart of the most historic point of Shiraz, the citadel…

15 Min Read

Top Writers

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

Oponion

Is the silver bangle infographic better or become better?

Silver bangle or bangle? How to recognize their differences? • Life Image Magazine

The bangles have long had a special place in different…

July 9, 2025

You Might Also Like

Podcasting
artificial-intelligence

Google signed a $ 2 billion contract to buy water electricity

Google announced on Tuesday that it has finalized a $ 2 billion contract with Brookfield to buy water from the…

2 Min Read
What is the best portable blue air conditioner?
artificial-intelligence

The best blue cooler float; Introducing the best -selling models and brands of the market 1 • DigiKala Meg

When the water cooler in the middle of the summer heat breaks, our minds usually go to the engine, pump…

10 Min Read
artificial-intelligence

The popular rock group with a million listeners was just the illusion of artificial intelligence

Study time: 2 Minutes Your Browser Dos Not Support the Video Tag for Audio Playback. Inspired by the Rock music…

3 Min Read
artificial-intelligence

Artificial intelligence changes all jobs completely

Nvidia's CEO Jensen Huang believes that artificial intelligence is not going to get people's jobs, but it will change how…

3 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?