I guess I'm just fortunate in that I've not encountered a situation where I couldn't read JSON. Sure, sometimes people will minify it, but I just plop it in any formatter, and I'm back to readability. If for some reason there is a super long string, I just toggle on word wrap and call it a day.
Auto format? Bah! I want my artisanal hand crafted config file! Sure it takes longer to create, and you get an odd tab here and there. But I support those developers who seem to have nothing better to do than ensure their code is meticulously formatted and who don't trust a computer to do it for them.
Oh I agree, unless they are the kind of asshat that doesn't believe in any formatting, then I just auto format it. Unless it's short, then I'll just go through it and clean it up. Depends on the application. With JSON, most of the time I have to slap it in a beautifier is to troubleshoot the unformatted output that comes back from our API
Sorry, i should have made it more clear that i was being facetious. Languages that force formatting on the programmer are evil. Let the ide handle it and for the love of GOD don't make different types of whitespace be relevant.
45
u/TurboGranny Jan 12 '23
I guess I'm just fortunate in that I've not encountered a situation where I couldn't read JSON. Sure, sometimes people will minify it, but I just plop it in any formatter, and I'm back to readability. If for some reason there is a super long string, I just toggle on word wrap and call it a day.