Skip to main content

Quine

·58 words·1 min
Ben Yu
Author
Ben Yu
Food, running, books & tech

Inspired by this impressive piece of engineering [https://github.com/mame/quine-relay], I tried to write my one quine in CoffeeScript.

The trick I used was to encode the entire file into decimal ASCII and store it in the data array. To rebuild the actual code, you convert it back to characters. This lets you store the code, and run it too!