325
you are viewing a single comment's thread
view the rest of the comments
[-] AdamEatsAss@lemmy.world 51 points 1 year ago

I work as a programmer and I didn't realize how many people have already adopted AI into their workflow. About half of my coworkers (most younger people) ask chatGPT to write code for whatever they need to program before starting. Even after corporate emails about not sharing IP and trade secrets with AI people still do it. AI is a powerful tool and it cannot be un-invented. People will use it as long as it continues to make their lives easier.

[-] TimeSquirrel@kbin.social 15 points 1 year ago

Please tell me you don't work with medical or aerospace/military software.

[-] bioemerl@kbin.social 28 points 1 year ago

If you think those industries work on the competency of their programmers instead of the competency of their systems you've got a big surprise coming for you

[-] AdamEatsAss@lemmy.world 11 points 1 year ago

I don't think my experience is standalone in this. People will use tools to help them however they can. What sector a programmer in will likely have no affect on AI use. It may be harder to use on a secure network but people can still do it on their phone or personal computer. And medical and aerospace is heavily regulated and tested so the likelihood of bad AI code getting through is very low. (not to say coding mistakes don't happen, just look at the boeing 737 max crashes) And militaries also test their equipment before/after purchase. While they are often held to different standards than commercial equipment a military usually has people who are competent reviewing code and equipment.

[-] lemmyvore@feddit.nl 14 points 1 year ago

People will use it as long as it continues to make their lives easier.

Being fired and sued for divulging trade secrets doesn't sound like an easy life.

[-] Khalic@kbin.social 4 points 1 year ago

Using ChatGPT for coding is like copy pasting from stack overflow. useful for someone who's bad at his jobs, doesn't change shit for a good developer

[-] kava@lemmy.world 28 points 1 year ago* (last edited 1 year ago)

It depends how you use it, I think, like any tool. I might ask ChatGPT to help me write an algorithm to do a certain thing in pseudocode so I can understand it. Ask it a few questions about optimization just so I have a sense for how it works then I implement it myself.

It can also help you think about ideas. I will copy paste a function or file and then ask questions like "what are some considerations do you think I should have?" "is there anything I could be missing?" "what could make this code better?" "how would you optimize this?" "how would you make it simpler?"

let me find some simple example

function findAbsoluteMax(arr) {
  return arr.reduce((val, next) => {
    if (Math.abs(next) > Math.abs(val)) {
      return next;
    } else {
      return val;
    }
  });
}

Let's ask GPT4 "how could we make this code better?"

It offers two suggestions

  1. there should be some simple error handling. for example if the arr is length 0 then it should throw an error or return a null. this makes sense and is a good thing to add - perhaps this would have saved me a lot of headache in some scenario where I'm getting a weird bug

  2. add a ternary operator to make the arr.reduce call shorter

    return arr.reduce((val, next) => Math.abs(next) > Math.abs(val) ? next : val );

I think this does actually make it more readable and condenses it - a pretty good thing

Now, this is a simple function but you can actually copy in a whole file and ask it to analyze things you might be missing or considerations you could make. It's like talking to the yellow duck except the yellow duck talks back

There's a lot of power in this technology and it doesn't simply revolve around copy pasting code. Perhaps my example wasn't the greatest but someone else can share how they use it

[-] sheogorath@lemmy.world 5 points 1 year ago

Yea I pretty much use ChatGPT as an interactive rubber duck when working. However I’ve refrained from pasting a file or a code snippet from my work to it as there’s already some IP leaks happened at Samsung and my company has shared a guideline on how to use AI tools to help with work. They know that people will keep using it regardless, so what they can do is to keep people from leaking company or client IPs by sharing a file to the AI tools.

this post was submitted on 17 Aug 2023
325 points (97.9% liked)

Technology

59197 readers
817 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS