Module 11 Software Implementation Presentation
Module 11 Software Implementation Presentation
MODULE 11:
IMPLEMENTATION
Implementation
TECHNICAL FACTOR
Performance Portability
Scalability Data Handling
Coding Standards
PEP 8 provides formatting rules for writing clean, readable Python code.
Indentation: Use 4 spaces per level.
Line Length: Limit to 79 characters.
Spacing: Be consistent around operators and after commas.
Naming Conventions: Use clear and consistent names.
Example:
Code Documentation
helps explain its purpose, logic, and usage.
Common types:
Inline comments – Explain specific lines.
Block comments – Describe logic or steps in a section.
Docstrings – Describe functions, classes, and modules.
Example:
Auto-Formatters
Black
Black is an auto formatting tool for Python that edits code to align it with the PEP 8
style guide.
isort
Sorted imports alphabetically within categories
Grouped them into:
Standard library imports (e.g., os, math)
Third-party packages (e.g., numpy, pandas)
Local application imports (e.g., mymodule)
Added blank lines between groups for clarity
Often used with Black.
Example for Black:
Example for isort:
Software Implementation: The process of turning design specifications into working software
FO YRAMMUS using code.
Importance:
STNIOP YEK
Bridges the gap between design and testing.
Enhances code quality and maintainability.
Simplifies debugging and future updates.
Programming Languages:
SQL for business/data apps.
C++/Java for complex or object-oriented systems.
Technical Factors in Implementation:
Performance, Scalability, Portability, Data Handling.
Coding Standards:
Use clean code practices (data declaration, consistent style).
Follow Python’s PEP 8 for readability and collaboration.
Code Documentation:
Use inline comments, block comments, and docstrings for clarity.
Auto-Formatters:
Black: Auto-formats code per PEP 8.
isort: Organizes import statements neatly.
SECNEREFER
Python Software Foundation. (2001). PEP 8 – Style guide for Python
code. https://peps.python.org/pep-0008/
The Black Code Formatter. (n.d.). Black: The uncompromising code
formatter. https://black.readthedocs.io/
Pycqa. (n.d.). isort documentation. https://pycqa.github.io/isort/
CPEN 70 – Software design materials
.https://drive.google.com/drive/folders/1iE6ozhyJ53xaDxv8DsT5sSIZCW
qzCAgv
Any
Question?
MODULE 11
Thank you!