Genius is when you look at code that does something impressive and say: "Holy guacamole, it's so simple! Now that I see it, it looks almost obvious. Pure magic. How do people even come up with such ideas?"
IMHO "genius" is code that appears completely unintelligible at first glance, but then you examine it carefully and then feel immensely enlightened once you understand.
These are the two examples of such code that immediately come to mind:
Genius is when you look at code that does something impressive and say: "Holy guacamole, it's so simple! Now that I see it, it looks almost obvious. Pure magic. How do people even come up with such ideas?"
IMHO "genius" is code that appears completely unintelligible at first glance, but then you examine it carefully and then feel immensely enlightened once you understand.
These are the two examples of such code that immediately come to mind:
https://news.ycombinator.com/item?id=22353532
https://news.ycombinator.com/item?id=28491562
The original UNIX source code may come in as a distant third, a very distant third; code that is truly "genius" is indeed extremely rare.