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

  • Home
  • SEARCH
  • 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 464287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:15:36+00:00 2026-05-12T23:15:36+00:00

My intention in this question is not to be pedantic, but rather to explore

  • 0

My intention in this question is not to be pedantic, but rather to explore an overlooked axis of an important topic (the use of whitespace).
Much debate and care has been put into the use of horizontal whitespace, indenting after a conditional, a space between an if and parenthesis, etc.
In fact the issue is considered to be so important and contentious that, not only do some companies have rules and standards for it, but some companies even have rules forbidding it’s discussion.

Why is it, considering the state of horizontal whitespace, that the discussion of vertical whitespace is such a dead issue? Why is the x more important than the y? A few days ago I noticed that when I reading code, I, without thinking, often adjust vertical groupings of statements. Having read other peoples code now, with an eye toward vertical whitespace, I noticed several patterns, so I ask stackoverflow:

  • What hard and soft rules do you apply to vertical whitespace?
  • Are there any vertical whitespace uses that are generally considered very bad, or very good practice?
  • Have you found reading code with “correct” vertical whitespace helped in understanding it?
  • Does anyone other than typographers and me care?
  • 1 1 Answer
  • 0 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-12T23:15:37+00:00Added an answer on May 12, 2026 at 11:15 pm

    I look at vertical space in code the way I look at paragraphs in written prose. Just as a paragraph is meant to group sentences together that have a common point or idea, lines that are related should be grouped together.

    The overall objective is to improve the readability of the code. Just as an article without any paragraphs would be difficult to read, so to is code without any vertical space. And just as with prose, there is a balance between composing paragraphs that are too short or too long. But in the end, it mostly comes down to personal style and preference.

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

Sidebar

Related Questions

This is not a homework question, but rather my intention to know if this
I've got this form working, but according to my previous question it might not
This question is similar to this question but not quite the same. Can I
This may seem like a dumb question, or even subjective, but I'm not sure
I use contructor injection in my solution, but this one class has a property
This question is kind of complicated and I do not even know how to
I am programming in Java but this is a more of a design question
Not a web developer so i hope you will spare me if this question
This is a more theoretical question, not a specific scenario: Let's assume, we have
This is a brainstorming question about what's possible in Java (or not). I want

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.