Prompting Is Programming
brethorsting.com
brethorsting.com
Every sentence in English is either a function call (action), a database query of sorts, an observation about time/place/people or a logical proposition. Even continuations / process control are a part of natural language.
Domain knowledge is basically having an idea about the rules and procedures of the said domain. A glossary of a domain is a library.
I find prompting these days increasingly become more and more imperative and resemble logo somewhat.
Programming entails specific instructions and a high level of control, a.k.a. specifications. Of course, there are other kinds of specs, like business specs, but here we're talking about specs in the literal sense, where you are being specific of how the machine should work in a predictive sense. We don't do this with prompts, and we expect the AI to do this for us in the same way we expect a human engineer to take ambiguous directions and turn it into the actual computer spec.
The fact that domain knowledge makes for better prompts is a shortcoming of AI instead of a feature of prompting.
I’m not saying you’re wrong to separate it and say there’s a difference, but I don’t think the line where you put it.
Programming as I remember it pre-AI was essentially just toil and iteration. Programming with AI is nearly zero toil and iteration. The first prompt is like installing a framework. The next 200 prompts are programming.
Writing a really good skill, or a spec document, feels more like programming than Project Management.
I'll send him the article and see if a crash-course in "this is how programmers think about problems" helps.
Though I absolutely still have to go through it robustly to protect against Claudisms, comments only Claude understands, function names that make sense only with maximum context and a dictionary of that same context, etc. and it still overlaps function responsibility.
I’m not out of a job yet! Hah.