Back to Browse

Python Code Review: Refactoring a Web Scraper, PEP 8 Style Guide Compliance, requirements.txt

9.7K views
Sep 27, 2016
37:35

https://dbader.org/python-mastery ► How to become an effective & productive Python developer Python Code Review: Unplugged – Episode 2: Code Review for Milton This is a Python code review I did for Milton's Python project on GitHub. Milton is definitely on the right track with his Python journey. I liked how he used functions to split up his web scraper program into functions that each handle a different phase, like *fetch the html*, *parse it*, and *generate the output file*. The main thing that this code base could benefit from would be consistent formatting. Making the formatting as regular and consistent as possible really helps with keeping the "mental overhead" low when you're working on the code or handing it off to someone else. Besides formatting, the video also covers things like writing a great GitHub README, how to name functions and modules, and the use of constants to simplify your Python code. Again, I left the video completely unedited. That’s why I’m calling this series Code Review: Unplugged. It’s definitely not a polished tutorial or course. But based on the feedback I got so far that seems to be part of the appeal :D The article I mention in the video: "How to write a great GitHub README" » https://dbader.org/blog/write-a-great-readme-for-your-github-project Here's some more background info about this video: https://dbader.org/blog/python-code-review-unplugged-episode-2 FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube

Download

1 formats

Video Formats

360pmp451.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python Code Review: Refactoring a Web Scraper, PEP 8 Style Guide Compliance, requirements.txt | NatokHD