Java reflection vs Jess

112 views Asked by At

it seems to me that Jess is a way to change dynamically what we put inside a Java class, when I've face the java Reflection, surprisingly seems to me that have the same objective.

If this is true, when should I use one or other ?

Cheers,

1

There are 1 answers

0
Ernest Friedman-Hill On BEST ANSWER

Jess does include a traditional programming language with the ability to manipulate Java objects, But the main part of what Jess does is allow you to write declarative rules. This is a completely different programming paradigm. In a traditional imperative language you write code that tells the computer explicitly how to solve a problem. In a declarative language, on the other hand, you describe the problem, and the language itself figures out how to solve it. Because Jess itself is written in Java, it makes no sense to say that Jess is more or less powerful than Java itself: it's just a different approach to programming, and it makes solving certain classes of problems easier.