2-space indentation is absolute shit

Reply to this note

Please Login to reply.

Discussion

how many should we have?

at least 4

8 for C

the javascript people did this

I feel like nostr:npub1az9xj85cmxv8e9j9y80lvqp97crsqdu2fpu3srwthd99qfu9qsgstam8y8 should have an entire set about indentations on his next netflix special

β€œ β€œ

no need for a personal attack like that

πŸ˜‚

As is using two spaces after periods

πŸ’―

Some people need their space.

In fairness, it’s only shit in JavaScript. In all real languages it works just fine.

no, 2 space indentation is a sign of too much nesting and increasing complexity

Agree to disagree. Too much nesting and complexity is a sign of too much nesting and complexity. Code is clean or not. #[3]​ help me out.

That said, I have very much come around on your way of thinking for JS and TS. But again, they don’t count.

πŸ’―

>From: erskingardner<-mazin at 04/23/23 15:16:56 on wss://relay.damus.io

>---------------

>Agree to disagree. Too much nesting and complexity is a sign of too much nesting and complexity. Code is clean or not. #[5]​ help me out.

>

>That said, I have very much come around on your way of thinking for JS and TS. But again, they don’t count.

javascript stands out because javascript is also shit for everything else πŸ˜‚

Zaps to that. πŸ˜‚

... Python? ;-)

I don’t know if we can be friends after this.

πŸ˜‚πŸ˜‚πŸ˜‚

As a friend of long and self-explanatory variable names I strongly prefer 2-spaces to the point I was suggesting IDEs to render leading spaces as colored lines without indentation. 😘

I definitely like long and self-explanatory names

but usually if they are too long is because they are conveying too much meaning that should be split further

And people wonder why changes to #bitcoin take a while. πŸ˜‚

You blame JS but I was working mainly with Java for a long time and things like

```

Map eventCounter = new ConcurrentHashMap()

```

would be totally normal in an Android app and had little room for simplification. Gladly Kotlin (or more modern Java) is less verbose but with this simple assignment already over 100 chars long, I'm happy about any indentation I can skip.

ough, that's painfully long, yeah

I personally would break it into if the language allows it

```

Map eventCounter;

eventCounter = new ConcurrentHashMap();

```

Who does that!?

choose a random npmjs.org package πŸ˜‚

Ha!

20,999,999 % ! Lol

πŸ’―πŸ’―πŸ’―