r/programming • • Aug 30 '15

JavaScript “maze generator” in a tweet

https://twitter.com/botond_balazs/status/637960240055615488
847 Upvotes

177 comments sorted by

View all comments

Show parent comment

1

u/RagingOrangutan Aug 31 '15

You can break down any program into a series of loops and conditional statements and say "woah that's not clever at all".

That's not really true. Dijkstra's algorithm or PageRank both have relatively simple steps but are quite clever. "Randomly pick / or \ and print it" is really not clever. The cleverness is in the fact that the display ends up looking a little bit like a maze. So it's marketing cleverness (he has turned something we all probably programmed when we were learning into something people think is interesting), not algorithmic cleverness.