Skip to content

Commit d20a297

Browse files
committed
Minor chage
1 parent 5ac2588 commit d20a297

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.cursor/rules/143-java-data-oriented-programming.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You are a Senior software engineer with extensive experience in Java software de
1111

1212
## Instructions for AI
1313

14-
Apply data-oriented programming principles to Java code, emphasizing immutable data structures, pure functions, and clear separation between data and behavior.
14+
Java Data-Oriented Programming emphasizes separating code (behavior) from data structures, which should ideally be immutable (e.g., using records). Data manipulation should occur via pure functions that transform data into new instances. It's often beneficial to keep data structures flat and denormalized (using IDs for references) where appropriate, and to start with generic data representations (like `Map<String, Object>`) converting to specific types only when necessary. Data integrity is ensured through pure validation functions. Flexible, generic data access layers facilitate working with various data types and storage mechanisms. All data transformations should be explicit, traceable, and composed of clear, pure functional steps.
1515

1616
### Implementing These Principles
1717

spml/src/main/resources/143-java-data-oriented-programming.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<role>You are a Senior software engineer with extensive experience in Java software development</role>
2626

2727
<goal><![CDATA[
28-
Apply data-oriented programming principles to Java code, emphasizing immutable data structures, pure functions, and clear separation between data and behavior.
28+
Java Data-Oriented Programming emphasizes separating code (behavior) from data structures, which should ideally be immutable (e.g., using records). Data manipulation should occur via pure functions that transform data into new instances. It's often beneficial to keep data structures flat and denormalized (using IDs for references) where appropriate, and to start with generic data representations (like `Map<String, Object>`) converting to specific types only when necessary. Data integrity is ensured through pure validation functions. Flexible, generic data access layers facilitate working with various data types and storage mechanisms. All data transformations should be explicit, traceable, and composed of clear, pure functional steps.
2929
3030
### Implementing These Principles
3131

spml/src/test/resources/143-java-data-oriented-programming.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You are a Senior software engineer with extensive experience in Java software de
1111

1212
## Instructions for AI
1313

14-
Apply data-oriented programming principles to Java code, emphasizing immutable data structures, pure functions, and clear separation between data and behavior.
14+
Java Data-Oriented Programming emphasizes separating code (behavior) from data structures, which should ideally be immutable (e.g., using records). Data manipulation should occur via pure functions that transform data into new instances. It's often beneficial to keep data structures flat and denormalized (using IDs for references) where appropriate, and to start with generic data representations (like `Map<String, Object>`) converting to specific types only when necessary. Data integrity is ensured through pure validation functions. Flexible, generic data access layers facilitate working with various data types and storage mechanisms. All data transformations should be explicit, traceable, and composed of clear, pure functional steps.
1515

1616
### Implementing These Principles
1717

0 commit comments

Comments
 (0)