Development

It is now time to start writing your code. You will be provided of examples to get you started.

You are welcome to use and editing the examples - there are no disadvantages in doing so. It depends on what you are wanting to do.

This is the process you are recommended to follow:

1

Create UI in main.py

Inside a program called main.py create your User Interface. Define and run the main() function. For now, just focus on getting the UI working and test each user choice with simple print statements to make sure the UI functions as intended.

2

Create Module for Functions in Separate .py file

Create a module (separate .py file) for functions and API call (e.g. pokedex.py) and keep main.py and this .py file in the same folder.

3

Test Your Functions

Make sure your functions work! Test them inside the separate .py file, one at a time.

4

Commit to GitHub

Make sure to make regular commits to GitHub!

Check out the 'Testing and Debugging' section for what you may write in your commits.

5

Add Code Blocks to PROJECT_DEVELOPMENT.md

Once you have finished your above files and they work, place them in code blocks under a heading of Development in your PROJECT_DEVELOPMENT.md file.


Code Comments


Computational Thinking

In the above, we are engaging in both decomposition and abstraction.

Decomposition

Decomposition is about breaking a complex system into smaller parts.

By separating the UI from the backend logic (e.g., functions handling Pokémon data), you're decomposing the program into modules.

Abstraction

Abstraction is about hiding complex details and exposing only what is necessary.

The UI abstracts away the implementation details, allowing users to interact without seeing the inner workings.

Last updated