As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
If this question can be reworded to fit the rules in the help center, please edit the question.

I can recommend Simon Tatham's puzzle collection. It's a series of puzzle games (minesweeper, sudoku, fifteen) available for Windows, OS X and Linux (and as java applets). The architecture is quite simple: there's a front-end interface with three implementations (one per platform), a back-end interface with one implementation per game (I've given three examples) and a mid-end that makes them talk together, do serialization and other neat stuff.

Basically, it's good OOP. Written in C. It's easy to contribute to (I implemented the Filling and Range games) since it's well documented, and it's easy to read.

Most comments could have been avoided. "code being the documentation" is not about littering the code with comments, really. Martin fowler enlightened me when I read that comments are code smells.
–
rpattabiMay 21 '10 at 22:17

2

I like most of those comments. They keep up with my policy of commenting not to state WHAT am I doing but WHY.
–
Sebastián GrignoliMay 27 '11 at 4:50

1

@sebstian exactly, without the comments you would have no idea why window = this is being used. @ragu.pattabi are you referring to this: martinfowler.com/bliki/CodeAsDocumentation.html ? He doesn't mention anything about comments, just that clear code is self-documenting.
–
Chris SMay 27 '11 at 8:41

@Avinash: If you want to learn more about programming in general, I would recommend both Code Reading and Code Quality by Spinellis. They have code samples from various projects, all FOSS, I believe, so you can not only read about them, but go and get the version discussed in the book and the latest version to read more code from them and learn.

I thoroughly recommend Code Complete 2nd Edition (ISBN: 0735619670) written by Steve McConnell. For the most part, it uses C++ as its lingua franca, however it has occasional mentions of Visual Basic code. In fact, this book was actually used throughout my college's computer science department for advocating good coding practices. And, to be frank, after reading this book, my coding skills and productivity improved by leaps and bounds.

I think the question specifically asks about open source projects. I don't think mention about a book qualifies as an answer.
–
rpattabiMay 21 '10 at 22:11

1

"We learn programming by writing programs and learning from other programs." While I did not directly answer the question by responding with a specific example of an OSS project, it does supplement the above statement. If it assists Avinash (or anyone else for that matter) in their pursuit for coding glory, then yes, this answer is relevant and hence, it qualifies as an answer...
–
MarlonMay 26 '10 at 22:38