Hacker News new | ask | show | jobs
by susi22 4138 days ago
Has anybody in the client side community ever made the connection to rules engines?

This flow of logic is awfully close to how a rule engine works. I wonder if people will at some point arrive at it.

There isn't a whole lot of rules engine in JS. Just nools [1] which is huge. I'd love to see a very simple forward chaining rule engine + Immutable + React and see how that would work out.

My guess is that they aren't popular at all because they have the notion of being enterprisey (Drools/Jboss). I'm a big fan of them. They /can/ make life & code very nice and elegant. Maybe somebody writes an JS adapter to clara rules [2].

[1] https://github.com/C2FO/nools

[2] https://github.com/rbrush/clara-rules

3 comments

I would like to see a series of examples in the use of rules engines. I've worked in several places where people brought them up as suggestions, but their "enterprisey" brand made them harder sells.
"My guess is that they aren't popular at all because they have the notion of being enterprisey"

You have to wait a while before the JS community realise that enterprisey is just the inevitable end game of their wheel re-inventing.

In the same way they dismiss things they don't understand now due to complexity, they are adding more and more with all these frameworks and architectures.

Nothings new, everythings a remix. I imagine rules engines will be the next "revolution" on this already well trodden road.

I'm not aware of a JS adapter for clara rules but per the wiki it does offer ClojureScript support "with a couple constraints"[1]

[1] https://github.com/rbrush/clara-rules/wiki/ClojureScript