Creative Coding Short Story: Ignorance is a Feature
I tried expressing my approach to creative coding through a short story. I hope you enjoy it!
Ignorance is a Feature
Chapter 1: Garbage Out, Garbage In
“You know what they say: ‘Garbage out, garbage in,’” she said.
“If you’re going to quote the proverb, it’s ‘Garbage in, garbage out.’”
“My, my, our Vice President is quite the scholar.”
Normally, I would have let the Club President’s condescending tone slide, but for some reason, it got under my skin today. I shot back, “Well, it’s better than being ignorant.”
“Oh, ignorance is a feature, not a bug.”
“Huh?”
She’s always like this. We were in the clubroom of Cedar Creek High School (or CC High, as everyone called it). Calling it a “club” was generous, considering the President and I were the only two members.
“It’s precisely because we’re ignorant that we experience wonder and joy,” she continued. “Ignorance isn’t a flaw. It’s a functional trait designed to help us encounter the unknown.”
“There you go again, talking in riddles to dodge the point.”
As we bickered, the sky outside the window began to darken. I let out a sigh and glanced at the clock on the wall. Today, it had been rotated 240 degrees. She claimed it served as a brain teaser every time you looked at it, though to me, it was just about as hard to read.
“Anyway, what are we going to do about the upcoming programming contest?”
“Oh, I’ve got a few ideas for that. How about generating intricate patterns using city map data?”
“Not again! Last year, you tried that and…”
Realizing I’d said too much, I bit my tongue. Back when I was still in middle school, I had attended last year’s programming contest as a spectator. CC High’s entry was completely incomprehensible. Still, I vividly remembered being captivated by the swirling vortex of light pulsing across the screen, and the sight of her getting chewed out afterward by someone who looked like a teacher.
“Ha ha, right, that did happen, didn’t it? …Ooh, look how pretty this is!”
Completely unfazed by my awkward silence and downcast gaze, the President was already back to her usual routine, happily spawning mysterious geometric shapes and mathematically driven particles of light on her monitor.
Her technical skills were off the charts, yet I had never once seen her write a single line of practical code. People around school called her “a waste of advanced skill” or “CC High’s rogue coder.” She herself seemed quite fond of the nickname “Creator of Chaos.”
In contrast, I was just an ordinary high school freshman. I loved programming, and my goal was to study hard and write clean, efficient, bug-free code that met every specification to the letter.
And yet… sometimes, writing code felt exhausting. How on earth did she manage to look like she was having so much fun every single time she touched a keyboard?
Chapter 2: APM
The day before the contest, I was panicking.
“I just checked out Downstream High’s entry, and we’re in serious trouble! If we don’t add some practical features to ours, we don’t stand a chance!”
Downstream High School was one of the top powerhouse schools in the country. Armed with minds and bodies forged through early-morning “one-finger typing drills” and “thousand-rep algorithm gauntlets,” they efficiently engineered flawless, practical software and had won the national championship multiple times.
At Downstream High, freshmen weren’t even allowed to write code. Instead, they were drilled relentlessly in the fundamentals: requirements definition, architectural and detailed design, man-hour estimation, and progress tracking. Rumor had it their flowchart stencils were made of solid lead, though I couldn’t help thinking that not being able to see through them would make them awfully hard to use.
“We’re never going to beat them at their own game anyway,” the President said. “Why don’t you try having a little fun too, Vice President?”
“Their club president literally told me to my face: ‘Software development is a means to solve real-world problems. Code without system design or a plan is garbage. What you two are making is nothing more than self-indulgent make-believe!’”
“Sounds just like him.”
Without taking her eyes off the screen, she let out an amused, exasperated laugh.
“What’s the fun in coding strictly by some rigid specification sheet? Imagine running your program and never experiencing that electric thrill of, ‘Whoa, it actually did that!?’ Don’t you think that’s kind of sad?”
Yeah, we’re doomed. We’re guaranteed to be disqualified again this year.
My shoulders slumped, and I sank deep into my chair.
“You tell me to enjoy it, but… programming is supposed to be harder than that, isn’t it? Like the agony of creation, a thorny path you have to walk to reach the right answer.”
“Ah, yeah, I don’t really do that whole ‘agony’ thing.”
“I guess that’s what happens when you’re a coding genius.”
“Nope, that’s not it at all.”
She spun her chair around to face me head-on.
“I don’t think, ‘I want to make X, so I’ll write code Y.’ My mindset is, ‘If I write code like this, what kind of thing will end up happening?’”
“Huh? What about… design? Or planning?”
“None. All that exists is trial and error.”
Maybe mistaking my wide-eyed shock for curiosity, she pulled a single sheet of copy paper from her desk drawer. Across the top, in bold letters, was the title: APM (Accidental Programming Method).
“Just try writing some code with your own hands,” she said, handing me the sheet. Listed on it were a series of unhinged techniques for deliberately injecting randomness and accidents into a program.
“What is this?”
“Come on, move your hands before you overthink it! Remember the motto: ‘Don’t think, Just do it, Enjoy the ride, At your own risk, Thank you for choosing us!’”
“That slogan is way too long!”
Chapter 3: Zero Practicality
“The judges this year are incredible! Look! That guy over there is the CEO of a massive tech company. He’s on TV all the time!”
The moment we arrived at the contest venue, my sleep-deprived brain went into overdrive, and I couldn’t keep the excitement out of my voice. Trailing behind me with a huge yawn, the President looked utterly exhausted.
“Oh, is he? Still, I can’t wait to see what ends up rendering on that giant screen.”
Her words snapped me back to reality.
…Right. Not even we, the creators, knew what our program would actually produce until we hit run. It felt like having a bucket of ice water dumped over my head; the color drained from my face.
Last night, after she drilled the philosophy of APM into me, I had gotten completely sucked into the screen as every tweak to the code birthed something wildly unexpected. Swept up in the rush of trial and error, I had hammered away at the keyboard until dawn without even realizing it. Now, watching other schools deliver crisp, specification-driven presentations, reality came crashing back down.
What we had brought with us was a mystery program with zero practical value. My hands were shaky and my knees were weak. I could not seem to stand on my own feet.
Chapter 4: A Carefree Voice
“Entry number eight: Cedar Creek High School.”
The President strode confidently toward the center of the stage while I trudged along behind her. At her prompting, I closed my eyes, muttered a silent prayer, and pressed the execute key with a trembling finger.
The instant our code bloomed across the main screen, a collective gasp, almost a shriek, erupted from the audience. I squeezed my eyes shut. We’re done for, I thought.
“Yep, feeding the audience’s reactions back into the system really was a fun idea,” came the President’s breezy, carefree voice beside me.
Tentatively, I opened my eyes.
Projected onto the screen was a tempest of light where chaos and order collided. Reacting in real time to the crowd’s movements and murmurs, the colors and patterns pulsed across the display, eerily alive, and breathtakingly beautiful.
Seeing the visuals respond to their reactions, the audience cheered even louder. Fueled by the noise, the graphics morphed even more vividly, surging with intensity.
I couldn’t believe the feedback code I had thrown together out of sheer desperation last night was triggering a chain reaction like this. It felt as if our program and the entire auditorium had fused into a single, massive living organism, swelling with an uncanny energy.
In the end, our piece swept the audience vote by a landslide and won a hastily created “Special Artistic Achievement Award.”
Our faculty advisor looked like he’d just bitten into a lemon, though he didn’t scold us. Meanwhile, the president of Downstream High stood frozen with his mouth hanging open, staring at us in utter disbelief.
Chapter 5: Something Like This
Once the awards ceremony wrapped up, that famous tech CEO came jogging over from the judges’ table with a broad smile.
“Brilliant work, you two! With that kind of expressive power, how would you like to build a promotional display system for my company?”
The President beamed back at him with a radiant smile.
“Oh, no thank you. We’ll pass.”
“What? Why? We’ll provide the resources and a development environment, and it’ll look fantastic on your resume!”
“We just aren’t interested in building things when someone tells us, ‘Make something like this.’ Endless trial and error, that’s our entire goal, and where we get our joy.”
Leaving the dumbfounded CEO behind, we slung our bags over our shoulders and strolled out of the venue.
Stepping outside, we were greeted by a crisp sky painted in sunset hues.
“…President, was it really okay to say something that cool and turn him down?”
“Maybe I acted a little too tough. Still, you know…”
Walking up the crimson-lit hill, she glanced over at me.
“Even if someone asks us to ‘make something like this,’ with the way we code, we could never make anything go according to plan anyway.”
After a beat of silence, I burst out laughing.
“You’ve got a point there!”
“Right?” she replied with a mischievous grin.
Laughing together, the two of us headed home.
What would happen if I wrote the code like this? I already had a snippet itching in my mind to try out as soon as I got back. I had no idea if it would even run, let alone what it might create.
Endless trial and error, maddening yet endlessly endearing, was waiting for me.
Afterword
I created the cover image for this post using Processing.
It started with a simple idea: “What would happen if I calculated the x and y coordinates using completely unrelated functions and connected the points with lines?” Through trial and error, I cobbled together arbitrary mathematical expressions like sin(_a * TWO_PI + _b) and pow(_a, 3) * cos(_b).
In other words, this piece is the direct result of putting the very “trial and error” depicted in the story into practice.
Trial and error happens in product development too, but there it serves the goal of building a better product—and always within the constraints of budgets and deadlines.
In creative coding, you can ignore budgets, deadlines, and specifications, experimenting freely on a whim and savoring the joy of stumbling upon results you never could have predicted. Being able to generate something that surpasses your own imagination through trial and error is, to me, one of the greatest thrills of creative coding.
That said, as the dialogue in the story points out, this approach is terrible when you want to build something specific, such as an entry for a themed contest, because not even you know what you’re going to end up with. Though I didn’t touch on it in the story, when a clear goal comes first, structured planning and design are surely needed.
Ultimately, it all comes down to balance. Whenever you want to create something beyond your own imagination, or whenever writing code starts to feel like a chore, it might be worth letting your instincts take the wheel and enjoying a bit of trial and error.
This work is licensed under CC BY-SA 4.0
