Code Styling guidelines for the backend #1007
Replies: 2 comments 1 reply
-
There's a frustration I've been experiencing about long lines of code. I often find myself wanting to shorten lines in our code. We often go beyond 80 characters, and it's not uncommon to see lines beyond 100 characters. For me, longer lines add to cognitive complexity; my eyes read best when there's less horizontal intensity and more vertical intensity. Also, viewing two files side-by-side gets unergonomic when you have very long lines. I'd love for us to setup some automatic tooling for controlling vertical vs. horizontal intensity. |
Beta Was this translation helpful? Give feedback.
-
Others probably saw this HN thread too: Django: Reformatted code with Black. From the top comment:
Here's my take:
All-in-all this comment serves as a gentle vote for Black, but a strong vote for setting up some kind of auto-formatting tooling. |
Beta Was this translation helpful? Give feedback.
-
In order to maintain a consistent codebase, it would be helpful that we agree upon a certain styleguide and maybe few tools that could aid us in following those styleguide.
Beta Was this translation helpful? Give feedback.
All reactions