I have a coding "style".. its bizarre
I recently started experimenting with ways to make my code files more readable. Ive found a interesting indenting-scheme that adds alot more readablily for me.
Heres an example, see if you can spot the difference:
| Normal People | Me |
|---|---|
![]() |
![]() |
thats a tame example, here's a more apparent one
| Normal People | Me |
|---|---|
![]() |
![]() |
its tied to variable declaration. Particularly, multi-line variable decalaration.
Multi-line variable declarations are very common but they tend to make code less readable for me.
I like to indent the lines a particular way to emphasize they are tied to the declaration of a variable
Example 1
| take this variable for example | ![]() |
| I would declare like this | ![]() |
Example 2
| this variable for example | ![]() |
| I would declare like this | ![]() |
Example 3
| this variable for example | ![]() |
| I would declare like this. (notice how i indented the request_line declaration. iss because its multi-line) | ![]() |
I find this indenting-scheme clarifies variable scopes and code-paths better
When taken to the extreme this is what it leads to:










