Should we learn coding when ChatGPT can code?

With ChatGPT can code, should we still learn coding? Algo will provide you with fresh insights and perspectives on this super hot topic!

As technology advances, especially with the rise of artificial intelligence, many professions are becoming uncertain, and many employees are worried about the brink of unemployment. The field of information technology, including programmer, is no exception. With ChatGPT becoming increasingly intelligent and ChatGPT can code, should we still learn coding? In the following discussion, Ms. Tammy - Head of Methods and Curriculum at Algorithmics will provide you with fresh insights and perspectives on this super hot topic!

Can we use ChatGPT to code even if we don’t know coding well or don’t know anything at all?

Yes and no. It’s a little more complicated. ChatGPT and other AI models are becoming increasingly advanced and capable of generating code. However, Algo believes that learning to code remains necessary. 

You can use ChatGPT to help you write small fragments of code or a very simple program (in languages popular programming languages such as JavaScript, Python, C#, PHP and Java). But you will still need to have programming knowledge to understand its code. 

Though, there are other AI tools and platforms available that help individuals with limited to no coding experience to build applications or automate tasks without code, eg. Thunkable or Zapier/Airtable. However, all these tools require an architect! 

chat-gpt-can-code

Why do we need to learn code when we can use ChatGPT to do it for us?

While AI models can generate codes, it is not a replacement for learning how to code as it cannot teach you the fundamentals of programming. It can act like your “personal coding assistant” and help you write your codes faster and more efficiently by automating certain tasks for you.

However, learning to program builds a foundational understanding of how computers and programming language should work together in an effective way. It enables you to be a ChatGPT “master”, with the power to customize existing parameters to meet specific needs. 

With these new tools, Algo believes it's even more crucial and valuable than ever to learn the fundamentals of programming to know how they work, practice and develop creativity in problem-solving and logical thinking.

ChatGPT does not guarantee 100% accurate information

It can be biased from the data being used to train it. We cannot guarantee 100% accurate information is provided in its responses. Great coders are creative thinkers who can design and direct the AI to do. 

The recent Washington Post March 18  mentioned that Chat GPT-4 can ace a logic test, but you can’t ask it to be creative. OpenAI’s website openly shares the limitations, stating: “ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers.”

Experienced programmers will know what types of clarifying questions to ask ChatGPT, and could verify that the code of the app was correct. Someone with no coding knowledge will not be able to contextualize ChatGPT’s responses or pick up on subtle mistakes.

How can we use ChatGPT effectively for coding purposes? What are the methods?

Use ChatGPT as your personal “Code Assistant”. Be clear with what you want it to do during your interaction with ChatCPT. While it does not have a persona/personality, it can predict that personality from your input (access it’s pre-trained data).  

To use ChatGPT effectively for coding purposes, you should narrow down and sharpen up your prompt request. 

Example

Your purpose: While the following prompt will work for an article for a blog, you will not be able to create a full program. 

The structure of your question: 

  • Take on the persona of [Expert persona].
  • [Verb] [format and length] [objective]
  • The output should include relevant [data]
  • The writing style is [voice/style] targeted towards [audience].

Prompt:

  • Take on the persona of expert python programmer
  • Write the code in python to create a Fast Clicker Game using the PyGame library. 
  • The output should include relevant planning procedure, developers procedure, and program the Area and Label classes, and use them to create and display a set of game cards; program the display of the CLICK label on a random card.
  • The writing style is in an educational voice targeted towards children 10 - 17 years old. 

ChatGPT Response

chatGPT-can-code-Algorithmics-Vietnam
chatGPT-can-code-Algorithmics
chatGPT-can-code-Algo
chatGPT-can-code

You will see that the set of code generated is still missing key components, with a few errors. 

Its missing the  “import random” after “import python”. Though the game window is created along with random numbers on each card,  no winning event has been generated. There were also a few errors in the algorithms, having programming knowledge will help you understand where the error is for updates. 

And a cheatsheet:

Conclusion: 

As you can see, ChatGPT still requires specific information, inorder to generate the code snippet you need. You will need to know how to program development flow, what the functions needs in order to design your program with ChatGPT. 

Therefore, its best to break down your program development into smaller steps and define exactly what you want to ChatGPT

Here is a great site to refer to for coding prompts https://www.greataiprompts.com/chat-gpt/best-coding-prompts-for-chat-gpt/

Let us know if you want to know how the Fast Clicker Game can be created with ChatGPT!

Theo dõi sự kiện

Calendar of Events

M Mon

T Tue

W Wed

T Thu

F Fri

S Sat

S Sun

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

1 event,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

0 events,

Liên hệ nhanh để giải đáp thông tin khoá học cho trẻ
Children can code!
Discover the Coding World with Algorithmics
© 2022, All Rights Reserved by Algorithmics
menu
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram