"Our findings suggest that code snippets on Stack Overflow do not represent good coding and may not be suitable for mining or learning tasks. Future work should investigate whether the same can be observed for other languages."

"Python Coding Style Compliance on Stack Overflow" (Nikolaos Bafatakis, Niels Boecker, Wenjie Boon, Martin Cabello Salazar, Jens Krinke, Gazi Oznacar, Robert White)
ieeexplore.ieee.org/document/8
sci-hub.tw/10.1109/MSR.2019.00

Follow

Style guides and static analyzers for Python:
• "PEP 8 -- Style Guide for Python Code": python.org/dev/peps/pep-0008/
• "pycodestyle (formerly called pep8) - Python style guide checker": pypi.org/project/pycodestyle/
• "Google Python Style Guide": google.github.io/styleguide/py
• Pylint: pylint.org/
• Pyflakes: pypi.org/project/pyflakes/
• Mypy: mypy-lang.org/

Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!