bool 타입 변수 이름 짓기


bool 타입 변수 이름 짓기

is + 동사원형 쓰지 마라 isEdit (x) isEditable (o) isEditing (o) canEdit (o) is + 명사 이것인가? isDescendant is + ing(현재진행형) ~하는 중인가 isExecuting isPending is + 형용사 isReadable isVisible is + 과거분사(~ed, 찾아볼 것) isHidden isSelected isCompleted 조동사 + 동사원형 (3인칭 단수, -s, -es) can + 동사원형 : ~할 수 있는가? should + 동사원형 : ~해야 하는가? will + 동시원형 : ~할 것인가? has + 명사 ~를 가지고 있는가? hasAccount hasVideo has + 과거분사 hasConnected hasEnded 출처 https://soojin.ro/blog/naming-boolean-variables Bool 변수 이름 제대로 짓기 위한 최소한의 영어 문법 · Soojin Ro Bool 변수...


#bool #boolean #namming #네이밍 #변수명 #이름짓기 #프로그래밍

원문링크 : bool 타입 변수 이름 짓기