C# Design Patterns: Rules Engine Pattern
This course will teach you to apply simple rules engines to problems involving excess conditional complexity.
What you'll learn
Design Patterns are like individual tools you can add to your toolkit as a software developer.
In this course, C# Design Patterns: Rules Pattern, you’ll learn to build and use a simple rules engine.
First, you’ll explore examples of problems and code smells that may benefit from applying rules.
Next, you’ll discover how to build a simple rules engine.
Finally, you’ll learn how to apply the engine in real application code and extend the application with new functionality.
When you’re finished with this course, you’ll have the skills and knowledge of the rules engine pattern needed to apply it in your own applications.
Table of contents
- Introduction 1m
- What Is the Rules Engine Pattern? 3m
- Examples of Operations 1m
- What Problem Does a Rules Engine Solve? 2m
- Defining Rules 2m
- Demo: A Customer Discount Calculator 5m
- Demo: Adding Features to the Discount Calculator 7m
- What Is the Structure of the Rules Engine Pattern? 4m
- How Do We Apply a Rules Engine to Existing Code? 2m
- Demo: Applying the Rules Engine Pattern to Customer Discounts 10m
- Alternate Structures and Additional Considerations 2m
- Related Patterns 1m
- Key Takeaways 2m
Course FAQ
C# is often used by Windows Desktop app creators or game creators.
Benefits include: declarative programming, logic and data separation, speed and scalability, centralization of knowledge, and tool integration.
Java's Rule Engines are used to externalize the business or application logic. A rule engine is commonly viewed as a sophisticated interpreter of it-then statements.
Prerequisites for this course are a basic understanding of C#
C# can be used to build and create almost anything, but C# is particularly strong when building Windows desktop applications and games.