According to some research that I found, 6 spaces hide code reading and make it difficult to read. Similarly, there are 0 spaces,
4 spaces are considered optimal for reading clarity and understanding the logical hierarchy of the program at a glance.
Steve McConnell Codex Complete Edition of the Second Issue on Layout and Style:
Subjects scored from 20 to 30 percent on an understanding test when programs had a two to four space indentation pattern than when programs had no indentation at all. In the same study, it was found that it is important not to emphasize and not emphasize the logical structure of programs. The lowest scores were achieved for programs that were not indented at all. The second lowest achieved in programs that used a six-position deepening. The study found that a deviation of two to four was optimal. It is interesting to note that many experiments believed that the six-position recess was easier to use than the smaller indentation, although their scores were lower. This is possible because the six indentation in space looks nice. But no matter how beautiful it looks, six indentation turns out to be less readable. This is an example of a clash between aesthetic appeal and readability.
Arjun j rao
source share