It allows you to read the code more easily, even psudo code can be a bit convoluted, especially if you will need ifs and loops. Indenting your psudo code will make it easier to match with your final code as well to make sure you didn't forget anything.
2006-08-01 08:33:07
·
answer #1
·
answered by John J 6
·
1⤊
0⤋
Indentation helps to visualize the structure of the (pseudo) code, especially when you want to conditionally execute a section of the code. Such visual clues are very helpful, especially to another person who has to peruse the code and understand what it does, or even yourself when you revisit the code after a gap.
A code structure is like your digital handwriting. A well indented code will give you a good impression and respect of the maintainers who would have to work with your code later.
2006-08-01 16:58:01
·
answer #2
·
answered by swami060 3
·
0⤊
0⤋
indentation helps to read the code easier
2006-08-01 07:46:20
·
answer #3
·
answered by ne0aes0p 2
·
0⤊
0⤋
Indention just makes the code easier to read.
You can actually write code all in one line, if you want..
but I for one would HATE to have to modify it later! :)
2006-08-01 07:47:54
·
answer #4
·
answered by zeropointe01 3
·
0⤊
0⤋
so that code blocks in IF statements for example can be easily identified.
Also it helps identify sections of code quicker when your re-reading your code/ideas.
2006-08-01 07:51:19
·
answer #5
·
answered by Coolkama 2
·
0⤊
0⤋