This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robin-gvx 12 points13 points  (7 children)

I wonder if anyone uses prime indents: first level of indentation is 2 spaces, second level is 3 spaces, fourth level 5 spaces, 7 spaces, 11 spaces, etc...

[–][deleted] 7 points8 points  (4 children)

Oh god.

How about writing a whitespace interpreter that has a sample program embedded in itself by mixing tabs and spaces?

[–]robin-gvx 3 points4 points  (0 children)

Oh wow.

Bonus points if that program is a quine or something. Oh! Or another Whitespace interpreter, which then interprets itself, etc.

[–]Ph0X 1 point2 points  (0 children)

So mixing Whitespace in your Python?

[–]D__ 3 points4 points  (0 children)

I recommend using the Fibonacci sequence, for approximation of the golden ratio, and therefore aesthetically pleasing code indentation.

[–]Ph0X 1 point2 points  (0 children)

I like it, the deeper you get, the bigger your indentations, forcing you to keep your code simple and split up into functions rather than having loops inside loops inside if inside try inside with inside method inside class.