New advertisers: 50% off your first month with code FIRSTMONTHSee slots
jabrena avatar

144 Java Data Oriented Programming

Java refactoring guide that separates records and immutable data from pure transformation and validation functions.

skills.sh installs
129
GitHub stars
465
last updated
Jun 3, 2026
View on GitHub

What it does

  • Covers data-oriented patterns: separating records from behavior, immutable transformations, flat ID-referenced data, and pure validation
  • Lists core areas: generic-to-specific type conversion, Map<String,Object> for dynamic data, and generic CRUD data access layers
  • Requires ./mvnw compile before changes and ./mvnw clean verify after, stopping if compilation fails
  • Designed for Java projects refactoring toward data-oriented design with records and pure functions

Install

$ npx -y skills add jabrena/cursor-rules-java --skill 144-java-data-oriented-programming -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Java Data-Oriented Programming Best Practices

Apply data-oriented programming in Java: separate data from behavior with records, use immutable data structures, pure functions for transformations, flat denormalized structures with ID references, generic-to-specific type conversion when needed, pure validation functions, and flexible generic data access layers. All transformations should be explicit, traceable, and composed of clear pure functional steps.

What is covered in this Skill?

  • Separation of concerns: data structures (records, POJOs) vs behavior (utility classes, services)
  • Immutability: records, final fields, transformations produce new instances
  • Pure data transformations: functions depending only on inputs, no side effects
  • Flat and denormalized data: ID references instead of deep nesting
  • Generic until specific: Map<String,Object> for dynamic data, convert to records when processing
  • Data integrity: pure validation functions returning validation results
  • Flexible generic data access: generic CRUD interfaces, interchangeable implementations

Details

Repository
github.com/jabrena/cursor-rules-java
Category
Java & JVM
First seen
Jun 3, 2026

More from jabrena/cursor-rules-java

All 16

Similar to 144 Java Data Oriented Programming

More Java & JVM