[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
- 웹표준
- Windows
- JTest
- Java
- qaos.com
- 채권
- SharedSection
- TyrusServerContainer
- 미투데이
- JavaScript
- 이표채
- 본사
- 이미지
- 파생
- coding standard
- Microsoft
- websocket
- CODSTA
- prudent
- ActiveX
- WebLogic
- GDIProcessHandleQuota
- VMware
- WsServerContainer
- 할인채
- hp-ux
- Internet Explorer 7
- 의왕
- logback
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함