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 78 of 116totalperspectiv7 years ago#Kind of cheating because Kernighan literally labels it as beautiful. It's Rob Pike's implementation of Ken Thomson's regex matcher.https://www.cs.princeton.edu/courses/archive/spr09/cos333/be...
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
totalperspectiv7 years ago#Kind of cheating because Kernighan literally labels it as beautiful. It's Rob Pike's implementation of Ken Thomson's regex matcher.https://www.cs.princeton.edu/courses/archive/spr09/cos333/be...
Comments (380) 116 threads
Show all comments
Showing thread 78 of 116
https://www.cs.princeton.edu/courses/archive/spr09/cos333/be...