Home chatGPT ChatGPT Can Now Do Your Coding Homework (Yes, Seriously)

ChatGPT Can Now Do Your Coding Homework (Yes, Seriously)

0
ChatGPT Can Now Do Your Coding Homework (Yes, Seriously)

As a pupil, at any time when I hear “ChatGPT” and “homework” in a sentence, my thoughts subconsciously goes to essays. I’m positive a few of you suppose that approach too. In any case, it’s a text-to-text generative AI.

Properly, I’m right here to let you know that that’s not the one sort of task ChatGPT can do.

For these learning code on the market who need a little bit shortcut, you can too use ChatGPT to do your assignments for you. On this article, I’ll be discussing every thing you’ll want to learn about tips on how to use GPT to your coding homework and the way dependable it truly is.

How Can ChatGPT Do Your Coding Homework?

There are two methods of utilizing ChatGPT to do your coding homework: one free and the opposite one is paid. I’m going to show each of them for you so you possibly can select which one matches your wants higher.

Utilizing Plain ChatGPT

The tremendous easy secret trick to getting ChatGPT to do your coding homework? Simply ask. That’s it. To show, let me ask it to make me a easy hangman sport utilizing C++.

The code that got here with it’s too massive for a screenshot however right here’s a glimpse of it:

As for the output, right here’s what it appears to be like like:

Hmm, that’s odd. It’s not registering the right letters. This could solely imply that there’s a logic error someplace within the code. If this occurs to you, don’t fear. ChatGPT can repair their errors as properly.

Now, let’s verify if the brand new code is logically sound.

And there we go. Now, for my remaining modification, I need to see an precise hangman determine once I make an incorrect guess. So, again to ChatGPT we go.

And right here is our remaining output:

It’s fairly wonderful, proper? However, right here’s the factor: What in case you want a visible part to your output? One thing that may solely be described with figures and illustrations.

For that, we flip to GPT-4.

Utilizing GPT-4V(ision)

One of many coolest issues about GPT-4V is its capacity to simply accept picture prompts. This might help you obtain what you want higher by making a tough illustration that GPT can comply with. For instance:

As an alternative of a code block, GPT-4V gave me a downloadable HTML file containing the code. Here is what it appears to be like like:

Not precisely good in appears to be like, however does it work?

Yep! This trick is best in case your instructor has particular design directions however, in case you’re given one thing that doesn’t require designs or wireframes to comply with, you’re going to get by simply wonderful with plain ChatGPT.

What Else Can ChatGPT Do?

Programming assignments don’t cease at coding. There are different varieties of evaluation made to verify your ability stage. And sure, ChatGPT can do all of them too:

Debugging

Debugging could be a time-consuming course of, however ChatGPT might help establish frequent errors in your code. Describe the difficulty you are going through (or just simply copy and paste the code into the chatbot) and ChatGPT can counsel potential options, serving to you debug your total code.

Code Optimization

Is your code working slower than anticipated? ChatGPT can counsel methods to optimize your code by bettering its effectivity with out compromising performance. From the straightforward act of cleansing up the empty areas in your code to finish useful resource administration, ChatGPT can simply make your code extra strong.

Code Translation

Some folks can’t code in Java, some can’t code in Python. It doesn’t imply they’re much less of a programmer — it simply means they want a little bit assist. ChatGPT can code in any programming language, making it straightforward to translate code with only a single immediate.

How Good is ChatGPT at Leetcode?

Everyone who’s ever studied pc science is aware of and fears Leetcode. It’s mainly a platform the place you possibly can practice your self in creating environment friendly algorithms to resolve theoretical issues. Not solely that, however Leetcode can also be an effective way to measure how correct ChatGPT truly is at creating code.

Leetcode issues have three classes: straightforward, medium, and arduous. For this take a look at, I took 5 questions per class, pasted the issue into ChatGPT, and copied its reply into Leetcode for checking. The next are the outcomes:

Sure, 100%. That’s scary good, particularly contemplating that even the perfect programmers on the planet fail one or two arduous Leetcode questions.

A Few Parting Phrases

While you’re utilizing ChatGPT to do your coding task, at all times keep in mind who’s actually drawing the brief straw. 

You.

Letting ChatGPT code for you deprives you of the information and expertise that comes with hands-on studying. Positive, in an organization, you’ll have entry to ChatGPT, Google, and different supplies. However you continue to should understand how the person items of code come collectively to create methods. That’s what programming is.

So, my recommendation is let ChatGPT code for you however strive it your self first. In different phrases, don’t surrender earlier than throwing the primary punch. You may also ask ChatGPT to clarify the code line-by-line so you possibly can have a greater understanding of what every code block does.

After you perceive every thing, go nuts with ChatGPT. It’s a beneficial coding assistant for any ability stage. However earlier than you attain that stage, strive higher.

LEAVE A REPLY

Please enter your comment!
Please enter your name here