Well, I think Jonathan Blow's Braid is a beautiful thing. Many in here seem to be talking about the beauty of the source code or something related, but I like a simple well executed idea that is beautiful to look at as well. No corners were cut here - I think it is a work of art.
Ask HN: What are some examples of beautiful software?
151–160 of 262 posts
Re: Ask HN: What are some examples of beautiful software?
#152C: anything by antirez (redis, etc...) Redis is the epitome of well written understandable C. Ruby: anything written by _why (if you can find the source) He once gave a whole presentation on the splat operator and it's bizarre uses that gave me goosebumps. A true artist. The code twists and contorts ruby in unimaginable ways. JS: anything written by TJ hollwaychuck (express, mocha, etc...) Express is so simple but po…
Re: Ask HN: What are some examples of beautiful software?
#153JSON. The way it displays and organizes complex data, better than other standards like CSV or XML. Or the things that use tables. When I first started programming, I had two favorite ways of storing data - INI and arrays. INI for its elegant key/value style. Arrays were just natural because of the way computers think. I spent months trying to mold these two things together; how would you actually store key-value thin…
> JSON is just this beautiful thing that lets you store data however you want. What if I want to store integers? Not floats. Integers.
> JSON.stringify(1)
"1"
Stored without a decimal for free, seems like it'd be up to the receiver to interpret it correctly.What if you receive it in JS?
JSON.parse(JSON.stringify(1))
> 1
Ok, so it parses an int for free too... thus my confusion.Regardless, you can still override anything it does considering the second argument to both `JSON.parse()` and `JSON.stringify()` allows you to provide your own function for handling the logic as you see fit.
Re: Ask HN: What are some examples of beautiful software?
#154Earlier quoted context omitted.
Why not use enum? https://github.com/Hypsurus/skod/blob/master/src/skod.c#L290 Also, at least some functions should be static. _cla means "command line arguments", not obvious. Useless comments: https://github.com/Hypsurus/skod/blob/master/src/skod.c#L273
Not my software, but if you have looked at other FTP clients this is an amazing thing to read though.
Re: Ask HN: What are some examples of beautiful software?
#155LuaJIT. It's a cutting-edge JIT with remarkably understandable algorithms and source. Every single piece of it is well thought out. Even the asm interpreters are pretty clean and explain why they work the way they do. Mike Pall is a demigod.
LuaJIT is, indeed, a genius masterwork, but it's also very intricate and complex. I'm not entirely sure anyone other than Mike Pall could understand it completely. On the other hand Lua (The Original™) is also a beautiful bit of programming, and much more approachable. If you've ever wondered what it means when people talk about "Stack-based VMs", reading through the Lua source is an excellent way to learn more.
Not disputing that Rio Lua is also an excellent work though. Lua 5.1 only has 38 opcodes total. A complete description of how the VM works fits on a page or so.
Re: Ask HN: What are some examples of beautiful software?
#156Earlier quoted context omitted.
> JSON is just this beautiful thing that lets you store data however you want. What if I want to store integers? Not floats. Integers.
Or dates? No one would ever need to store dates or times, right?
Re: Ask HN: What are some examples of beautiful software?
#157Anything by Zach Tellman: https://github.com/ztellman/aleph https://github.com/ztellman/automat In terms of his ideas, watch "Always be composing": https://www.youtube.com/watch?v=3oQTSP4FngY And he offers some great thoughts about queues and backpressure in "Everything will flow": https://www.youtube.com/watch?v=1bNOO3xxMc0
Re: Ask HN: What are some examples of beautiful software?
#158I would say that not many actual implementations of software turn out to be beautiful, assuming it is above a certain threshold of complexity and it is meant for production use. On the other hand, the ideas, algorithms, or the protocols on which software is based often seem beautiful, elegant, or brilliant, at least to me. A few examples I can think of are: Google PageRank algorithm, Bitcoin's protocol and the block…
> tcp protocol I respectfully disagree. Many of the elements of tcp are very complicated, and more or less of a hack. Compose them all together, and it's a hugely complex and arguably ugly (if utilitarian) standard.
RINA is a beautiful new redesign of the networking stack wherein "computer networking is just inter-process communication."
https://en.m.wikipedia.org/wiki/Recursive_InterNetwork_Archi...
Re: Ask HN: What are some examples of beautiful software?
#159"Another World" There's a very interesting write up here: http://fabiensanglard.net/anotherWorld_code_review/ The game itself has an amazingly beautiful vector style. The engine is remarkably tiny, 20kb. I decided years ago if I ever find time to build a game I'd like to architect it like "Another World".