I’ve been spending quite a lot of time in the last few days coding some web applications in the programming language PHP. While writing libraries of reusable code, I realised that some of the design issues have interesting parallels both to the expression of mathematics, and the linguistic aspects of Orwell’s classic novel 1984.
First, for newcomers, some software engineering jargon: classes are collections of code and associated data that are written to behave as coherent objects, which are then”plugged in” to other parts of programs, or indeed each other, to create entire programs. For example, a simple text entry box is an object, that stores whatever is typed in it, along with code to describe how to handle keyboard activity within the box, how to draw the box on the screen, and so on.
Continue reading “Programming, mathematics and 1984”