Writing Beautiful Python. An overview of PEP 8
1 minute read
Sat 14 Sep 2019
What is beautiful code? What makes code beautiful? Why should I write beautiful code? These might be question you are currently asking yourself. In this talk I will not only answer these question but also give you a tour of PEP 8 (the official style guide for python).
During this 'tour' I will show you examples of both well formatted and badly formatted code and will explain the difference and why they are important.
It can be hard to memorise all these 'rules'. Luckily for you, you don't have to. There are two types of tools I will go over that help you write nice looking code:
- A Linter will notify you of badly formatted code.
- An auto formatter will reformat you code on save to comply with the standards).
At the end of the this talk you will have to tools and knowledge necessarily to go forth and right beautiful code.
This talk was presented at PyCon UK 2019.