Slide 1

Slide 1 text

Jane Austen on PEP8: An English Major’s Tips for Writing Better Code Lacey Williams Henschel @laceynwilliams

Slide 2

Slide 2 text

I must learn to be content with being happier than I deserve.

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Always use two spaces after a sentence-ending period.

Slide 6

Slide 6 text

Exposition Climax Denouement Rising A ction Falling A ction

Slide 7

Slide 7 text

Exposition Climax Denouement Rising A ction Falling A ction This is Edith.

Slide 8

Slide 8 text

Exposition Climax Denouement Rising A ction Falling A ction She’s using an app.

Slide 9

Slide 9 text

Exposition Climax Denouement Rising A ction Falling A ction She enters an item into the app.

Slide 10

Slide 10 text

Exposition Climax Denouement Rising A ction Falling A ction The item saves.

Slide 11

Slide 11 text

Exposition Climax Denouement Rising A ction Falling A ction Edith closes the app, happy.

Slide 12

Slide 12 text

AssertionError: False is not true.

Slide 13

Slide 13 text

AssertionError: False is not true. Dear reader, We regret that an error has been made. Warmly, The programmers

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. - Excerpt from The Zen of Python, Tim Peters.

Slide 19

Slide 19 text

I dipped my pen, and began to write the lines that must be there, for the sake of the unknown physician who would follow me. Diana Gabaldon, The Fiery Cross

Slide 20

Slide 20 text

Omit needless words.

Slide 21

Slide 21 text

Simple is better than complex.

Slide 22

Slide 22 text

Vigorous writing is concise.

Slide 23

Slide 23 text

Sparse is better than dense.

Slide 24

Slide 24 text

Programmer Writer

Slide 25

Slide 25 text

Sources The Freer Biblical Manuscripts: Fresh Studies of an American Treasure Trove, ed. Larry W. Hurtado. TEI and transcript. Jane Austen with Laptop. The Boston Globe, Aug. 17, 2009. Test-Driven Development with Python, Harry Percival. Purdue University Online Writing Lab, sample outline. View function from Django Girls code. Emily Dickinson’s handwritten coconut cake recipe, by Garrett Ziegler.

Slide 26

Slide 26 text

Sources The Zen of Python, Tim Peters. The Fiery Cross, Diana Gabaldon. The Elements of Style, William Strunk, Jr., and E. B. White.