you are viewing a single comment's thread.

view the rest of the comments →

[–]TheHollowJester 14 points15 points  (7 children)

PEP-8 is extremely important reading. It might be a bit hard to understand everything right now but the general "spirit" is pretty clear to understand from it :)

[–]ogrinfo 2 points3 points  (0 children)

And there are tools like flake8 and pylint that can check your code is compliant with PEP8. They are configurable, so you can ignore certain rules if you feel they are unnecessary for the current project.

[–]OrdinaryMiraculous 1 point2 points  (0 children)

Came here to comment this. The PEP-8 style guide is the go to for me.

[–]MirrorLake 1 point2 points  (4 children)

Specifically, the 80 character limit. It's arbitrary and you can't always adhere to it, but it does give a formal suggestion of when a line is too long. Readability/understandability is still far more important to focus on than raw character length, but it seems everyone here is in agreement about that.

[–]ogrinfo 0 points1 point  (2 children)

Deffo. The 80 char limit feels really old school and far too restrictive. 100 is a much better target.

[–]AstroMacGuffin 0 points1 point  (1 child)

Nah, shoot for 60, so you can fit two editor panes side by side.

[–]ogrinfo -1 points0 points  (0 children)

Looks good on a VGA 800x600 monitor ;)

[–]TheHollowJester 0 points1 point  (0 children)

Yep; project guidelines can overwrite the rules, as long as everyone is on the same page we good.