Programming style

Brian W. Kernighan, P. J. Plauger

Research output: Contribution to conferencePaper

Abstract

Programs written with good style are easier to read and understand, and typically smaller and more efficient than those written badly, regardless of the language used. Yet most programmers have never been taught programming style- A s proof we need only look at their programs. In this paper we will discuss several principles of programming style, illustrating our points by criticizing and rewriting some real programs. The examples are all taken verbatim from programming textbooks, and the revisions have all been tested.

Original languageEnglish (US)
Pages90-96
Number of pages7
DOIs
StatePublished - Jan 1 1974
Externally publishedYes
Event4th SIGCSE Technical Symposium on Computer Science Education, SIGCSE 1974 -
Duration: Jan 1 1900Jan 1 1900

Other

Other4th SIGCSE Technical Symposium on Computer Science Education, SIGCSE 1974
Period1/1/001/1/00

All Science Journal Classification (ASJC) codes

  • Computer Graphics and Computer-Aided Design
  • Human-Computer Interaction

Fingerprint Dive into the research topics of 'Programming style'. Together they form a unique fingerprint.

  • Cite this

    Kernighan, B. W., & Plauger, P. J. (1974). Programming style. 90-96. Paper presented at 4th SIGCSE Technical Symposium on Computer Science Education, SIGCSE 1974, . https://doi.org/10.1145/800183.810448