[Java : Coding Conventions ] #2 Negative logic 을 사용하지 마라
대분류 - Coding Conventions [CODSTA] 규칙명 - Avoid using negative logic in if-else statement [CODSTA.ANL-5] - 부정(not)을 이용해서 if-else 류의 비교문을 작성하지 말라는 뜻이다. - negative logic 은 제어흐름의 이해를 어렵게 하기 때문에 부정을 먼저 비교하기 보다는 긍정을 먼저 비교하도록 권장하고 있다. DESCRIPTION This rule identifies negative logic in 'if-else' control flow. 'if-else' control flow includes the patterns below: -if (cond) expr else expr -cond ? expr1 : ex..
개발이야기
2007. 7. 13. 14:59
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Microsoft
- 할인채
- JavaScript
- 웹표준
- SharedSection
- prudent
- WsServerContainer
- coding standard
- 본사
- Windows
- 의왕
- ActiveX
- 파생
- VMware
- qaos.com
- JTest
- Internet Explorer 7
- 이미지
- 미투데이
- CODSTA
- 채권
- hp-ux
- Java
- WebLogic
- TyrusServerContainer
- websocket
- logback
- 이표채
- GDIProcessHandleQuota
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함