So many, I like reading how other people write code. R - sf package is a clean example of functional OOP Python - pytudes (Peter Norvig’s notebooks) Haskell - Elm compiler. I could mostly understand what’s going on even though I barely know any Haskell. Ruby - Sequel is really nice. Rust - Ripgrep Pretty much any F# codebase is super readable too.
Do you have any F# favorites? People often mention jet.com repos, but I’m interested to hear about others.
Ask HN: What are some of the most elegant codebases in your favorite language?
51–60 of 186 posts
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#52[dead]
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#53Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#54Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#55Back when I was starting out, it was nice that Backbone had such clean, well-commented code: https://github.com/jashkenas/backbone/blob/master/backbone.j...
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#56Back when I was starting out, it was nice that Backbone had such clean, well-commented code: https://github.com/jashkenas/backbone/blob/master/backbone.j...
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#57Go and it’s standard library. ‘Elegant’ is pretty subjective, but it’s a treasure trove of learning how things work under the hood. I’ve learned loads about networking, compression, encryption and more by browsing through it, because the code is super easy to read and understand.
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#58Working with Perl, two things spoiled me for other languages: JSON and DBI/DBD. In Perl, everything serializes to JSON without fuss. It can be "lossy"; objects without an explicit JSON serialization method and coderefs can't be deserialized, but serializations at least have placeholders for them. Compare to Python's json module, which doesn't try very hard to serialize things and throws exceptions every time it runs…
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#59https://github.com/solvespace/solvespace/blob/master/src/srf...
There is a lot more in other files - triangulation, booleans, creation - but the core math functions are there in very readable form.
Re: Ask HN: What are some of the most elegant codebases in your favorite language?
#60Working with Perl, two things spoiled me for other languages: JSON and DBI/DBD. In Perl, everything serializes to JSON without fuss. It can be "lossy"; objects without an explicit JSON serialization method and coderefs can't be deserialized, but serializations at least have placeholders for them. Compare to Python's json module, which doesn't try very hard to serialize things and throws exceptions every time it runs…