Tagged articles
Fluent API
13 articles · Page 1 of 1
The article explains why extensive if…else chains degrade code readability, maintainability, and testability, and introduces Easy Rules—a lightweight Java rule engine that externalizes business logic into reusable rule objects, offering annotation, fluent API, expression, and YAML/JSON definitions, plus composite rules and engine configurations.
Easy RulesFluent APIJava
0 likes · 18 min read

This article introduces the Carbon library—a fluent, human‑readable wrapper for PHP's DateTime—explaining why it simplifies date calculations, how to install it via Composer, and demonstrating core concepts, common APIs, advanced features, and performance best practices with concrete code examples.
CarbonDATETIMEFluent API
0 likes · 9 min read

This article presents a coding challenge that asks Java developers to perform common I/O operations—reading files, streams, URLs, sockets, and more—in a single line of code, and demonstrates how the jd.commons library provides concise fluent APIs to achieve these tasks while reducing boilerplate.
Fluent APIIOJava
0 likes · 9 min read

The article walks through the problems of hard‑coded if‑else logic, introduces rule engines as a flexible solution, explains EasyRule’s concepts, advantages, and classifications, and provides step‑by‑step Java examples using annotations, fluent API, MVEL, and YAML configurations.
EasyRuleFluent APIJava
0 likes · 20 min read

This article introduces Spring Data JPA's Query by Example (QBE) feature, explains its benefits and limitations, and provides step‑by‑step code examples—including entity definition, repository setup, and various query scenarios—illustrated with SQL output and screenshots.
Fluent APIJavaQuery by Example
0 likes · 11 min read

This article introduces mica-http, a lightweight Fluent‑style HTTP client built on OkHttp, walks through dependency setup, synchronous and asynchronous usage, global logging, custom client and cookie management, presents performance benchmarks, and highlights its automatic resource handling for safe, high‑performance requests.
Fluent APIHTTPOkHttp
0 likes · 7 min read

This article introduces SpringBoot 3.2's JdbcClient, explains how to add the dependency, inject it, and demonstrates fluent‑API query and insert operations—including positional, named, map‑based parameters and custom RowMapper—showing how to perform CRUD without heavyweight ORM frameworks.
Fluent APIJavaJdbcClient
0 likes · 7 min read

This guide introduces Spring Boot 3.2's new JdbcClient, explains how to add the dependency, inject it, and perform fluent, chainable CRUD operations—including queries by ID, custom conditions, named parameters, map parameters, row mapping, and inserts—while highlighting its advantages over traditional ORM tools.
Fluent APIJavaJdbcClient
0 likes · 7 min read

This article presents a Java-based rule engine design that separates rule definitions, data transfer objects, and execution logic, demonstrating AND/OR composition, abstract rule templates, concrete implementations, and a fluent API for building and executing complex rule chains.
AND/OR LogicBackendFluent API
0 likes · 8 min read

Learn how Lombok's @Accessors annotation works by exploring its source code and understanding the three key attributes—fluent, chain, and prefix—so you can control getter and setter generation, customize method naming, and enable method chaining in your Java classes.
AnnotationsFluent APIJava
0 likes · 4 min read

This article demonstrates how a universal Builder utility can replace verbose object construction in Java, allowing developers to instantiate a class and set multiple properties—including complex collections—in a single fluent chain, while also explaining the underlying implementation and usage examples.
Builder PatternFluent APIObject Construction
0 likes · 7 min read

This article explains the concept and benefits of domain‑specific languages, classifies DSL types, and demonstrates how to implement a lightweight, stateless state‑machine engine in Java using a fluent internal DSL that improves code readability, maintainability, and performance.
DSLFluent APIInternal DSL
0 likes · 15 min read

mica-http is a Java wrapper for OkHttp that offers a fluent‑style HTTP client, showing Maven/Gradle integration, global logging configuration, synchronous and asynchronous request examples, and advanced features like header, cookie, query, form handling, and response processing with Jackson and Jsoup.
Fluent APIHTTPJava
0 likes · 6 min read
