O'Reilly logo

Groovy for Domain-specific Languages - Second Edition by Fergal Dearle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a rewards DSL

The old adage that 80 percent of business comes from your existing customers while 20 percent comes from new customers is as true today as it ever was. Every business, at some point in time, considers offering incentives to its customers in order to increase sales. Rewards can take the form of everything from the selective discounting of end-of-line items, through buy-one-get-one-free promotions, to customer loyalty points schemes.

Marketers constantly devise new ways to promote products and services to customers, but often the problem is that these promotions can be difficult to manage when they need to be implemented in the various backend systems. Configuring a reward could involve applying cross-cutting logic across several ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required