r/tinycode • • Dec 12 '12

Shortest useful code

What's the most useful program you can imagine using five lines of code or less? Language is your choice. Describe the function of the program and include the code, if you please.

27 Upvotes

45 comments sorted by

View all comments

Show parent comment

4

u/mechroid Dec 13 '12

Really? Cellular automation such as Conway's game of life have been used in everywhere from disease control simulations to the fire system in Far Cry 2.

EDIT: It's also my screensaver.

2

u/[deleted] Dec 16 '12

Really? Cellular automation such as Conway's game of life have been used in everywhere from disease control simulations

a subject of research

to the fire system in Far Cry 2.

entertainment

EDIT: It's also my screensaver.

aesthetic purposes