this post was submitted on 12 Jun 2023
3 points (100.0% liked)

Programming

20064 readers
82 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

Some interesting thoughts on how to leverage ChatGPT

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 2 years ago

I usually use it more to help me write documentation and add comments on some functions. It helps explaining what a function does.

To write code I usually just use it to write simple functions or a template code for me to start from somewhere. I avoid using it with external Libraries as in my experience, it likes to "invent" functions and methods that are not implemented.

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

Using ChatGPT for anything more than repetitive or random generation tasks is a bad idea, and its usefulness becomes even more limited when you're working with proprietary code that you can't directly send to ChatGPT. Even with personal projects, I still try to avoid ChatGPT as much as possible for the simple reason that I'll be forced to pay for it if it becomes an essential part of my workflow when it leaves this free beta testing phase.

[–] [email protected] 0 points 2 years ago

Exactly this! I hate hearing politicians and rulemakers discuss how ChatGPT and LLM are going to be relevant everywhere and how ChatGPT should already be incorporated into education. They literally call it a "research preview", you can only assume that when they've gathered enough data, they're going to shut it down, or at least reduce its capacity by a lot.

With that said, I really enjoy using it. Mainly for brainstorming topics or new projects, and what technologies to use in them. Sometimes I also find a use for it as a therapist, for social topics I don't really know who to ask, and I expect a generic reply anyway.

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

I've been using ChatGPT at work quite a bit now. Some of the things I've used it for are:

  1. Writing a shell script that scrapes some information about code modules and shows them neatly
  2. Minor automation scripts that setup and make my day to day docker workflow easy
  3. Writing random regex, sql, lua pattern matching functions
  4. It turned out to be surprisingly good at creating code examples for certain undocumented APIs (kong.cache, kong.worker_events, kong.cluster_events) in Kong API Gateway.
  5. Copy pasting a rough python automation script, converting it into Go, and adding it in the application itself.

I still don't feel comfortable using it for anything big.