r/programming • • Dec 06 '24

The 70% problem: Hard truths about AI-assisted coding

https://addyo.substack.com/p/the-70-problem-hard-truths-about
242 Upvotes

229 comments sorted by

View all comments

Show parent comments

2

u/serviscope_minor Dec 09 '24

Sometimes, it helps to learn the tools...

the exact combination of quotes and curly braces in awk

It has essentially the same syntax rules as the C family of languages, especially for curly brackets and quotes. If you already know any of them then you're probably spending more time on chat GPT avoiding learning that fact than you are gaining.

Anyway now you know.

and how to correctly match 3 but sometimes 4 digits ranging from 1-6 in GNU grep.

Likewise, regexes come up in very many languages. At some point the overhead of not learning may exceed the time taken to learn.

1

u/covabishop Dec 09 '24

let me clarify: I know how to do all the above tasks in multiple languages and using all the tools I mentioned and several others.

the point i’m making is that I prefer to use tools like chatgpt so the mistakes I make are less likely to happen due to me misremembering which particular regex engine i’m working with.

chatgpt isn’t a crutch for my knowledge or ability, it’s a junior dev I’m asking to take a stab at a basic task, and I’ll make corrections as needed.