Conference archive

SEE PRICING & PACKAGES

Thursday, November 17, 2016 - 11:30am to 12:30pm

Them’s the Rules: Using a Rules Engine to Wrangle Complexity

Add to calendar

When dealing with complicated and ever-growing program conditions brought on by new business requirements, it's easy for what was once a small conditional block of code to grow to evaluating hundreds of unique conditions. Unfortunately, much like kudzu, that bad practice begins to creep into other areas of code. Micah Breedlove says that incorporating a rules engine to handle the conditional logic is a great way to reduce the code smells wafting from a multi-hundred line conditional. Converting the conditional into one small block of code which can retrieve and interpret a rule from another source—a database, XML, YAML, or some other repository—alleviates unnecessary logic. Micah presents different approaches to implementing a rules engine including event-driven and direct injection to give a better appreciation for its ability to simplify the growing complexity of conditional statements. Cleaning up conditional logic is an important gateway to writing more concise code which leads to an easier-to-maintain application.

Micah Breedlove
iostudio

Micah Breedlove is a senior developer and dev team lead at iostudio. He began working with PHP in late 1998 and has been developing full time using Symfony since 2009. Micah has written and maintained applications for companies including Procter & Gamble, Walmart, and the National Guard. Previously a senior developer at Franklin American Mortgage, he was instrumental in building the PHP development team. Micah lives with his wife and three kids in Nashville where he enjoys growing fruit trees, making maple syrup, and vegetable gardening. Micah is a firearms enthusiast and enjoys spending time at the range. Find more about Micah at his website or follow him on Twitter @druid628.