The Elements Of Programming Style
   HOME
*





The Elements Of Programming Style
''The Elements of Programming Style'', by Brian W. Kernighan and P. J. Plauger, is a study of programming style, advocating the notion that computer programs should be written not only to satisfy the compiler or personal programming "style", but also for "readability" by humans, specifically software maintenance engineers, programmers and technical writers. It was originally published in 1974. The book pays explicit homage, in title and tone, to ''The Elements of Style'', by Strunk & White and is considered a practical template promoting Edsger Dijkstra's structured programming discussions. It has been influential and has spawned a series of similar texts tailored to individual languages, such as ''The Elements of C Programming Style'', ''The Elements of C# Style'', ''The Elements of Java(TM) Style'', ''The Elements of MATLAB Style'', etc. The book is built on short examples from actual, published programs in programming textbooks. This results in a practical treatment rather ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Brian W
Brian (sometimes spelled Bryan (given name), Bryan in English) is a male given name of Irish language, Irish and Breton language, Breton origin, as well as a surname of Occitan language, Occitan origin. It is common in the English-speaking world. It is possible that the name is derived from an Celtic languages, Old Celtic word meaning "high" or "noble". For example, the element ''bre'' means "hill"; which could be transferred to mean "eminence" or "exalted one". The name is quite popular in Ireland, on account of Brian Boru, a 10th-century High King of Ireland. The name was also quite popular in East Anglia during the Middle Ages. This is because the name was introduced to England by Bretons following the Norman Conquest. Bretons also settled in Ireland along with the Normans in the 12th century, and 'their' name was mingled with the 'Irish' version. Also, in the north-west of England, the 'Irish' name was introduced by Scandinavian settlers from Ireland. Within the Gaelic speaking ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Aphorism
An aphorism (from Greek ἀφορισμός: ''aphorismos'', denoting 'delimitation', 'distinction', and 'definition') is a concise, terse, laconic, or memorable expression of a general truth or principle. Aphorisms are often handed down by tradition from generation to generation. The concept is generally distinct from those of an adage, brocard, chiasmus, epigram, maxim (legal or philosophical), principle, proverb, and saying; although some of these concepts may be construed as types of aphorism. Often, aphorisms are distinguished from other short sayings by the need for interpretation to make sense of them. In ''A Theory of the Aphorism'', Andrew Hui defined an aphorism as "a short saying that requires interpretation." History The word was first used in the '' Aphorisms'' of Hippocrates, a long series of propositions concerning the symptoms and diagnosis of disease and the art of healing and medicine. The often cited first sentence of this work is: "" - "life is shor ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Computer Programming Books
A computer is a machine that can be programmed to carry out sequences of arithmetic or logical operations (computation) automatically. Modern digital electronic computers can perform generic sets of operations known as programs. These programs enable computers to perform a wide range of tasks. A computer system is a nominally complete computer that includes the hardware, operating system (main software), and peripheral equipment needed and used for full operation. This term may also refer to a group of computers that are linked and function together, such as a computer network or computer cluster. A broad range of industrial and consumer products use computers as control systems. Simple special-purpose devices like microwave ovens and remote controls are included, as are factory devices like industrial robots and computer-aided design, as well as general-purpose devices like personal computers and mobile devices like smartphones. Computers power the Internet, which links bill ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

1974 Non-fiction Books
Major events in 1974 include the aftermath of the 1973 oil crisis and the resignation of President of the United States, United States President Richard Nixon following the Watergate scandal. In the Middle East, the aftermath of the 1973 Yom Kippur War determined politics; following List of Prime Ministers of Israel, Israeli Prime Minister Golda Meir's resignation in response to high Israeli casualties, she was succeeded by Yitzhak Rabin. In Europe, the Turkish invasion of Cyprus, invasion and occupation of northern Cyprus by Turkey, Turkish troops initiated the Cyprus dispute, the Carnation Revolution took place in Portugal, and Chancellor of Germany, Chancellor of West Germany Willy Brandt resigned following an Guillaume affair, espionage scandal surrounding his secretary Günter Guillaume. In sports, the year was primarily dominated by the 1974 FIFA World Cup, FIFA World Cup in West Germany, in which the Germany national football team, German national team won the championshi ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Kilobaud Microcomputing
''Kilobaud Microcomputing'' was a magazine dedicated to the computer homebrew hobbyists from 1977 to 1983. How ''kilobaud'' started Wayne Green, the editor and publisher of ''kilobaud'', had been the publisher of ''BYTE'' magazine, (another influential microcomputer magazine of the time) where he published the first four issues in his own office. But one day in November 1975 Wayne came to work, and found that his ex-wife and the rest of the ''Byte'' magazine staff had moved out of his office and had taken the January issue with them. Consequently, the January 1976 issue had Virginia Green listed as publisher instead of Wayne Green. Wayne was not happy with this development, so he left Byte to start a new magazine to compete with the fledgling ''Byte''. He wanted to call it "KiloByte" to trump ''Byte''. But the people of ''Byte'' quickly trademarked KILOBYTE as a cartoon series in ''Byte'' magazine. So he named the new magazine "kilobaud" instead. The magazine was first publish ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  




PL/I
PL/I (Programming Language One, pronounced and sometimes written PL/1) is a procedural, imperative computer programming language developed and published by IBM. It is designed for scientific, engineering, business and system programming. It has been used by academic, commercial and industrial organizations since it was introduced in the 1960s, and is still used. PL/I's main domains are data processing, numerical computation, scientific computing, and system programming. It supports recursion, structured programming, linked data structure handling, fixed-point, floating-point, complex, character string handling, and bit string handling. The language syntax is English-like and suited for describing complex data formats with a wide set of functions available to verify and manipulate them. Early history In the 1950s and early 1960s, business and scientific users programmed for different computer hardware using different programming languages. Business users were moving from ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Procedural Programming Languages
Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the ''procedure call''. Procedures (a type of routine or subroutine) simply contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution, including by other procedures or itself. The first major procedural programming languages appeared circa 1957–1964, including Fortran, ALGOL, COBOL, PL/I and BASIC. Pascal and C were published circa 1970–1972. Computer processors provide hardware support for procedural programming through a stack register and instructions for calling procedures and returning from them. Hardware support for other types of programming is possible, but no attempt was commercially successful (for example Lisp machines or Java processors). Procedures and modularity Modularity is generally desirable, especially in large, complicated programs. Inputs are usually ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Structured Programming
Structured programming is a programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of the structured control flow constructs of selection ( if/then/else) and repetition ( while and for), block structures, and subroutines. It emerged in the late 1950s with the appearance of the ALGOL 58 and ALGOL 60 programming languages, with the latter including support for block structures. Contributing factors to its popularity and widespread acceptance, at first in academia and later among practitioners, include the discovery of what is now known as the structured program theorem in 1966, and the publication of the influential "Go To Statement Considered Harmful" open letter in 1968 by Dutch computer scientist Edsger W. Dijkstra, who coined the term "structured programming". Structured programming is most frequently used with deviations that allow for clearer programs in some particular cases, such as when exceptio ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


Programming Style
Programming style, also known as code style, is a set of rules or guidelines used when writing the source code for a computer program. It is often claimed that following a particular programming style will help programmers read and understand source code conforming to the style, and help to avoid introducing errors. A classic work on the subject was ''The Elements of Programming Style'', written in the 1970s, and illustrated with examples from the Fortran and PL/I languages prevalent at the time. The programming style used in a particular program may be derived from the coding conventions of a company or other computing organization, as well as the preferences of the author of the code. Programming styles are often designed for a specific programming language (or language family): style considered good in C source code may not be appropriate for BASIC source code, etc. However, some rules are commonly applied to many languages. Elements of good style Good style is a subjective ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  


picture info

Edsger Dijkstra
Edsger Wybe Dijkstra ( ; ; 11 May 1930 – 6 August 2002) was a Dutch computer scientist, programmer, software engineer, systems scientist, and science essayist. He received the 1972 Turing Award for fundamental contributions to developing programming languages, and was the Schlumberger Centennial Chair of Computer Sciences at The University of Texas at Austin from 1984 until 2000. Shortly before his death in 2002, he received the ACM PODC Influential Paper Award in distributed computing for his work on self-stabilization of program computation. This annual award was renamed the Dijkstra Prize the following year, in his honor. Biography Early years Edsger W. Dijkstra was born in Rotterdam. His father was a chemist who was president of the Dutch Chemical Society; he taught chemistry at a secondary school and was later its superintendent. His mother was a mathematician, but never had a formal job. Dijkstra had considered a career in law and had hoped to represent the Netherlan ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]  




William Strunk Jr
William Strunk Jr. (July 1, 1869 – September 26, 1946) was an American professor of English at Cornell University and author of ''The Elements of Style'' (1918). After revision and enlargement by his former student E. B. White, it became a highly influential guide to English usage during the late 20th century, commonly called Strunk & White. Life and career Strunk was born and reared in Cincinnati, Ohio, the eldest of the four surviving children of William and Ella Garretson Strunk. He earned a bachelor's degree at the University of Cincinnati in 1890 and a PhD at Cornell University in 1896. He spent the academic year 1898–99 at the Sorbonne and the Collège de France, where he studied morphology and philology. Strunk first taught mathematics at Rose Polytechnical Institute in Terre Haute, Indiana in 1890–91. He then taught English at Cornell for 46 years, and was elected to Phi Beta Kappa, disdaining specialization and becoming an expert in both classical and non-English l ...
[...More Info...]      
[...Related Items...]     OR:     [Wikipedia]   [Google]   [Baidu]