Settings

Theme

Ask HN: Which Opens Source Software have the sexiest code?

8 points by milkoolong 8 months ago · 11 comments · 1 min read

Reader

I heard reading well-written code can improve my skills. Instead of reading top-rated projects on GitHub, which I do, I thought to ask the community to share their favorite OSS they believe to have examplary code.

0xCE0 8 months ago

Many Freedesktop-projects have very beautiful/elegant/professional/clear C code, e.g.: https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/amd...

Also Blender, Chrome, FFmpeg, LLVM are examples for large and long scale projects codebases, that are almost like old vs. new brain, meaning there are old low-level codelines and on top of those cumulates all kinds of abstractions.

Geohot's tinygrad is great example of booting up codebase from scratch: set conscious goal for small max lines of code (e.g. 1k), then code the next state of working implementation, then clean and refactor it to cut the fat off. It feels that code wants to shape to specific form and size depending on goal.

markus_zhang 8 months ago

Linux? I don't understand anything about it so it's sexy. Like girls, I never understood them.

palata 8 months ago

In C++, I find Cap'n Proto very impressive: https://github.com/capnproto/capnproto

bjourne 8 months ago

Anything created by the Pallets team: https://github.com/pallets

BobbyTables2 8 months ago

All OSS code is exemplary.

Of course, some of it fits one meaning of the word and some fits the other meaning.

cpach 8 months ago

Is well-written code “sexy”? I’m not so sure about that.

hiAndrewQuinn 8 months ago

OpenBSD

jlcases 8 months ago

Code readability is directly related to the quality of its contextual documentation. I've been experimenting with documentation following MECE principles, which has greatly improved the maintainability of my projects.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection