You are viewing a single thread.
View all comments
15 points
*

3 spaces is best because if the universe is chaos then everything in it should reflect that.

permalink
report
reply
21 points

I’m more about increasing spaces exponentially to really highlight how important each line is

public boolean function() {
 if (method()) {
   if (otherMethod()) {
       for (Object o : list()) {
               if (o.isAlive()) {
                               return false;
               }
       }
   }
 }
 return true;
}

permalink
report
parent
reply
3 points

Good, good. The less consistency the better.

permalink
report
parent
reply
2 points

Use the Fibonacci series so you can smugly claim your code incorporates the gold ratio

permalink
report
parent
reply
6 points

But what if the chaos plays favorites and favors tabs?

permalink
report
parent
reply
3 points

For line in lines: if char[0] == SPACE { del char[0]} else if char[0] == TAB {char[0] = SPACE*3}

save(‘overwrite’)

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.2K

    Monthly active users

  • 955

    Posts

  • 37K

    Comments