ALERT

[FREE DEMO] Deploy Your Enterprise Cloud in Minutes

Quine

Definition - What does Quine mean?

A quine is a program that essentially outputs its own source code. Although this sounds simple, it can be quite complex because of the necessity of engineering a string that essentially prints itself on command.

Quines are also known as self-replicating programs or self-copying programs.

Techopedia explains Quine

In order to create a quine, it is necessary to create some sort of string reference that cleanly prints the operational code of the program without complications. Quines are implemented differently in different programming languages, and many programmers have built their own versions of quine code that attempt to achieve this goal most efficiently and with the least amount of source code.

Since building a true quine requires a certain level of recursion and self-referencing resources using things like arrays, string interpolation and strategies that call multiple parts of code separately, it is thought of as a challenging programming task. But experts point out that much of this challenge is related to the syntax of modern programming languages — using the example of early basic code. Under this type of early programming language, a programmer can simply create a command to print the contents of each piece of linear code using a "for" loop or, as others suggest, similar results could be obtained simply by programming a single "list" command. However, there is a consensus that this type of easy quine really constitutes cheating and that the true execution of this type of program is manifested in the products of various programmers using languages like Perl, Python, Java, C or other more modern and complex languages.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.