skip to main content
article
Free Access

The influence of color on program readability and comprehensibility

Published:01 February 1986Publication History
Skip Abstract Section

Abstract

Readability and comprehensibility are among the most important attributes of a program. A program that is easy to read and understand is easier to test, maintain, and modify. Many factors affect program readability and comprehensibility, including variable names, internal documentation, modularity, and so on. This paper investigates the influence of color on program readability and comprehension. Three color schemes were used: Color-scheme-A used different colors to indicate the different blocks in a program; Color-scheme-B used different colors to identify the various statements function in the program; and the third color scheme was the usual black-and-white programs. This study showed that subjects who used programs with Color-scheme-B had the highest mean score for program comprehension, followed by those who used Color-scheme-A. Subjects who used black-and-white programs scored the lowest on the comprehension quiz.

References

  1. 1 Bohl, M. Flowchartinq Techniques. Scientific Research Associates, Chicago, 1971.Google ScholarGoogle Scholar
  2. 2 Boysen, J. and Keller, R. "Measuring Computer Program Comprehension". ACM SIGCSE Bulletin 12, 1 (Feb. 1980), 92-102. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 Clifton, M.H. "A Technique for Making Structured Programs more Readable". ACM SIGPLAN Notices 13, 4 (April 1978), 58-63. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4 Gimpel, J.F. "Contour, A Method of Preparing Structured Flowcharts". ACM SIGPLAN Notices 15, I0 (Oct. 1980), 35-41. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5 Grogono, P. P_~rosramming in Pascal. Addison-Wesley Publishing Company, Inc., Reading, MA, 1978, 186-188.Google ScholarGoogle Scholar
  6. 6 Hue r as, J. and Ledg a rd , H. "An Automatic Formatting Program for Pascal". ACM SIGPLAN Notices 12, 7 (July 1977-~,- 82-84. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7 Leinbaugh, D.W. "Indenting for the Compiler". ACM SIGPLAN Notices 15, 5 (May 1980), 41-48. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 Love, T. "An Experimental Investigation of the Effect of Program Structure on Program Understanding" Proc. ACM Conference o nn Languag@ ~ fo___{r Reliable Software. March 1977, 105- 113. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9 Miara, R. et al. "Program Indentation and Comprehensibility". Communications of the ACM 15, ii (Nov. 1983), 861-867. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10 Novcia, A.F. "Indentation Documentation and Programmer Comprehension". Proc. of Human Factors in Computer Systems_ ACM Washington, D.C. 1981, I{~c- l-f0qGoogle ScholarGoogle Scholar
  11. 11 Ramsdell, J. "Pretty Printing Structured Programs with Connector Lines". ACM SIGPLAN Notices 14, 9 (Sept. 1979), 74-75. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12 Shneiderman, B. and McKay, D. "Experimental Investigations of Computer Program Debugging and Modification". Proc. 6th International Consress of the International E_r~onomics Association. July 1976, College Park, MD.Google ScholarGoogle Scholar
  13. 13 Shneiderman, B. et al. "Experimental Investigations of the Utility of Detailed Flowcharts in Programming", Communications of the ACM 20, 6 (June Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14 Weissman, L.M. "Psychological Complexity of Computer Programs: An Experimental Methodology" ACM SIGPLAN Notices 15, 6 (June 1974), Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. The influence of color on program readability and comprehensibility

                  Recommendations

                  Reviews

                  Lee Girard Herberts

                  This paper investigates the readability and comprehensibility of traditional (i.e., black and white) versus color-coded (colored statements, structures) programs. The most readable programs were those color-coded by statement type (e.g., blue procedure calls, red functions). Although the research topic has a small scope, there are implications for improving programmer productivity (using colored CRTs and printout). The research is well executed and given a good presentation.

                  Access critical reviews of Computing literature here

                  Become a reviewer for Computing Reviews.

                  Comments

                  Login options

                  Check if you have access through your login credentials or your institution to get full access on this article.

                  Sign in

                  Full Access

                  • Published in

                    cover image ACM SIGCSE Bulletin
                    ACM SIGCSE Bulletin  Volume 18, Issue 1
                    Proceedings of the 17th SIGCSE symposium on Computer science education
                    February 1986
                    304 pages
                    ISSN:0097-8418
                    DOI:10.1145/953055
                    Issue’s Table of Contents
                    • cover image ACM Conferences
                      SIGCSE '86: Proceedings of the seventeenth SIGCSE technical symposium on Computer science education
                      February 1986
                      336 pages
                      ISBN:0897911784
                      DOI:10.1145/5600

                    Copyright © 1986 ACM

                    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                    Publisher

                    Association for Computing Machinery

                    New York, NY, United States

                    Publication History

                    • Published: 1 February 1986

                    Check for updates

                    Qualifiers

                    • article

                  PDF Format

                  View or Download as a PDF file.

                  PDF

                  eReader

                  View online with eReader.

                  eReader