Definitions

code

code

[kohd]
code, in communications, set of symbols and rules for their manipulation by which the symbols can be made to carry information. By this extended definition all written and spoken languages are codes. While these are sufficient and actually quite efficient in transmission of information, they are at times ambiguous and are highly inefficient for telecommunications. For example, a circuit capable of carrying a voice message, e.g., a telephone circuit, could carry several times as much information if that information were represented as telegraphic code.

Generally speaking, information theory shows that for any particular application there is an optimum code; it does not, unfortunately, tell how to devise the code. Morse code, consisting of a series of dots and dashes, or marks and spaces, is commonly used in telegraphy. In a computer, information is digitally encoded as strings of binary digits or bits. ASCII, the American Standard Code for Information Interchange, and Unicode are two ways representing alphanumeric characters in a binary form.

Special error-detecting codes are used extensively in digital systems to ensure the successful transfer of data. One method uses an extra bit, called a parity-check bit; if each bit is considered as a 1 or 0 (depending on whether or not it is set), the sum of a fixed number of bits can be made even (or odd) by properly setting the parity bit to a one or zero. Errors are detected on the receiving end simply by checking whether each received word is even (or odd). Audio data on a compact disc is digitally encoded and a special error correcting code is used to detect and correct errors that may have been introduced through manufacturing error or are created during the reading or playing process.

Certain arbitrary codes are used to ensure secrecy of communication; merely the message, without the rules by which the symbols are associated, will not provide an eavesdropper with an understandable version of it. See cryptography; signaling.

See P. Lunde, ed., The Book of Codes (2009).

code, in law, in its widest sense any body of legal rules expressed in fixed and authoritative written form. A statute thus may be termed a code. Codes contrast with customary law (including common law), which is susceptible of various nonbinding formulations, as in the legal opinions of judges. The earliest codes (e.g., the Roman Twelve Tables) met the popular demand that oral regulations be written down so that legal chicanery might be prevented. In later Roman law, however, the term code acquired its modern meaning of a precisely formulated statement of the principles underlying some branch of law (e.g., contracts) or an entire legal system. One of the greatest codes was the Roman Corpus Juris Civilis. In Europe, in the late 18th cent., after the general adoption of civil law by the continental countries, jurists asserted that similar codes were needed, and the parent modern European codification, the Code Napoléon, appeared (1804) and was followed by many others. The civil law code is an attempt to determine in advance what legal exigencies will arise and to furnish the means for meeting them. Basic legal principles (e.g., that contracts express the will of the parties) are worked out in systematic detail and great attention is given to consistency. The movement for codification, however, has been largely unsuccessful in countries where common law prevails, such as the United States, despite the argument that the principles of common law are sometimes uncertain and often contradict one another. Advocates of the common law assert that civil law makes possibly futile attempts to predict and control the course of developments. In the United States the term code is sometimes also applied to the statutes of a state or of the federal government that have been edited to eliminate duplication and inconsistencies and arranged under appropriate headings.

Systematic compilation of law or legal principles. The oldest extant fragments of a law code are tablets from the ancient city of Ebla dating to circa 2400 BC. The best-known ancient code is that of Hammurabi. Roman legal records began in the 5th century BC, though the first formal codification, ordered by Justinian I, was not undertaken until the 6th century AD. In the Middle Ages and into the modern era, only local or provincial compilations were attempted. The first major national code was the Napoleonic Code, followed by the German, Swiss, and Japanese codes. In common-law countries such as England and the U.S., law codes have traditionally been less important than the record of judicial decisions, though major codifications were completed in the U.S. in the 20th century (e.g., the U.S. Code, the Uniform Commercial Code). Seealso civil law; German Civil Code.

Learn more about law code with a free trial on Britannica.com.

Sequence of nucleotides in DNA and RNA that determines the amino acid sequence of proteins. A messenger RNA molecule synthesized from the DNA directs the synthesis of the protein. Three adjacent nucleotides constitute a unit known as a codon; each codon codes for a single amino acid. There are 64 possible codons, 61 of which specify the 20 amino acids that make up proteins. Because most of the 20 amino acids are coded for by more than one codon, the code is called degenerate. Once thought to be identical in all forms of life, the genetic code has been found to vary slightly in certain organisms and in the mitochondria of some eukaryotes.

Learn more about genetic code with a free trial on Britannica.com.

System of symbols and rules used for expressing information according to an unvarying rule for replacing a piece of information from one system, such as a letter, word, or phrase, with an arbitrarily selected equivalent in another system. Substitution ciphers are similar to codes except that the rule for replacing the information is known only to the transmitter and the intended recipient of the information. Binary code and other machine languages used in digital computers are examples of codes. Elaborate commercial codes were developed during the early 20th century (see Jean M.E. Baudot, Samuel F. B. Morse). In recent years more advanced codes have been developed to accommodate computer data and satellite communications. Seealso ASCII, cryptography.

Learn more about code with a free trial on Britannica.com.

Laws, enacted in the former Confederate states after the American Civil War, that restricted the freedom of former slaves and were designed to assure white supremacy. They originated in the slave codes, which defined slaves as property. In some states these codes included vagrancy laws that targeted unemployed blacks, apprentice laws that made black orphans and dependents available for hire to whites, and commercial laws that excluded blacks from certain trades and businesses and restricted their ownership of property. Northern reaction to the laws helped produce Radical Reconstruction and passage of the 14th and 15th amendments to the Constitution, as well as creation of the Freedmen's Bureau. Many provisions of the black codes were reenacted in the Jim Crow laws and remained in force until the 1964 Civil Rights Act.

Learn more about black codes with a free trial on Britannica.com.

Printed series of parallel bars of varying width used for entering data into a computer system, typically for identifying the object on which the code appears. The width and spacing of the bars represent binary information that can be read by an optical (laser) scanner that is part of a computer system. The coding is used in many different areas of manufacturing and marketing, including inventory control and tracking systems. The bar codes printed on supermarket and other retail merchandise are those of the Universal Product Code (UPC).

Learn more about bar code with a free trial on Britannica.com.

Standard bar code used to identify grocery and other retail merchandise. In the UPC system, the five digits on the left are assigned to a particular manufacturer or maker and the five digits on the right are used by that manufacturer to identify a specific type or make of product.

Learn more about Universal Product Code (UPC) with a free trial on Britannica.com.

French Code Civil

French civil code enacted by Napoleon in 1804. It clarified and made uniform the private law of France and followed Roman law in being divided into three books: the law of persons, things, and modes of acquiring ownership of things. In Louisiana, the only civil-law state in the U.S., the civil code of 1825 (revised in 1870 and still in force) is closely connected to the Napoleonic Code. Seealso law code.

Learn more about Napoleonic Code with a free trial on Britannica.com.

Collections of laws and legal interpretations developed under the sponsorship of the Byzantine emperor Justinian I from 529 to 565. Strictly speaking, they did not constitute a new legal code. Rather, Justinian's committees of jurists provided basically two reference works that contained collections of past laws and extracts of the opinions of the great Roman jurists. Also included were an elementary outline of the law and a collection of Justinian's new laws.

Learn more about Justinian, Code of with a free trial on Britannica.com.

Collections of laws and legal interpretations developed under the sponsorship of the Byzantine emperor Justinian I from 529 to 565. Strictly speaking, they did not constitute a new legal code. Rather, Justinian's committees of jurists provided basically two reference works that contained collections of past laws and extracts of the opinions of the great Roman jurists. Also included were an elementary outline of the law and a collection of Justinian's new laws.

Learn more about Justinian, Code of with a free trial on Britannica.com.

(1661–65) Four acts, passed in England during the ministry of the earl of Clarendon, designed to cripple the power of the Nonconformists, or Dissenters. The first, the Corporation Act, forbade municipal office to those not taking the sacraments at a parish church; the Act of Conformity excluded them from church offices; the Conventicle Act made meetings for Nonconformist worship illegal; and the Five-Mile Act forbade Nonconformist ministers to live or visit within five miles of any place where they had ministered.

Learn more about Clarendon Code with a free trial on Britannica.com.

in full American Standard Code for Information Interchange.

Data-transmission code used to represent both text (letters, numbers, punctuation marks) and noninput device commands (control characters) for electronic exchange and storage. Standard ASCII uses a string of 7 bits (binary digits) for each symbol and can thus represent 27 = 128 characters. Extended ASCII uses an 8-bit encoding system and can thus represent 28 = 256 characters. While ASCII is still found in legacy data, Unicode, with 8-, 16-, and 32-bit versions, has become standard for modern operating systems and browsers. In particular, the 32-bit version now supports all of the characters in every major language.

Learn more about ASCII with a free trial on Britannica.com.

See Code
Search another word or see codeon Dictionary | Thesaurus |Spanish
  • Please Login or Sign Up to use the Recent Searches feature
FAVORITES
RECENT