Hacker News new | ask | show | jobs
by guitarbill 2783 days ago
Do you use a Python auto-formatter called black, or if not, do you think consistency helps (e.g. shorter lines, same constructs/indentation) or hinders (e.g. shoter lines means more lines means more noise)?
1 comments

Haven't thought much about line length. I tend to write longer lines just because I don't see the point on the screen where they'd logically break, and when I'm arrowing through code, I generally prefer to hear as much of a construct as possible without having to arrow 4-5 times through a single statement. If I'm calling something on a long list or string then I might break the list out over several lines, but if I'm dealing with a single long function call then I just let it go long. Formatters are certainly fine, it's just annoying to find and configure them for each language I use.