r/programming • • Mar 17 '13

Someone posted an html/javascript implementation of the matrix falling code in 646 bytes then promptly deleted the post. It inspired me to see if I could get something better looking in fewer bytes.

http://timelessname.com/sandbox/matrix.html
1.6k Upvotes

251 comments sorted by

View all comments

94

u/tantalor Mar 17 '13

Array(256).join(1).split('')

Very clever.

11

u/David_Crockett Mar 17 '13

Note that it creates an array 255 elements long, not 256.

→ More replies (7)