Text to Software Best Practice – Patterns
When working with logic, the number of statements you need to make can be long. In order to stay organized, it is often helpful to organize your work into patterns. A pattern is a set of statements which you can save and to which you can add a label. Anytime that you come to a point where you think this pattern is needed, you can insert it.
You should test your pattern carefully before you save and make sure that it works. Once you save it, it is an idea that can be reused. When you start work on a new business rule, check your list of available patterns. If there is one that is similar to what you are trying to do, you can select it to help you get started.