인자가 많은 메서드는 왜 나쁠까? #74
seunghye218
started this conversation in
Clean Code
Replies: 2 comments
-
|
인자가 많은 메서드는 여러 가지 이유로 나쁠 수 있습니다.
따라서 가능하면 인자의 수를 줄이고, 그룹화하여 관련된 데이터를 객체로 전달하는 방법을 고려하는 것이 좋습니다. 또한, 필요한 경우 메서드를 여러 개로 분리하여 인자의 수를 줄이고 가독성을 향상시킬 수 있습니다. |
Beta Was this translation helpful? Give feedback.
0 replies
-
장점
단점
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
.
Beta Was this translation helpful? Give feedback.
All reactions