Just be wary of chatgpt output if you’re new to scripting, it can make up things that don’t exist or make stupid mistakes
Have seen poorly written batch install scripts that try to delete system32 if they can’t find the folder they try to cd into because that’s the default starting directory (they needed to be run as administrator)
Powershell I would say is able to do more damage to your machine much more easily than most programming languages if you make an oversight with it
It’s Python what ChatGPT has helped me from almost zero prior knowledge, and I’ve managed to create a (probably shitty) script that works with OpenAI’s API, uses classes and functions and can do things like recursively summarizing a text until it’s below a specific token count, among several other things. As time went on, I required less help and I could implement more changes on my own.
I had prior (non-ChatGPT) Bash, PowerShell and BATCH knowledge.
It’s true that ChatGPT has bamboozled me several times with wrong code, but unless it’s something too complex, it get what I need in a few tries. For more complex stuff I have to use smaller more specific queries and in some cases I still Google things, but it’s usually my last resort.
In any case, I frequenly ask ChatGPT for a detailed explanation of what does the code do, mostly because I want to clearly understand what I’m using, and it helps me learn new coding/scripting stuff.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
Just be wary of chatgpt output if you’re new to scripting, it can make up things that don’t exist or make stupid mistakes
Have seen poorly written batch install scripts that try to delete system32 if they can’t find the folder they try to cd into because that’s the default starting directory (they needed to be run as administrator)
Powershell I would say is able to do more damage to your machine much more easily than most programming languages if you make an oversight with it
It’s Python what ChatGPT has helped me from almost zero prior knowledge, and I’ve managed to create a (probably shitty) script that works with OpenAI’s API, uses classes and functions and can do things like recursively summarizing a text until it’s below a specific token count, among several other things. As time went on, I required less help and I could implement more changes on my own.
I had prior (non-ChatGPT) Bash, PowerShell and BATCH knowledge.
It’s true that ChatGPT has bamboozled me several times with wrong code, but unless it’s something too complex, it get what I need in a few tries. For more complex stuff I have to use smaller more specific queries and in some cases I still Google things, but it’s usually my last resort.
In any case, I frequenly ask ChatGPT for a detailed explanation of what does the code do, mostly because I want to clearly understand what I’m using, and it helps me learn new coding/scripting stuff.