Drools
Spock
Our great sponsors
Drools | Spock | |
---|---|---|
13 | 10 | |
23 | 3,481 | |
- | 0.1% | |
0.0 | 9.4 | |
7 days ago | 9 days ago | |
Java | Java | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Drools
-
Ask HN: Where do I find good code to read?
I've met a few young programmers who heard somewhere that object-oriented programming was bad and they want to get the enlightenment of functional programming that they've heard about. Frequently they travel from job to job like itinerant martial artists always looking for somewhere where they practice the true technique but they always seem disappointed as it is just as easy if not easier to screw up handling errors with monads than it is with exceptions and they find analogies like "a monad is like a burrito" just get them more confused.
As for something profound I'd point you to
https://github.com/cerner/clara-rules
which many people will struggle with because like many other production rules engines in LISP (and many other examples of simple compilers), there is hardly any code! Contrast that to the orders of magnitude larger rules engine Drools
https://github.com/kiegroup/drools
which is so crazy-complicated primarily because the Drools language is Java-based so you need all sorts of things that Clara or CLIPS don't need.
-
Drools VS zen - a user suggested alternative
2 projects | 2 Jun 2023
-
SourceBuddy Brings Eval To Java
IMHO you're better off using something like https://www.drools.org/ for this. Non-devs writing code is a pipe-dream. It never works out.
-
Thoughts on a business rules engine
https://www.drools.org/ an open source solution that allows you to use the UI to define rules. You can even import excel files.
-
Any rust equivalents for java's Drools rule engine?
Hi all, I am doing a project in rust right now (a web server with axum, postgres, redis), and am in need of a good rule engine like Drools in java (https://www.drools.org/). From what I have searched, I couldn't find any that are well maintained or provide similar levels of functionality.
-
Event-driven Ansible looks awsome
Also ... https://www.drools.org/
-
Achieving Rule-based observability using Sidekick and Camunda
Drools - Drools - Business Rules Management System (Java™, Open Source)
- Drools - rule engine, DMN engine and complex event processing (CEP) engine for Java.
-
Python vs. Java: Comparing the Pros, Cons, and Use Cases
Drools (a Business Rule Engine),
-
Behavior Driven Testing and Drools
Hopefully you already know that Drools is a business rules management system. You write rules in either "drl" syntax, in spreadsheets, or in glorified flowcharts, and then let your application throw data at it.
Spock
-
Helidon Níma is the first Java microservices framework based on virtual threads
Well I care a lot that it exists. And many other people I know do as well. Just because you don't seem to like it, you shouldn't imagine everyone else is like you.
Maybe Grails is no longer used as much (like Rails itself), but Groovy found other usages since then, like https://spockframework.org/ and Jenkins pipelines (https://www.jenkins.io/doc/book/pipeline/syntax/). It's not going anywhere, and I see no reason for anyone to be upset about it.
-
Ask HN: What's your favorite software testing framework and why?
In my opinion it is Spock for Java/Groovy [1]. The amount of functionality and readability you can squeeze from Groovy's DSLesque is absurd. Is basically a full fledged new test language with Java sprinkled as the test contents code
- 7 Awesome Libraries for Java Unit & Integration Testing
- There is framework for everything.
-
Are there languages that allow to extend its syntax ?
Groovy allows you to perform transforms on it's AST. If you look at the Spock framework, they used AST transforms to pull off a lot of the DSL.
-
Using Cucumber and Spock for API test Automation — What Benefits Can You Expect?
Spock and Cucumber exemplify the philosophy of behavior-driven development (BDD). The principle behind BDD is that you must first define the desired result of the added feature in a subject-oriented language before writing any tests. The developers are then given the final documentation.
- A linguagem de programação Groovy - Radar da itexto
- Gradle 7.0 Released
-
HTTPS Client Certificate Authentication With Java
As a quick demonstration, the following (Spock) test asserts that the client JVM code fails to create an SSL connection with the service. Note that I chose to use Vert.x Web Client to handle interacting with the service, but don't let this decision distract from the core content of this post. Nevertheless, if you haven't used Vert.x, I encourage you to try it out -- especially for building server-side network applications.
-
Modern software controls dependencies because it helps software authors
I maintain a batterie of libraries for my company. Managing dependencies is one of the hardest part even with internal only libraries. Our major pain-point is the dependency towards 3rd party software and dealing with semver. Semver is not really hard to understand it’s just hard to execute as the developer is executing the rules. So for instance if I create a library/plugin etc which wraps around the a tool, would it be a breaking change when the software stops supporting a specific version of the wrapped tool even though the internal API stayed the same (this happens a lot for me with gradle plugins which suddenly decide to not being compatible with the version of gradle I use). I would say yes but for larger dependency trees this becomes a nightmare. For our internal unity3d libraries we decided to not count the supported Unity versions as part of the semver version. The other option would be to have special library packages for each version of unity similar to how the Spock testing framework[1] deals with groovy. For this option we don’t have enough engineers at my company.
What are some alternatives?
Easy Rules - The simple, stupid rules engine for Java
Cucumber - Cucumber for the JVM
RuleBook - 100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
REST Assured - Java DSL for easy testing of REST services
Camunda BPM - Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
AssertJ - AssertJ is a library providing easy to use rich typed assertions
kogito-runtimes - This repository is a fork of apache/incubator-kie-kogito-runtimes. Please use upstream repository for development.
Awaitility - Awaitility is a small Java DSL for synchronizing asynchronous operations
groovy - Apache Groovy: A powerful multi-faceted programming language for the JVM platform
Mockito - Most popular Mocking framework for unit tests written in Java
notepad-plus-plus - Notepad++ official repository
ArchUnit - A Java architecture test library, to specify and assert architecture rules in plain Java