Search⌘ K
AI Features

Context and Processing View

Explore how context and processing views help identify user roles and validate data in Python applications. Understand exception handling by raising and responding to invalid data, focusing on class relationships and data attribute validation to ensure robust software design.

Context view

The role of the User in the context diagram from the previous chapter is—at this point—less than ideal. It was tolerable as an initial description of the interfaces to the application. As we work through the design, we can see that a more specific term like “Researcher” might be a better description for someone researching a sample and looking for a classification. Here’s an expanded context diagram with a new consideration of users and their authorized actions:

Application context diagram
Application context diagram

The Botanist is responsible for one kind of data and has two valid operations. The Researcher is responsible for a different kind of data and has only one valid ...