Ask HN: What is the most beautiful piece of code you've ever read?
1–10 of 394 posts
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#2This 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.
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#3https://github.com/achael/eht-imaging 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.
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#4Re: Ask HN: What is the most beautiful piece of code you've ever read?
#5Re: Ask HN: What is the most beautiful piece of code you've ever read?
#6Not to sound cheeky but eliminating code, is a beautiful thing. Less code is easier to maintain, understand, and faster to run. So the less code you can achieve, the better overall the software will be.
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#7Re: Ask HN: What is the most beautiful piece of code you've ever read?
#8About 10 years later you would find this stuff everywhere in boost but for the time this was spectacularly elegant for C++
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#9I think a much better question would be most beautifully structured codebase.
Code, as a snippet, or line, is constantly struggling between poetic conciseness and verbose clarity... To which I will always pick clarity (for "the next guy"), hence not necessarily elegant.
Re: Ask HN: What is the most beautiful piece of code you've ever read?
#10 10 print "Hello World";
20 goto 10;
run