May 8, 2021 10:16 am GMT
Original Link: https://dev.to/siddharthshyniben/challenge-write-a-true-quine-4pme
Challenge: Write a true quine
By a true quine I mean a real true quine. Maybe the wikipedia article of quine will help:
A quine is a computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".
So no evals or reading the source like this:
function quine() { console.log(quine.toString()+" quine();") } quine();
Can you do it?
If you need a hint
The wikipedia article contains a Java Quine
Original Link: https://dev.to/siddharthshyniben/challenge-write-a-true-quine-4pme
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To