Back to front pageView on Hacker News (opens in a new tab)Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years agoPreferably an elegant snippet rather than an entire (well engineered) codebase.Comments (380) 116 threadsShow all commentsShowing thread 16 of 116gitgud7 years ago#For me it's the unix example in [1] "AT&T Archives: The UNIX Operating System". $ makewords sentences | lowercase | sort | unique | mismatch - It reads a file called sentences then prints the words that are not spelled correctly.To me it's; concise, expressive, flexible, modular... Which makes it beautiful...[1] https://youtu.be/tc4ROCJYbm0
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
gitgud7 years ago#For me it's the unix example in [1] "AT&T Archives: The UNIX Operating System". $ makewords sentences | lowercase | sort | unique | mismatch - It reads a file called sentences then prints the words that are not spelled correctly.To me it's; concise, expressive, flexible, modular... Which makes it beautiful...[1] https://youtu.be/tc4ROCJYbm0
Comments (380) 116 threads
Show all comments
Showing thread 16 of 116
To me it's; concise, expressive, flexible, modular... Which makes it beautiful...
[1] https://youtu.be/tc4ROCJYbm0