Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6745405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:12:02+00:00 2026-05-26T12:12:02+00:00

What does experimental research say about white space in code? Let me be specific:

  • 0

What does experimental research say about white space in code? Let me be specific: I’m talking about cognitive studies that compare how quickly and effectively people can read and grasp visual information that comes across in different formats.

Let’s say you were designing a new computer language and had to make some decisions that affect how the source code looks. Or you were simply writing a style guide for a new language and wanted to make recommendations. Relevant topics might be identifier style (snake_cased_identifiers vs. camelCaseIdentifiers / PascalCaseIdentifiers), horizontal indentation, documentation styles, or vertical spacing.

I’m intentionally asking this question in this way to avoid recommendations such as:

  • “it doesn’t matter (without justification for the claim)”
  • “do what the community already recommends for language X.”

I don’t want a flame war between people that support differing approaches; rather, I’d like to know what experimental research has to say about the matter. (And I don’t expect any particular study to necessarily be completely ‘objective’ or ‘neutral’.)

To give a ‘squishier’ motivation for this question: People appreciate white space in code, when reading documents, and in art (such as listening to music). These fields all put a big emphasis on the importance of space.

So, thanks, I’d appreciate to hear what the studies have to say. To be clear, I’m not ruling out the importance of style and art — I actually would hope that the wisdom from these worlds will show up in experimental studies.

In summary, if you can, please touch on one or more of the following:

  • variable naming convention
  • horizontal indentation
  • horizontal alignment (align the equal signs across multiple lines?)
  • vertical spacing
  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:12:03+00:00Added an answer on May 26, 2026 at 12:12 pm

    There is an annual IEEE conference titled the International Conference on Program Comprehension (ICPC) which often has experimental studies on program comprehension. The most relevant that I found from the past three years are:

    • An Eye Tracking Study on camelCase and under_score Identifier Styles “While results indicate no difference in accuracy between the two styles, subjects recognize identifiers in the underscore style more quickly.”

    • To camelcase or under_score “Results indicate that camel casing leads to higher accuracy among all subjects regardless of training, and those trained in camel casing are able to recognize identifiers in the camel case style faster than identifiers in the underscore style.”

    In addition to the computer-science specific cognitive literature, there are studies about online and hypertext reading:

    • [Chaparro, 2005] Reading Online Text with a Poor Layout: Is Performance Worse? by Barbara S. Chaparro, A. Dawn Shaikh, & J. Ryan Baker, Usability News, Volume 7, Issue 1, February 2005.

    • [Lin, 2004] Evaluating older adults’ retention in hypertext perusal: impacts of presentation media as a function of text topology by Dyi-Yih Michael Lin in “Computers in Human Behavior”, Volume 20, Issue 4, July 2004, Pages 491-503. Available from ScienceDirect

    • Cognitive load in hypertext reading: A review by Diana DeStefano and Jo-Anne LeFevre.

    These papers less directly address the question, but I mention them in hopes that they provide some context. The first two references were found thanks Michael Suodenjoki’s blog post entitled White space matters in program source code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any recommendations of tools that can be of assistance with moving
Does anyone use have a good regex library that they like to use? Most
There are some eye-candy experimental CSS like border-radius (rounded corners) and gradients that I
Does anybody know a Java implementation of the DRMAA-API that is known to work
I'm making a simple cart program in php. What the code below does is
Lets say I have the following file in called index in the directory D:\Experimental:
From my experiments, it does not appear to do so. If this is indeed
Does Google force employees who have offers from Facebook to leave immediately?
Does anyone remember the XMP tag? What was it used for and why was
Does the Java language have delegate features, similar to how C# has support for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.