Someone I know is learning to program. I looked at the resulting code, and, unsurprisingly, it was bad :D

What did stand out was the inconsistent indentation.

I only fail to indent when I copy-paste the worst dreck, to throw away with disgust 5 min later. I spend maybe 30min per year with badly indented code.

(And I consider it consistently-indented code even if it's a style I don't like.)

And you, experienced coders? Do you worry about indentation as much as I?

#askfedi #programming

Follow

@dcz Indentation helps make the code easier to read, but in the big picture isn't worth worrying about.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml