6 Jul 2006 20:46

Suggerimento dell’anno per i programmatori

Another effective [debugging] technique is to explain your code to someone else. This will often cause you to explain the bug to yourself. Sometimes it takes no more than a few sentences, followed by an embarrassed “Never mind, I see what’s wrong. Sorry to bother you.” This works remarkably well; you can even use non-programmers as listeners. One university computer center kept a teddy bear near the help desk. Students with mysterious bugs were required to explain them to the bear before they could speak to a human counselor. - B. Kernighan & D. Pike (in “The Practice of Programming” pp. 123)

Articoli correlati

Tags: , ,

Ancora nessun commento »

1 Star2 Stars3 Stars4 Stars5 Stars (Ancora nessun voto)
Loading ... Loading ...

Trackback URI | Comments RSS

Leave a Reply

« Deception Point - Dan Brown | Jazz »