Programming with small blocks

  • Authors:
  • Mark K. Joseph

  • Affiliations:
  • A Burroughs Company, Santa Monica, CA

  • Venue:
  • ACM SIGSOFT Software Engineering Notes
  • Year:
  • 1984

Quantified Score

Hi-index 0.01

Visualization

Abstract

Programming style is a highly personalized characteristic of programs. Modular and block structured programming techniques provide many standards for good programming. These techniques are used to develop well designed but only marginally readable code. Similar organizational techniques are not typically applied to code inside subroutines, which is either too small or too specific to be further broken down into subroutines. The result is often obscure subroutine code that makes the maintenance programmer's job extremely difficult. Presented here is a styling technique for intra-subroutine code that groups program statements into "small BLOCKS" of function or conditional constraints. It is shown that this style of formating subroutine code can greatly improve the readability of the average program. The technique is demonstrated in Pascal, C, and Lisp.