> Programming can be art.
On that at least we agree (ignoring the rubbish about "AI", unless it describes an artificial intelligence with at least peer-level (i. e. human-level) agency, and not a language model). The same goes for the ridiculous, but for chatbot lovers certainly convenient, notion that art stops being art because money (or some other form of compensation) changed hands. That's just a reheated version of the tosh incompetents threw at artists since time immemorial. I remember the last time when it was very en vogue: the pathetic "anti-art" movements of the 90s.
And programming? Processes and their manifestations, depending on definitions of course, can indeed be art. Just like writing and its manifestations (e. g. poems, novels).