filmov
tv
Python Code Review: Refactoring a Web Scraper, PEP 8 Style Guide Compliance, requirements.txt
Показать описание
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
* * *
FREE Python Tutorials & News:
Комментарии