Tuesday, April 11, 2006

The Egocentrism Bug

Introduction

The "egocentrism bug" is the thought that the computer can fill in what you forgot to write, or somehow interpret the correct meaning of a statement (Pea 1986). There is of course no more meaning in the program than what is written in the code.

Program

You have to tell the computer exactly what it is supposed to do. The computer can't understand what a statement is supposed to mean. For instance, the computer never stops executing a program, asking itself what it is doing, or if what it does is worth doing... So, sometimes the computer hangs!

public class Main {
    public static void main(String[] args) {
        while (true) {
            System.out.println("All Work and No Play Makes Jack a Dull Boy. ");
        }    
    }
}

References

No comments: