#100DaysOfCode in Python Transcripts
Chapter: Days 34-36: Refactoring / Pythonic code
Lecture: Your turn: Day 2 and 3

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Welcome back.
0:02 In this second and third day,
0:04 I encourage you to take our Code Challenge 30.
0:07 It's The Art of Refactoring: Improve Your Code.
0:11 And, the task of today and tomorrow is
0:13 to get some of your code, run tests
0:16 and do some refactorings, making it more Pythonic.
0:20 Also, I would recommend to start looking at Flake8,
0:23 or Pylint.
0:24 I personally use Flake8.
0:27 And integrate that into your editor.
0:29 And have a check upon each save.
0:31 Or, what I did, for example, in the vimrc,
0:34 I have a shortcut:, f.
0:36 And when I press that,
0:38 it runs Flake8 and it opens a new editor window
0:41 where it highlights my PEP8 violations.
0:44 So that way I keep my files clean during development.
0:47 Optionally, you can look at Code Challenge 35
0:52 and use Better Code Hub
0:54 to look at your code quality overall.
0:59 Using how we use the tool
1:02 to improve a couple of our projects.
1:16 And don't forget to tweet out your progress.
1:19 You can mention Talk Python and PyBites in your tweets,
1:22 and we would love to see what refactorings you come up with,
1:25 or what your favorite Pythonic concept is
1:27 you learned from this lesson.
1:29 Alright, good luck and have fun.