News for hackers. Stuff that matters.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by silon42 on Tuesday January 17, 2023 @08:27AM (#34412102)
Give me an xml/json schema any day over this.
Re:We Need to Know LR and Recursive Descent Parsing Techniques by danielheath on Tuesday January 17, 2023 @08:13PM (#34422107)
I fail to see how those things are at all alike.

An xml/json schema is for validating a serialization format; a DSL-in-ruby is a programming language (to be fair, it's likely a mess, but I've definitely seen it be less mess).

When you look at business rules / requirements, it's common for 99% of them to be trivial. Of the remainder, 99% are only moderately complex.

If you have, say, fewer than 10k distinct rules, you probably don't have more than one that's really wicked.

However, if you have 100k rules, it's more likely than not that you have quite a few that are going to completely wreck your xml/json model.