3 ms·
Last week I needed to write a bash script that (among other things) parsed the text inside two square brackets that may or may not be in a given string. I rarel
by herbturbo 4y ago
Last week I needed to write a bash script that (among other things) parsed the text inside two square brackets that may or may not be in a given string. I rarely write bash or use regex, so it would probably have taken me 1/2 hr to an hour of Google searches like "how to reference capture group in regex bash".
ChatGPT did it for me in about 3 minutes. I was intrigued so I asked it to write Swift code to RSA256 encrypt and then decrypt a string. It did that in about 30s. I told my colleagues and someone joked "ask it to do my HealthKit integration haha". I did, and it did. Not perfectly, but instructively.
Yeah there is a lot of noisy hype around this, but for me it's already shown itself capable of massively improving my productivity.
- safety1st 4y agoInteresting point here. ChatGPT may be especially useful in situations where the code that needs to be written is relatively simple but the user of ChatGPT has little or no experience with that language. For example - as part of a low code/no code product. The user of these typically doesn't know much about code, but some simple scripting might greatly enhance what they can accomplish with the product. Enter ChatGPT...
- forgotusername6 4y agoTo me chat GPT represents the same interaction you see on Star Trek when someone is talking to the computer. In particular when interacting with the holodeck. They ask it to modify the environment, incremental tweaks etc and the computer understands what you mean. They are programming, but in a no-code scenario.
- danenania 4y agoI’ve also found it extremely useful for command line utilities with many commands and options. Things like kubectl, ffmpeg, imagemagick, aws cli etc. Tell it what you want and it usually gives you the correct command and flags in response. It’s a lot faster than the google/parsing docs/trial and error mix that I used to employ.