protected void onCreate(Bundle icicle)

I heard a radio program a while back about found poetry. My favourite example was the message you see written out on the buttons you use to operate some train doors. Written from top to bottom it says:

Open Doors Close

The title of this entry comes from a basic Android program (the operating system that makes most of the world’s smartphones run). That phrase makes me think of some sort of Japanese Anime wizard character, who enters the protected void to create an icicle bundle to use against his enemy.

SQL commands are used for getting information from databases. An example would be
SELECT * FROM Customers WHERE Sex=’F’
which would find all your female customers. Seeing that always makes me want to write something like

SELECT integrity FROM life WHERE Hope IS NULL
Python programmers might write something like the following
class Music:
def __init__(self):

Which sounds like something someone trying to be cool ten years ago might say.*

One of my favourites is the LISP command to add together two numbers, for no other reason than I like the look of it.
(+ 2 2)
What I really like about all the above expressions, though, isn’t so much the poetical aspect, but rather the way these expressions inevitably arrive by applying the logic of the programming language in question.

But more on that another time…

* Any python programmers reading this – I know the def  __init__ should be indented.  Wordpress keeps stripping out my leading spaces. If you have a solution to this, I’d love to hear it.

Not what you’re looking for?  Try Tony Ballantyne Tech for real coding.

1 Comment

  1. A non-breaking space will, with some blog programs and forums, let you indent. The keyboard command us alt+0160 (using the number pad). Let’s test:
         Five spaces should precede this line of text if it works.

Comments are closed.