You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if문이 여러번 중첩되어 코드를 따라가기가 힘듭니다. 그리고 중괄호가 생략되어 있어 코드의 어떻게 진행되는지도 파악하기가 힘듭니다. 객체지향 생활체조에서는 들여쓰기를 오직 한 단계를 제한하고 else를 사용하지 말 것을 권장합니다. 조건문을 사용하면 복잡성이 늘어나 코드를 이해하기 어려워지고 유지보수하기 어려워집니다.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
문제
if가 여러번 중첩되어 코드를 읽고 이해하기가 어렵다.
예시
해결
if문이 여러번 중첩되어 코드를 따라가기가 힘듭니다. 그리고 중괄호가 생략되어 있어 코드의 어떻게 진행되는지도 파악하기가 힘듭니다. 객체지향 생활체조에서는 들여쓰기를 오직 한 단계를 제한하고 else를 사용하지 말 것을 권장합니다. 조건문을 사용하면 복잡성이 늘어나 코드를 이해하기 어려워지고 유지보수하기 어려워집니다.
See also
Beta Was this translation helpful? Give feedback.
All reactions