Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShulV authored Nov 23, 2023
1 parent cbbda65 commit ade48a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ logger.atInfo().log("Image info created: [image_info_id = '{}']", imageInfo.getI
```

### Hot to name JSON keys:
"some_key_name": "value" (snake_case)
(snake_case)
```
"some_key_name": "value"
```
P.S. many JSON libraries (in Spring Framework), such as Jackson, support camelCase format out of the box.

But snake_case is more convenient to read now.

### Size of methods and classes:
The maximum length of methods is 100 lines. The maximum class length is 1000 lines.

If the size of a method or class exceeds these values, then new business logic can only be added in the form of calling methods of other functions.

But it is better to carefully refactor it!

0 comments on commit ade48a2

Please sign in to comment.