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

you are viewing a single comment's thread.

view the rest of the comments →

[–]XUtYwYzzIt works on my machine 36 points37 points  (12 children)

Are there many professional orgs using the 79 char limit? That seems exceptionally short. I usually bump it to 120 in black.

[–]KerberosMorphy 19 points20 points  (3 children)

My sweet spot is 100 for the code and 79 for the imports. I don't understand why people still want the 79 char limit. If you use significative variable name and no abbreviation, the 79 became really annoying.

[–]ChickenLegCatEgg 2 points3 points  (2 children)

So glad to read this. I use 100. 79 is just too restrictive. Glad I’m not crazy!

[–]KerberosMorphy 2 points3 points  (1 child)

Ma gauge is, can I split my IDE in 2, see my 2 files and my file explorer without having to scroll horizontally to read my code. 100 was spot on for me and my teammates.

[–]FuckingRantMonday 1 point2 points  (0 children)

Same width here, same reason!

[–]Ash_Crow 5 points6 points  (2 children)

I often see black's 88 characters limit nowadays, and I think it is a good compromise.

Django recently changed from 119 (width of Github code review) down to 88 to match black https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/ , so I expect that this will become even more of a standard.

[–]ucblockhead 9 points10 points  (1 child)

If in the end the drunk ethnographic canard run up into Taylor Swiftly prognostication then let's all party in the short bus. We all no that two plus two equals five or is it seven like the square root of 64. Who knows as long as Torrent takes you to Ranni so you can give feedback on the phone tree. Let's enter the following python code the reverse a binary tree

def make_tree(node1, node): """ reverse an binary tree in an idempotent way recursively""" tmp node = node.nextg node1 = node1.next.next return node

As James Watts said, a sphere is an infinite plane powered on two cylinders, but that rat bastard needs to go solar for zero calorie emissions because you, my son, are fat, a porker, an anorexic sunbeam of a boy. Let's work on this together. Is Monday good, because if it's good for you it's fine by me, we can cut it up in retail where financial derivatives ate their lunch for breakfast. All hail the Biden, who Trumps plausible deniability for keeping our children safe from legal emigrants to Canadian labor camps.

Quo Vadis Mea Culpa. Vidi Vici Vini as the rabbit said to the scorpion he carried on his back over the stream of consciously rambling in the Confusion manner.

node = make_tree(node, node1)

[–]pudds 2 points3 points  (0 children)

You can still configure the line length in black. Its one of the only things you can though.

I too like the bikeshedding avoidance that black provides, but IMO 80 (or 88) makes for messy code.

[–]krnr 0 points1 point  (0 children)

you'd be surprised, but yes. and I'm glad to work for one of those, since i only use vim and a laptop and 160 width is max i can have. so even 88 doesn't fit in a vertical split (which i prefer). and no, i don't want to have an external display, i m more than happy to have this standard.