MHN

Ask HN: What are some of the most elegant codebases in your favorite language?

223 points by debanjan16·1262 days ago·Show in HN

Your favorite language can be anything - Lisp, Python, C, Haskell, etc.

Which codebases are the most elegant ones written in your favorite language that new comers to the language can learn something from?

Add a comment on Hacker News →
1 of 177 comments
  1. 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.