this post was submitted on 15 Jun 2023
37 points (100.0% liked)

Programming

355 readers
1 users here now

This magazine is dedicated to discussions on programming languages, software development, and coding. Whether you are a beginner programmer or an experienced developer, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as coding languages, software engineering, web development, and more. From the latest trends and frameworks to tips and tricks for debugging, this category covers a wide range of topics related to programming.

founded 2 years ago
 

How reliable is AI lke ChatGPT in giving you code that you request?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago (1 children)

I've used it a bit to get the framework or boilerplate I need. It's not a one-click solution!
What I will do is ask it to generate code for a purpose and then iterate over the suggested code adding and/or modifying specific areas until i have something usable... Depending on the complexity of the code/feature this can take quite a number of iterations. You need to understand the code it gives you!
Once I feel satisfied I will copy the code to the editor for tweaking and adjusting to my environment.

I will admit that I've been surprised sometimes by the suggestions I've been given. Sometimes in a good way, sometimes bad.

Remember that whatever you feed it will feed the LLM, so don't give it anything specific to yourself or your organisation.

[–] [email protected] 2 points 1 year ago (1 children)

It seems like a small thing you said on the side, but it is really important that you actually understand and can explain the code it gives you that you're copying into your project. Otherwise you're taking in an unknown, unmaintained and unexplained dependency, and that can lead to problems once that dependency fails.

[–] [email protected] 2 points 1 year ago

Agreed that I should have been clearer...
Both my statements of it not being a "one-click solution" and the aside about understanding the code was meant to emphasize that very point.