Notice
Recent Posts
Recent Comments
Link
- Korea times
- 끌리면 오라...BGM 광고음악 라이브러리
- KartOO visual meta search engi…
- E-Book
- Channel9
- MSDN
- 여리의 작업실
- 유경상의 .NET 블로그
- window 쪼물딱 거리기
- 블루 홈(소현이 누님)
- IT 관련 전반 내용(정환이네)
- 비너스의 정보 공유(유틸리티들)
- 형기의 자료공간(디지털ERA에서 콘텐츠ERA로)
- EzineArticles (여러 분야의 글들이 올라옴)
- Relationship을 보여주는 라이브러리
- OpenRCE
- 젠틀의 블로그(무선 통신의 모든것)
- 헐랭이와 IT보안
- 워니. 추억ㅇㅔ ㅂㅣ추ㅇㅓ.
- Computer Forensics
- 토익 광장(YBM)
- Korea Times 이용하기
- Larkware Software
- TCP/UDP
- Black Hat
- DEF CON
- Slashdot
- ReallyUsefulEbooks.com Update
- 실리콘밸리 뉴스
- Application Development Trends
- Visual Studio Hacks
- MIT OCW
- Redmond Developer News
- SecurityFocus
- Microsoft Window Hacking Porta…
- Darknet - Don't Learn to Hack …
- Windows Tips, Tricks and Hacks
- Hack In the Box
- (IN)SECURE Magazine
- SuperSite Windows Vista
- Government Security
- Life is Still Talking (Good)
- PHRACK
- Found+Read(resource for startu…
- Jonathan Boutelle
- Venture Hacks
- 스마트플레이스
- All about Intellipedia
- Undocumented Windows 2000 Secr…
- HexBlog (Decompiler)
- TED (Ideas worth spreading)
- Crash Dump Analysis and Debugg…
- Rootkit
- DDK Developers(MS)
- 미친 감자의 블로그
- The Art of Assembly Language
- Chpie (키보드 후킹)
- Drivers Online
- (음악) Delicate SONG
- Reverse Engineering Community
- Software Best Practices
- Sara Ford's WebLog
- Cheat Happens
- Debugging,Unpacking,Assembling…
- 윤석찬님 블로그
- OK 괜찮아 다 잘 될거야
- RingBlog
- Art Life :: 하늘소
- IT's Paradise
- John Robbins!
- Wintellect
- Hacked Gadgets
- 소프트웨어 이야기
- Ryan Naraine's Zero Day
- VULN
- Stay Secure
- EBS 영어 공부(블루워터)
- 101BLoG : "Bright Size Life" o…
- Hacker Challenge
- Hackers Center
- White Hat, Chicago Con
- Ethical Hacker Network
- ChaseNet (Security)
- TechTarget
- Entrepreneur
- Infopackets
- Popular Science
- Dark Reading - The Business of…
- How Stuff Works
- codeDriver - Crack (역공학)
- Gadget (Windows)
- Serious Code
- Iguacu Blog(블루문)
- SecurityProof
- Power of Community(Hacker)
- Crack ?
- Security Freak
- Data Network Resource
- FoundStone - Security Consulti…
- Google Online Security Blog
- (BOOK) Cool DogBooks
- SachaBarber (좋은 개발자)
- System Software Incorporation
- 스카이 벤처
- NewsTorrent
- 글로벌 IT 네트워크
- Ethical Hacking and Infosec
- Realms of Hacking tricks
- CodeBreakers Journal
- Anti Rootkit Blog
- The Reverse Code Engineering C…
- Anti-Debug Tools
- Reverse Code Engineering Video…
- Damn Vulnerable linux
- Security Problems
- French Reverse Engineering Tea…
- Monac
- Open Source Vulnerability Data…
- Viruschaser 검사(바이러스)
- Windows Tips
- 보안 대처 연습
- [Download] Kartz CD
- [Download] FlMS Download
- [Download] DDL2
- 중국 해킹 사이트(안전중국)
- 바이러스 분석
- Javascript 전문가
- Virus Alert Zone (바이러스 분석)
- Computer World
- 문스랩닷컴(보안)
- Unpack China
- Black Storm Reverse Engineerin…
- 역공학 Reverser
- 문화 망명지 - 시, 소설
- WPF MVP
- Research Channel
- The Problem Solver - C# MVP
- Reversing - 리버스 엔지니어링
- Nigel Spencer's Blog (.NET)
- Kirill Osenkov (.NET C# IDE Te…
- H33T (BitTorrnet 검색 사이트)
- ITL (해킹, 보안)
- ITL (Invisible Things Lab) Blo…
- ebook, pdf, chm
- 주식 - 멘토클리닉
- CherryLove - 바이러스, 백신, 악성코드
- PMP
- 영원한 해커, hacker
- 리버싱, PE
- 신호철 - dsphome
- TechEd 2009
- SHOUT
- [도서] 오디오북
- [도서] 전자책
- [도서] 국내도서요약
- [도서] 해외도서요약
- TopCorder - 프로그래밍 연습
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- VSTS 2010
- C#
- visual studio 2010
- 닷넷
- 해킹
- .net framework 4
- 디버그랩
- 책
- 역공학
- debugging
- .net
- VSTS
- Windows
- WPF
- Microsoft
- 디버깅
- 보안
- 비주얼 스튜디오
- Visual Studio
- 마이크로소프트
- 구글
- .NET Framework
- security
- Windows 7
- hacking
- 비주얼스튜디오
- MVP
- english
Archives
- Today
- Total
NaggingMachine
What a fool! 본문
About a week ago, I debug my code for 1 hour. Because it was very simple code, I couldn't understand why the result was wrong. It drove me crazy. I thought me as a debug machine, but it turned out that I'm not such a debug guru. The code that I debug is the following code.
I think you happed to meet this situation any time. So my guidlines are like followings.
1. Re-organize the code. There are many plug-ins and macros integrated with IDE that help you to make your code more readable.
2. Use explicitly brackets. Don't save lines. Even if the if statement always have just one line, use brackets. The if statment can have more lines later.
3. Use only your brain, not the information your eyes give you.
if ( $count < 10 )
if ( $count == 0 )
$count = 1;
else
$count = 10;
Can you find what the problem is in seconds? Now, of course, I can. It is like a coding style problem. The code was not mine. I mean I didn't code it. The value of $count was 6 and the value that I got after the execute the previous code was 10. I thought the result should be 6 because 6 is less than 10 and not equal 0. It should remain as it was. Why was the value of $count changed to 10? You can get the idea if the code was like the following.if ( $count < 10 )
if ( $count == 0 )
$count = 1;
else
$count = 10;
Now, 6 is less than 10 and not equal 0, so the value is 10. Isn't it clear? Then why couldn't I debug it? Because I'm a human being, not a machine, I debug it by using my eyes and brain. From the information that my eyes gave me, I thought the else statement is releated with the first if statement.I think you happed to meet this situation any time. So my guidlines are like followings.
1. Re-organize the code. There are many plug-ins and macros integrated with IDE that help you to make your code more readable.
2. Use explicitly brackets. Don't save lines. Even if the if statement always have just one line, use brackets. The if statment can have more lines later.
3. Use only your brain, not the information your eyes give you.
'TechnoBabbler' 카테고리의 다른 글
WPF Killer Application, TimesReader! (0) | 2006.09.26 |
---|---|
Install the lastest Vista, Build #5728 (0) | 2006.09.26 |
좋은 개발 툴 소개 (0) | 2006.09.04 |
Microsoft 모래성 출시하다. (0) | 2006.08.31 |
Windows GUI 변천사 (0) | 2006.08.21 |