Lurker News
Preferably an elegant snippet rather than an entire (well engineered) codebase.

Comments (380) 116 threads

Earlier comments
kqr1 reply#
Implementing FizzBuzz with explicit monoidal operations has been one of those things that I go back to and marvel at the simplicity and elegance of: http://dave.fayr.am/posts/2012-10-4-finding-fizzbuzz.html

It really inspired me to get better at seeking out the fundamental operations of whatever I was implementing.

emmelaich#
That is great.
userbinator#
That's my choice too. It's a C-subset, but more than a compiler; it includes a bytecode VM interpreter too. The best part about it is that it's tiny, yet very readable for its size and functionality.
endymi0n1 reply#
Considering the magnitude of its impact on science, engineering and culture (as well as the tremendous force released), this line from the IGNITION subroutine in the BURN_BABY_BURN module of the Apollo AGG source code does it for me:

https://github.com/chrislgarry/Apollo-11/blob/master/Luminar...

babuskov#
I love the comments in that file. Especially these two:

    # HONI SOIT QUI MAL Y PENSE
and

    # NOLI SE TANGERE
gitgud#
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

Load more comments