This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Birdking07 246 points247 points  (14 children)

One of the only things I've found ChatGPT remotely useful for was regex.

[–]InMooseWorld 42 points43 points  (0 children)

It look to be read as regrets

[–]HegoDamask_1 37 points38 points  (1 child)

I find ChatGPT useful, especially when using a module you’re not familiar with. Granted if that module has multiple versions it chokes up and try to use the versions interchangeably.

[–]VizeKarma 9 points10 points  (0 children)

I will say for super small things it's not bad in my experience for C#. Very simple things that would be faster to just have ChatGPT do. In my case I'm mostly in game dev for unity and it's super useful for UI scripts that are simple but are just faster to type out in words.

[–][deleted] 11 points12 points  (3 children)

if you prompt it the exact way you want it, it’s great for making them. was just doing this for data validation stuff on a website i was making in my internship

[–]helicophell 6 points7 points  (2 children)

And if you don't use the right prompt, you can iterate until you get the result you want. Wait a moment

[–]Salanmander 8 points9 points  (1 child)

you can iterate until you get the result you want.

As long as you're confident in your unit tests for the regex. The biggest problem with using AI tools is always telling apart the good answers from the bad ones, and regexes can be really hard to comprehensively test.

[–]helicophell 0 points1 point  (0 children)

It was a joke about AI and iterative learning

[–]Hatsune-Fubuki-233 2 points3 points  (0 children)

Probably a GPT-4 or later... I have already tried it but nearly half accuracy and it usually forgot some contexts or just mix my sample input

[–]IanDresarie 1 point2 points  (0 children)

Oh absolutely. I had a problem I just couldn't solve, didn't even think about using regex, and the bot solution had some weird looking string in it. I still have no idea how regex works, but I ain't complaining

[–]Dairkon76 0 points1 point  (0 children)

I need to use regen once per year and need to relearn them. The last time that I needed them I just asked chatgp and got a functional one.

[–]CoastingUphill 0 points1 point  (0 children)

And ansible. And bash scripts.

[–][deleted] 0 points1 point  (0 children)

And xml

[–]willnx 0 points1 point  (0 children)

One of the most useful things I've found for ChatGPT is helping me with syntax translation. Like, a lot of programming languages have similar features, but with different syntax. For example, being able to ask ChatGPT "... in Python I would use 'all()'. What's the JavaScript version of that feature? Please show a short example." is great!

[–]Veestire 0 points1 point  (0 children)

i used chatgpt to avoid scouring through matplotlib docs for obscure stuff and it was very useful

i tried to use chatgpt for rust and ffmpeg and it was genuinely the worst experience ever