rlkoshak
(Rich Koshak)
December 17, 2018, 6:36pm
4
Please see Design Pattern: What is a Design Pattern and How Do I Use Them for details on what a DP is and how to use it.
Problem Statement
Do Not Repeat Yourself (DRY)
Often an inexperienced programmer will find that a naive and straight forward approach to writing Rules DSL Rules results in a lot of duplicated code. Often experienced programmers find that the usual tools to avoid duplicated code like data structures and classes are not available in Rules DSL and they end up fighting the lang…
You don’t need regular expressions to avoid creating one Rule for each device. I’m really not even sure how using regular expressions in a Rule trigger would help achieve that goal.