• 0 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: August 24th, 2023

help-circle





  • tranxuanthang@lemm.eetoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    7
    ·
    edit-2
    1 year ago

    If you don’t know what you are doing, and you give it a vague request hoping it will automatically solve your problem, then you will just have to spend even more time to debug its given code.

    However, if you know exactly what needs do do, and give it a good prompt, then it will reward you with a very well written code, clean implementation and comments. Consider it an intern or junior developer.

    Example of bad prompt: My code won’t work [paste the code], I keep having this error [paste the error log], please help me

    Example of (reasonably) good prompt: This code introduces deep recursion and can sometimes cause a “maximum stack size exceeded” error in certain cases. Please help me convert it to use a while loop instead.


  • And not to forget that sketchy AI training on every line of your code.

    I don’t mind AI learning from my open-source code that much. However, my concern is that open-source projects on GitHub are not as easily accessible to AIs other than Copilot and OpenAI, which does not allow for fair competition.

    That said, I do have a good impression of Codeberg. When they become federated, I might finally jump ship from GitHub.