When programming, how many spaces for indentation?

@vaporeon_ I don't care about these things much anymore because code formatters are really good at fixing these things if you don't like something you settled on

I use 2 spaces currently so my code takes up less space but I'm not married to it

@wallhackio What program do you use for code formatting, then? clang-tidy?

@vaporeon_ I've only done this with JavaScript, we didn't use a formatter for our Java code at work for some reason. Deno comes with a built-in formatter because Deno is the eighth wonder of the world, and that formatter is primarily what I've used

I've also used eslint and prettier as a JavaScript formatter. I didn't like eslint. Prettier is fine

@wallhackio I keep forgetting that not everyone is a C programmer SMH

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.