← Back to list

The Art of Programming Rules: When Code Becomes Design

Learning Programming as a Creative Skill for a Present Shaped by Artificial Intelligence

Andreu Sanchez Castillero in Think by SHIFTA · 2026-06-11 08:31 · 0 claps · 4.1 min read
#creative-computing #code #learning-to-code #programming
Open on Medium ↗
Wiki topics: AI · AI · General EDU · Education & Learning 💻 · Programming

The Art of Programming Rules: When Code Becomes Design

Learning Programming as a Creative Skill for a Present Shaped by Artificial Intelligence

“Within a twenty inch square area, using a black, hard crayon, draw ten thousand freehand lines, of any length, at random”.

In 1971, the American artist Sol LeWitt wrote these instructions for one of his celebrated wall drawings, works in which he described to others how to realize his ideas on a wall. They consisted of a series of steps, sometimes brief and precise, sometimes long and ambiguous, which draftspeople were expected to read and execute without any further guidance.

Today, as tools capable of generating images from text continue to expand, works such as LeWitt’s have gained renewed relevance. Long before the prompts of generative artificial intelligence, he and other artists and musicians, including John Cage, Yoko Ono, and La Monte Young, were already working by describing processes rather than producing artworks directly.

LeWitt understood that his instructions functioned like a musical score: he was the composer, while others performed the piece. What mattered was not the final result, but the system of rules capable of bringing it into existence. As he famously put it, with this method “the idea becomes a machine that makes the art”.

From the Wall to the Screen

Although personal computers and modern programming languages did not yet exist, Sol LeWitt’s working method relied on the same algorithmic logic that underpins computer programs: defining a sequence of steps to achieve an expected outcome.

This connection between conceptual art and programming became the starting point for one of the projects of American artist and educator Casey Reas. In 2004, Reas took three of LeWitt’s wall drawing instructions and wrote several computer programs based on them. The result was {Software} Structures, a series of twenty-six code-based artworks that are now part of the collection of the Whitney Museum of American Art.

Reas’s project was not simply a translation of LeWitt’s work onto a screen. It also demonstrated how code can generate complex and compelling visual behaviours when the right programming languages are used.

Processing and p5.js

More than for his work as an artist, Casey Reas is known for co-creating, alongside Ben Fry, the programming language Processing. It was developed with the goal of encouraging the use of code in the visual arts while also bringing visual culture into the realm of software.

Although other languages linked to computational art already existed, what set Processing apart was its accessibility. Compared with more technical and difficult environments, Processing offered an experience closer to a digital sketchbook, where writing code and seeing the results on screen happen almost simultaneously. This simplicity became even more evident when Processing, originally based on Java, evolved into p5.js, a JavaScript adaptation designed to run directly in any web browser.

Yet the value of Processing and p5.js lies not only in their ability to create images. Their significance also comes from teaching a different way of thinking visually: working with systems, rules, iteration, and chance. They do not merely create forms; they allow creators to design processes and generate multiple outcomes along the way, not just at the end.

AI, Prompts, and Creative Computing

One of the main differences between human languages and programming languages is that the former are inherently ambiguous, while the latter operate through strict syntactic rules. A text written in natural language can be interpreted in different ways; code, by contrast, demands absolute precision. A single misplaced word can cause an entire system to fail.

Although that distinction still exists, the emergence of generative AI is transforming our relationship with software. After all, what is a prompt if not a written instruction designed to produce a result? In a sense, these tools revisit some of the questions that artists such as Sol LeWitt were already raising decades ago: to what extent does creating consist of defining processes and rules rather than producing images directly?

There is, however, a fundamental difference between writing code and working with generative models. Processing, like any programming language, executes exact and predictable instructions. Large language models, by contrast, infer intentions from natural language, even when prompts are ambiguous or incomplete. Code seeks precision; AI prioritizes interpretation.

That does not mean one tool must be chosen over the other. In fact, it is increasingly common for both to coexist within the same creative process. Generative models can actually write code, but creative computing environments provide a level of control that is difficult to achieve through prompts alone.

Perhaps the most important question, however, is not technological but cultural. In a world where generating images is becoming ever easier, understanding the systems that produce them may become a form of creative literacy. Learning Processing or p5.js is no longer simply about writing lines of code. It is also about understanding how rules, data, and chance can be transformed into visual experiences. Creative coding is not merely the acquisition of technical skills. It is a way of understanding, questioning, and reshaping the technologies through which we design the present.

Ready to turn code into art and shape the future of design? Take your creative literacy to the next level with our **Master in Creative Computing**. Apply now and start reshaping the digital present!

Ferran Esteve. Innovation and Digital Transformation Lead at Oxfam Intermón and Mentor for the Master’s in Creative Computing at SHIFTA.


메타데이터
post_id
c91bf9509de2
slug
the-art-of-programming-rules-when-code-becomes-design-c91bf9509de2
url
https://medium.com/think-by-shifta/the-art-of-programming-rules-when-code-becomes-design-c91bf9509de2
canonical_url
https://medium.com/think-by-shifta/the-art-of-programming-rules-when-code-becomes-design-c91bf9509de2
author_url
https://medium.com/@andreu_23898
status
ok
fetched_at
2026-06-13 07:35:29