PEP 8

9 moment(s) that assert this concept — showing 1–9 of 9

single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] PyCon[2] PyCon[3] PyCon[4] PyCon[5] PyCon[6] PyCon[7] PyCon[8] PyCon[9] PyCon
showing 9 of 9 moments
PyCon 2015 · youtube · en
1The speaker expresses frustration with the line width limit in PEP 8, specifically the 79-character limit.
“The line width part. It bugs me.”
spoken · 62s · 2015-04-11
PyCon 2015 · youtube · en
2The speaker describes a fear that others may reformat their code to meet PEP 8 standards, even if it makes the code less readable.
“They are going to let my code have it. Your code is non-compliant.”
spoken · 179s · 2015-04-11
PyCon 2015 · youtube · en
3The speaker suggests that shortening variable names can help avoid PEP 8 formatting issues, but acknowledges that this makes the code worse.
“I can save myself some line wrapping if I just shorten my variable names there.”
spoken · 247s · 2015-04-11
PyCon 2015 · youtube · en
4The speaker recommends setting a line length limit of around 90 characters instead of the standard 79, especially for Python code with four-space indents.
“My recommendation for the line length ending outside the standard library when you can set your own policies is 90ish.”
spoken · 269s · 2015-04-11
PyCon 2015 · youtube · en
5The speaker mentions that Google had a debate over line length limits due to deep indentation in their code.
“At Google they tended to have many levels of indentation.”
spoken · 281s · 2015-04-11
PyCon 2015 · youtube · en
6Some developers may be bright but struggle with problems where they don't immediately know what to do, leading them to focus on PEP 8 compliance instead of code quality.
“struggling the most, and they might actually be bright, but they are faced with problems where they don't immediately know what to do, will gravitate to pep eight like a moth to a flame.”
spoken · 520s · 2015-04-11
PyCon 2015 · youtube · en
7PEP 8 compliance can make code visually prettier but not necessarily better, and it can introduce bugs.
“It might make it a visually a little bit prettier, but it doesn't necessarily make it better. And in fact, the people who wrote the code to begin with come back and find their code a little bit scrambled.”
spoken · 544s · 2015-04-11
PyCon 2015 · youtube · en
8PEP 8 compliance can distract from actual code quality and lead to superficial improvements.
“You could go through and pepified it. And so you step into code that I've been maintaining for the last 15 years and you start to rearrange it. And so we get patches along uh those lines. And one theme I've uh discovered is that when these patches come in, a person's trying to make the code better, making it PEP 8 compliant, which is not necessarily a bad thing, but an amazing number of times it introduces bugs into the code.”
spoken · 597s · 2015-04-11
PyCon 2015 · youtube · en
9Focusing too much on PEP 8 can lead to missing important issues, similar to the psychological experiment where people miss a gorilla in a scene.
“When you start to put PEP 8 in the forefront of your mind, what h is very much like this experiment. It causes you to reach for something that doesn't improve quote quality in an important way.”
spoken · 664s · 2015-04-11