News for hackers. Stuff that matters.
Re:Ask HN: Best codebases to study to learn software design? by shahzaibmushtaq on Sunday August 24, 2025 @02:30AM (#45001870)
My suggestion is to search for open-source codebases in your favorite languages, study them, and start practicing them.
Re:Ask HN: Best codebases to study to learn software design? by pixelworm on Sunday August 24, 2025 @02:58AM (#45001985)
I'm definitely going to do that. I asked because I wanted to start off with some that I'd knew would be well designed. However, it would probably be more interesting to see a wide variety of quality than just the good ones.

Or maybe open source projects are all usually well designed. I haven't looked at many in depth. The only one I've really looked into was Clang to try to figure out why clang format ignored my style rules when styling files of certain names. (Turns out there is a list of file names that automatically are considered Objective-C rather than C++)

Re:Ask HN: Best codebases to study to learn software design? by shahzaibmushtaq on Sunday August 24, 2025 @09:29AM (#45004114)
You understood what I was trying to convey.

Yes, all open-source projects are well designed with documentation and to-dos, otherwise open-source contribution becomes difficult.

Re:Ask HN: Best codebases to study to learn software design? by zvr on Sunday August 24, 2025 @02:06PM (#45006311)
One of the best is actually the implementation of the Tcl language. It's highly readable C code, very well structured (it was initially by Ousterhout, after all).
Re:Ask HN: Best codebases to study to learn software design? by musicale on Tuesday August 26, 2025 @03:51AM (#45023523)
I also found the Tcl implementation to be easy to read and understand.