/

DeepSea

2024

DeepSea

This work is an attempt to explore a short poem written in JavaScript through the act of testing. Testing is an important process in software development, and various tools have been developed to verify the execution results of code. This work incorporates Mocha, a testing framework for JavaScript, and repeatedly tests the code in the browser. At the heart of the work is a class named "DeepSea." This class has a recursive constructor, and when instantiated, it stores another instance in an internal variable called "mystery." In most cases, that instance is another instance of the same "DeepSea" class, but when diving deep enough, there is a small probability that an instance of an ancient fish will be stored instead. I regard this kind of structure as a unique value inherent to programming languages. Even without visualization, I believe this structure itself can be called generative art. The testing framework provides a means to unravel and share its internal state. It reveals the gap between expectation and reality, reminding us of the historical event that ancient fish are still alive. I hope this work will inspire reflection on the relationship between testing and code-based artworks.