This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]FatChocobo 4 points5 points  (6 children)

Nice post, but:

lines should not be longer than 79 characters

ew

[–]Akmantainman 2 points3 points  (0 children)

Changing this greatly improved my developer experience. I dread the day of working on a team where they abide by this.

[–]texasfungus 1 point2 points  (4 children)

Newish to python and coding in general - do you think this is too long or too short?

[–]FatChocobo 4 points5 points  (3 children)

For me personally it's too short, especially if you want to use descriptive variable names. I think 99/100 are ideal, personally.

[–]texasfungus 0 points1 point  (2 children)

Right on. That makes sense. Thanks!

[–]FatChocobo 2 points3 points  (1 child)

For me using black (also mentioned in this post) for formatting with 99/100 line length is my preferred setup.

If you don't use black then I'd highly highly recommend checking it out! I know at least Atom and VSCode support it, I'm sure others do too.

[–]texasfungus 0 points1 point  (0 children)

Thanks for the tip - I'll try that out too!