From ade48a2ee1cd2f4d3aa2d935f0f5c4d84d30894e Mon Sep 17 00:00:00 2001 From: Shulpov Victor <61896442+ShulV@users.noreply.github.com> Date: Thu, 23 Nov 2023 23:42:49 +0700 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7314416..12ca595 100644 --- a/README.md +++ b/README.md @@ -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!