Tagged articles
pep8
21 articles · Page 1 of 1
This guide explains Python's evolving code‑style conventions, emphasizing readability, consistent indentation, line length, spacing, import ordering, and provides an overview of popular linting and formatting tools such as Pylint, Flake8, Isort, Autopep8, Yapf, and Black.
Best PracticesCode styleFormatting
0 likes · 14 min read

This article explains how to organize a Python project with a conventional directory layout, follow PEP 8 naming and formatting rules, and use automated tools such as Flake8, Black, and isort to enforce code quality and streamline collaboration.
code-qualitypep8project structure
0 likes · 6 min read

This article explains the meaning and conventions of single and double leading, trailing, and surrounding underscores in Python identifiers, shows how name mangling works, and provides practical code examples illustrating their effects on classes, modules, and REPL usage.
Pythoncode-examplesname mangling
0 likes · 11 min read

This guide explains the differences between Python's import statements—including "import X", "from X import Y", and "from X import *"—covers dynamic imports with __import__, sys.path handling, PYTHONPATH, PEP8 import ordering, __all__ usage, and the role of __name__ in module execution, helping you write cleaner, conflict‑free code.
Modulesdynamic importimports
0 likes · 10 min read


21CTOOct 11, 2024 · Fundamentals
This article shares a developer’s journey from tangled, hard‑to‑read code to clean, maintainable software, illustrating how meaningful naming, PEP 8 compliance, static typing, small functions, avoiding magic numbers, and the DRY principle can dramatically improve code quality.
Best PracticesClean CodeDRY
0 likes · 9 min read

This article teaches Python developers how to write cleaner, more elegant code by mastering variable unpacking, underscore placeholders, type annotations, PEP 8 naming rules, numeric literals, floating‑point precision handling with Decimal, boolean arithmetic tricks, and a wide range of string manipulation techniques, all illustrated with practical code examples.
Code styleDecimalPython
0 likes · 10 min read

This tutorial demonstrates how to set up a Python project, install and run Pylint, interpret its messages, and improve code quality by adding docstrings, fixing formatting issues, and configuring suppression, while also covering linting on single files, directories, and common pitfalls.
code-qualitylintingpep8
0 likes · 11 min read

This article explains the various meanings of single and double underscores in Python, outlines the five common underscore naming patterns, demonstrates how name mangling works for double‑leading underscores, and shows practical uses of the underscore as a throwaway variable and REPL placeholder.
Pythonname manglingnaming conventions
0 likes · 11 min read

This guide presents comprehensive Python coding conventions—including indentation, line length, quoting, blank lines, encoding, import ordering, spacing, line‑break handling, comment styles, docstring rules, and naming standards—providing clear examples and best‑practice recommendations for clean, maintainable code.
Best PracticesDjangocoding style
0 likes · 7 min read

This article outlines the key competencies that distinguish beginner from intermediate Python programmers, covering problem‑solving techniques, the XY problem, string and list manipulation, functions, object‑oriented programming, and the importance of following PEP‑8 conventions, all illustrated with clear code examples.
Code ExamplesOOPintermediate
0 likes · 11 min read

This article explains what PEP8 is, outlines key Python coding conventions such as indentation, line length, spacing, comments, imports, and naming, and shows how to automatically apply these standards in Jupyter Notebook using the Autopep8 formatter.
Best PracticesJupyterPython
0 likes · 9 min read

This comprehensive guide translates Google's Python style guide into clear English, covering everything from naming conventions and imports to docstrings, type annotations, and best practices for functions, classes, and modules, helping developers write clean, consistent, and maintainable Python code.
PythonStyle Guidecoding standards
0 likes · 55 min read

This guide details the core PEP‑8 conventions for Python code, covering comments, indentation, line length, imports, whitespace, naming, and input/output practices, with clear examples and practical tips to improve readability and maintainability.
Best PracticesPythoncoding style
0 likes · 9 min read

This article explains what PEP8 is, outlines key Python coding conventions such as indentation, line length, spacing, comments, imports, and naming, and shows how to automatically apply these standards in Jupyter Notebook using the Autopep8 extension.
Best PracticesCode styleFormatting
0 likes · 8 min read

This article distills the most practical Python coding conventions into clear principles, minimal guidelines, detailed formatting rules, naming standards, writing tips, and commenting practices to help developers write readable, consistent, and maintainable code.
Best Practicescoding stylenaming conventions
0 likes · 8 min read

This guide walks beginner Python developers through frequent anti‑patterns—misusing range, overlooking list comprehensions, inefficient membership checks, variable‑scope surprises, and PEP 8 style rules—offering clear alternatives and best‑practice tips to write cleaner, more reliable code.
Pythonbest-practicescoding anti-patterns
0 likes · 10 min read

This article provides a comprehensive overview of Python fundamentals—including its interpreted nature, dynamic typing, OOP support, memory management, key tools like PEP8 and linters, core data structures, and common features such as decorators, generators, and slicing—offering a solid foundation for both beginners and seasoned programmers.
Pythondata structurespep8
0 likes · 11 min read

This article provides a comprehensive overview of Python fundamentals, covering its interpreted nature, interactivity, object‑oriented features, benefits, coding standards like PEP8, serialization with pickle, memory management, debugging tools, decorators, data structures, namespaces, lambda functions, testing, and more.
DebuggingPicklePython
0 likes · 9 min read

This guide presents a comprehensive, step‑by‑step overview of Python coding standards—including indentation, line length, documentation order, spacing, comments, naming conventions, and practical coding tips—helping developers write clear, maintainable, and PEP8‑compliant code.
Best PracticesPythonStyle Guide
0 likes · 8 min read

This article gathers subtle yet frequent Python anti‑patterns—misusing range, improper list comprehensions, performance traps, variable leakage, global‑scope misuse, and PEP8 violations—explaining why they occur, their drawbacks, and offering clear, Pythonic alternatives to write more readable and bug‑free code.
Pythonanti-patternscoding style
0 likes · 9 min read

This comprehensive guide explains Python coding style best practices, covering PEP 8 extensions, flexible line length, naming conventions, docstring standards, functional versus object‑oriented design, testing, standard library usage, third‑party tools, and project structure to produce readable, maintainable code.
Best PracticesCode Readabilitycoding style
0 likes · 22 min read
