The responsibility of architecture is to break down enough components, patterns, for the soldiers to pick up and go to war.

  1. CheckAndDo mode

In this mode, before doing something, check the status and then do different things according to the status. One example: before saving your avatar, check to see if it already exists. If so, ask the user whether to overwrite it. If so, then do.

This is a good example of CheckAndDo.

In this mode, you can create a component or service that passes in the desired conditions and operations without having to do everything again.