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 61 of 116[-]canada_dry7 years ago1 reply#https://github.com/achael/eht-imagingThis python code was part of the imaging, analysis, and simulation software for radio interferometry that led to the historical first 'image' of a black hole.[-]seisvelas7 years ago1 reply#What about the code did you find so striking? Any part in particular you recommend checking out?canada_dry7 years ago#Overall I refer to it as a good example of relatively complex - yet highly readable - python code.It's utterly digestable due to its use of meaningful variable names, logical breakdown of functions and absence of 'clever' nontrivial one-liners.
Ask HN: What is the most beautiful piece of code you've ever read?476 pointsby seisvelas (on Hacker News)7 years ago
canada_dry7 years ago1 reply#https://github.com/achael/eht-imagingThis python code was part of the imaging, analysis, and simulation software for radio interferometry that led to the historical first 'image' of a black hole.
seisvelas7 years ago1 reply#What about the code did you find so striking? Any part in particular you recommend checking out?
canada_dry7 years ago#Overall I refer to it as a good example of relatively complex - yet highly readable - python code.It's utterly digestable due to its use of meaningful variable names, logical breakdown of functions and absence of 'clever' nontrivial one-liners.
Comments (380) 116 threads
Show all comments
Showing thread 61 of 116
This python code was part of the imaging, analysis, and simulation software for radio interferometry that led to the historical first 'image' of a black hole.
It's utterly digestable due to its use of meaningful variable names, logical breakdown of functions and absence of 'clever' nontrivial one-liners.