r/programming • u/chrisdew • Sep 26 '09
Ask Proggit: What are the most elegantly coded C/C++ open source projects?
I've recently been reading (parts of) the source for sqlite3 and found it to be a revelation in good programming practise.
What other C/C++ open source projects (of any size) would you recommend that I look at, in order to get an idea of current good practise?
141
Upvotes
View all comments
Show parent comment
3
u/ooffoo Sep 27 '09 edited Sep 27 '09
Given the failure of BeOS I'm not sure that's a great reference for C++ being a good systems language.
C++ operating system API's cause issues when new versions of the OS come out. Adding virtual methods to OS classes will break application's that used the original class version. So new OS updates will require application recompiles to work.
BeOS worked around this IIRC by having a bunch of dummy 'reserved' virtual functions in each OS class that did nothing in case they had to add features later. Not very elegant.