AI-generated Art and AI-generated code are treated differently

Table of contents

AI-generated Art and AI-generated code are treated differently

I came across an AI-generated image of Sakura Card Captors in the style of Spanish painter Remedios Varo on social media. The comments were overwhelmingly negative about AI - a common reaction given the current AI hype .

Sakura Card Captors image in the style of Remedios Varo created with AI

Sakura Card Captors image in the style of Remedios Varo created with AI

Artists hate AI, devs accept it

Many artists oppose AI. Movements like #NOAI and Made with Human Intelligence have pushed back against models trained on their work without permission , style imitation, and fears of replacement.

In contrast, the software industry has largely embraced AI as a productivity tool. Resistance tends to focus on technical issues rather than ethics of training data. The difference is striking.

NO AI movement

NO AI movement

Why the double standard?

Art is visual and emotional - something humans have evolved to notice. Code is abstract and functional, often hidden from end users. Also, code isn’t the final product people see; it’s an instruction set for machines.

Oscar Wilde said “All art is quite useless” - meaning art exists for beauty and expression, not utility. Code has a clear purpose. That difference matters.

Randomness and possibility space

Generative models work by learning patterns from training data and using randomness to produce new outputs that fit those patterns. Both art and code follow this process, but the space of valid solutions differs.

  • Art: Nearly infinite valid ways to represent a concept. A painting in Picasso’s style and one by Velázquez can both be valid interpretations.
  • Code: Fewer valid solutions to achieve the same result. A loop from 0 to 100 might have a dozen reasonable implementations in one language, but many will differ in performance, readability, or correctness.
An emotional photograph in the style of a Fujifilm disposable camera showing a medium shot of a Japanese woman in her 20s crying at a wedding ceremony.

As complexity grows, code’s solution space expands, but constraints remain. You can measure correctness - a crawler that crashes or leaks memory is worse than one that doesn’t. With art, there’s usually no objective metric to say one valid interpretation is “better” than another.

This is why randomness and variation work better for art generation. For code, you need more constraints and iterations to reach a working, acceptable solution.

An emotional photograph in the style of a Fujifilm disposable camera (like 'Utsurundesu') showing a medium shot of a Japanese woman in her 20s, crying at a wedding ceremony. She stands among guests, wearing a soft pastel-colored dress. Her makeup is slightly smudged by tears. The scene is imbued with deep nostalgia and melancholy. Soft, dim lighting casts a gentle glow on her dark hair. The focus is on her expressive face, and in the reflection of her eyes, a bride and groom can be seen standing together. The background shows a beautiful wedding venue with warm lighting. The image features pronounced film grain, slightly muted tones, and cinematic blur, amplifying the emotional intensity of the moment from a wider perspective. The composition evokes longing and fleeting memories, characteristic of heartfelt disposable camera photography. The background is softly blurred.

With code, it’s slightly different. Obviously, as the codebase grows, the number of possible solutions increases too. But here’s a crucial difference: unlike art, not all solutions are equally valid.

Visibility changes perception

AI art is the final product users see. AI-generated code is usually hidden behind an app or website. People don’t see the code, so they don’t react to it the same way.

Tools like Bolt, Lovable, and v0 generate code trained on public repositories (often without permission), yet there’s little outrage compared to AI image generators.

What about AI-generated websites?

Websites turn code into pixels, so they’re visible. But they’re still treated differently from art. Most people don’t see a website as “human expression” the way they see a painting or illustration. Also, AI websites often look generic or similar to templates, and people are less likely to notice or care if AI generated them.

With art, flaws like extra fingers or the overused “Ghibli style” are obvious. With code rendered as a UI, those tells are less visible. AI-generated art stands out; AI-generated code is invisible.

Eduardo Zepeda
Eduardo Zepeda
Just call me Ed. developer and Linux (GNU/Linux) preacher. I like boring and predictable frameworks, the more opinionated and less boilerplate the better. I think Django is the best framework for MVPs. I used to believe in the goodness of cryptocurrencies outside of monetary speculation.