Skip to content

Improve code organization and structure#4

Open
MattUebel wants to merge 1 commit intomainfrom
improve-code-organization
Open

Improve code organization and structure#4
MattUebel wants to merge 1 commit intomainfrom
improve-code-organization

Conversation

@MattUebel
Copy link
Owner

@MattUebel MattUebel commented Oct 23, 2024

Rename and refactor example files, and update README.

  • Refactor example1.py:

    • Rename presentation/examples/example1.py to presentation/examples/math_operations/example1.py
    • Add type hints to add, subtract, multiply, and divide functions
    • Refactor divide function to handle division by zero more gracefully
  • Refactor example2.py:

    • Rename presentation/examples/example2.py to presentation/examples/greetings/example2.py
    • Add type hints to greet, farewell, and main functions
    • Refactor main function to accept a name as an argument
  • Update README.md:

    • Update paths of example code files in the examples/ directory
    • Add brief description of new subdirectories math_operations and greetings

For more details, open the Copilot Workspace session.

Rename and refactor example files, and update README.

* **Refactor `example1.py`**:
  - Rename `presentation/examples/example1.py` to `presentation/examples/math_operations/example1.py`
  - Add type hints to `add`, `subtract`, `multiply`, and `divide` functions
  - Refactor `divide` function to handle division by zero more gracefully

* **Refactor `example2.py`**:
  - Rename `presentation/examples/example2.py` to `presentation/examples/greetings/example2.py`
  - Add type hints to `greet`, `farewell`, and `main` functions
  - Refactor `main` function to accept a name as an argument

* **Update `README.md`**:
  - Update paths of example code files in the `examples/` directory
  - Add brief description of new subdirectories `math_operations` and `greetings`

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MattUebel/copilot-presentation?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments