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 10 of 116zer017 years ago#This PNG parser in Elixir uses pattern matching in an elegant way.https://gist.github.com/zabirauf/29c89a084901cab8bc6bParsing binary data can be...nontrivial. The beauty is in the code that doesn't exist.
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
zer017 years ago#This PNG parser in Elixir uses pattern matching in an elegant way.https://gist.github.com/zabirauf/29c89a084901cab8bc6bParsing binary data can be...nontrivial. The beauty is in the code that doesn't exist.
Comments (380) 116 threads
Show all comments
Showing thread 10 of 116
https://gist.github.com/zabirauf/29c89a084901cab8bc6b
Parsing binary data can be...nontrivial. The beauty is in the code that doesn't exist.