Just can’t waste time on trying to make it do anything complicated because that never goes well.
Yeah, that’s a waste of time. However, it can knock out simple code you can easily write yourself, but is boring to write and take time out of working on the real problems.
rozodru@piefed.social 1 day ago
for setting stuff up, putting down a basic empty framework, setting up dirs/files/whatever, it's great. in that regard yeah it'll save you time.
For doing the ACTUAL work? no. maybe to help write say a simple function or whatever, sure. beyond that? if it can't nail it the first or second time? just ditch it.
theterrasque@infosec.pub 16 hours ago
I’ve found it useful to write test units once you’we written one or two, write specific functions and small scripts. For example some time ago I needed a script that found a machine’s public ip, then post that to an mqtt topic along with timestamp, with config abstracted out in a file.
Now there’s nothing difficult with this, but just looking up what libraries to use and their syntax takes some time, along with actually writing the code. Also, since it’s so straight forward, it’s pretty boring. ChatGPT wrote it in under two minutes, working perfectly on first try.
It’s also been helpful with bash scripts, powershell scripts and ansible playbooks. Things I don’t really remember the syntax on between use, and which are a bit arcane / exotic. It’s just a nice helper to have for the boring and simple things that still need to be done.