Patterns and best practices