Live data from Hacker News

Ask HN: What are some examples of beautiful software?

news.ycombinator.com

151–160 of 262 posts

Re: Ask HN: What are some examples of beautiful software?

#151

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.

If we are going that road, many games qualify. (Portal takes my vote)

Re: Ask HN: What are some examples of beautiful software?

#152
post #101

C: 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…

"The code twists and contorts ruby in unimaginable ways." Doesn't sound like my idea of beautiful software.

Re: Ask HN: What are some examples of beautiful software?

#153
post #122
post #106

JSON. 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.

Can you provide some more context?

    > 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?

#154

Earlier 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.

Lots of missing error checks. fwrite() can fail -- this code just ignores it. No thanks!

Re: Ask HN: What are some examples of beautiful software?

#155
post #23

LuaJIT. 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.

But... Lua is a register-based VM since like Lua 5.

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?

#156
post #122

Earlier 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?

Write the dates/times as string in ISO 8601 format.

Re: Ask HN: What are some examples of beautiful software?

#157

Anything 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

Wow, I knew about aleph, but just learned of automat. I was always a fan of FSMs in school, and automat's readme gave me goosebumps. Thanks!

Re: Ask HN: What are some examples of beautiful software?

#158

I 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.

Indeed. No Starch Press's book on TCP/IP by Kozierok is 1600 pages!

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
post #39

"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".

I'm not a big fan of the game (love its style, but the gameplay hasn't aged well IMO - playing it for the first time in 2014 probably didn't help), but this is a really neat architecture. Thanks for the link.

Re: Ask HN: What are some examples of beautiful software?

#160
i maintain a lingering fondness for the [aurora text editor](http://www-personal.umich.edu/~knassen/aurora.html), a dos-based text editor that was, like emacs, largely written in its own scripting language. the editor was sadly closed-source and has now gone the way of most closed source stuff, but the scripted bits were open source, and they were a real pleasure to work with. again, like emacs, you could build some surprisingly non-text-editor-like things on top of it.
Post reply on HN