32 points

Amateur! I use coments so it looks like this:

function main(){ /tab/if(fish==2){ /tab//tab/console.log(“i need help”); /tab/} }

permalink
report
reply
8 points

I want to downvote you so, so bad, so take an upvote and leave.

permalink
report
parent
reply
3 points

Him: I spend 3months on this project Me: how many lines does it takes now? Him: I would say around one line of code

permalink
report
parent
reply
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
14 points
*
int mostCursedIndentation (const int someVal) @safe {
{}{}if (someVal < 0) {
{}{}{}{}throw new Exception ("Value cannot be negative!");
{}{}}
{}{}return someVal * 5 - 3;
}

permalink
report
reply
17 points

i dont wanna talk about the lua version of this

local function someFunction(arg)
do end local SomeLocal = 40;
do end if arg > SomeLocal then
do end do end SomeLocal = Somelocal + arg
do end elseif arg < SomeLocal then
do end do end arg = arg * 2
do end do end if SomeLocal > arg then
do end do end do end error("oh my god why are you trying to read this")
do end do end end
do end end
do end return SomeLocal
end

someFunction(-0.3000000000000124976137894613978561389741642978623178913786926473891)

permalink
report
parent
reply
5 points

Jesus Christ

permalink
report
parent
reply
5 points

He has already left the chat

permalink
report
parent
reply
4 points

This is the worst

permalink
report
parent
reply
4 points

Can you start randomly nest them too?

{{}}{}int foo = bar

permalink
report
parent
reply
5 points

You made it even worse!

permalink
report
parent
reply
1 point

Highly readable

permalink
report
parent
reply
11 points

This is horrifying, this is straight up blaspheny

permalink
report
reply
7 points

For real. OP needs to give up on this ridiculous notion of tabbed whitespace and learn to use real, monospaced indentation. How wide is a tab? OP couldn’t tell you because tabs are inherently dishonest – a lie concocted by big keyboard to poison the unwashed programmer masses.

permalink
report
parent
reply
7 points

Tabs are one tab character wide, it’s perfect

permalink
report
parent
reply
2 points

You’re one character wide

permalink
report
parent
reply
3 points

I meant for my personal projects. For the code that only I see, tabs are much better for navigation. But it’s true that if there are several of us working on the project, the spaces are much better.

permalink
report
parent
reply
3 points

The big keyboard played us for an absolute fools!

permalink
report
parent
reply
1 point

How wide is a tab? Who cares? I’m not pressing more buttons just to make you feel better.

permalink
report
parent
reply
8 points

I just want Coke to bring back Tab and Pepsi to introduce a competing drink called Space

permalink
report
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

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments