Does it really matters to write code with proper spacing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Does it really matters to write code with proper spacing?

Need your opinions on this

30th Jul 2020, 4:55 PM
Mayank Pathak
Mayank Pathak - avatar
5 Answers
+ 2
Oh, I understand now. A code that's basically a one-liner will be disorganized, and if you wanted people to understand it, you need to use an excessive amount of comments or one large multi-line comment. A code that is more spread, or even split into different files would be easier for a person who takes their time to read through codes and understand them. You could also use less comments, because you don't have to explain everything in one giant clump. Spread out code is also easier for the coder to understand, because the output would be more understandable if you knew what the code was supposed to do. It makes bug fixing easier. Still putting more space between statements in code makes it more organized, and is therefore better.
30th Jul 2020, 5:17 PM
PresidentOfYes12
PresidentOfYes12 - avatar
+ 6
Yes, it does. When you write code, you first things first write it for another people who may read it in the future, and only then for a compiler/interpreter/browser etc. Code always looks better when all spacings and indentations are done correctly.
30th Jul 2020, 5:32 PM
Artem 🇺🇦
Artem 🇺🇦 - avatar
+ 3
If needed any spacing in code we should sure give because it is useful to learn anyone & also give indetend when needed on code .
30th Jul 2020, 4:59 PM
Sâñtôsh
Sâñtôsh - avatar
+ 2
What do you mean? The question isn't that clear, so I can't answer it well.
30th Jul 2020, 4:56 PM
PresidentOfYes12
PresidentOfYes12 - avatar
+ 2
Should code look beautiful on writing or can write in any way or format, like writing it in a single line or with few lines with proper space and format. #PresidentOfYes12
30th Jul 2020, 5:00 PM
Mayank Pathak
Mayank Pathak - avatar