2-space indentation is absolute shit
Discussion
the javascript people did this
I feel like nostr:npub1az9xj85cmxv8e9j9y80lvqp97crsqdu2fpu3srwthd99qfu9qsgstam8y8 should have an entire set about indentations on his next netflix special
β β
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.
... Python? ;-)
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
```
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 = new ConcurrentHashMap
```
Ha!
20,999,999 % ! Lol
π―π―π―