Comment

Comment by GFischer

Whenever I see code that asks for conditions that might vary according to the business rules, I ask myself if there's a better way.

Has anyone had any success with business rule engines? What's your approach to these kind of constraints?

I'm faced with code like this at work all the time (I mostly maintain corporate apps, and get requirements like "law XYZ asks for a minimum of 150.000 oddunits for ABC, we need to change all our apps to support that") Edit: or the far simpler, "we can't sell ABC to people under 21" or "people from Iran"

parent GFischer 16 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton