Trust no one: don't trust debug meesage

Did you know that even a machine can lie to you? The only difference is that it's human that makes the machine lie. Not like long time ago, most of the time you can easily find a good explanation for any error or exception you encounter when you code. However, not all messages are of the same weight.

When I was in my last job, I learned it (a bit) hard way.
[Don't trust message your Javascript console emits.]
While others were trying to find the root cause based on the Javascript console, I intentionally ignored it, since it didn't make sense at all in machine language level. Anyway, the message was  written by a human, so the console had to lie as the program's exception handler says.

Well, sometimes, you have to see beyond the scene, and read between lines.

No comments:

Post a Comment

블로그를 이전합니다

뭐, 이런 작은 변방의 블로그에 관심있으신 분들은 아무도 없으시리라 생각합니다만...... (웃음) 블로그 플랫폼을 블로거에서 dev.to로 옮겼습니다. 새 URL은 아래와 같습니다: https://dev.to/teminian 새로운 거처에서 뵙겠습니...

Popular in Code{nested}