News for hackers. Stuff that matters.
Re:Data structures and Algorithms in C/C++11 by ryanobjc on Wednesday December 03, 2014 @06:30PM (#8697033)
Is it considered idiomatic to mix in test and production code in the same file, and therefore the same binary?

Also, is it considered idiomatic to not leave any commentary breadcrumbs on what files and classes and structures are for? I get that lists.h probably contains lists, and I'm guessing linked lists from the code. The rest of it is guesswork.

Re:Data structures and Algorithms in C/C++11 by jonstewart on Wednesday December 03, 2014 @07:51PM (#8697289)
No. This code is fine--clean, journeyman code--but it's quite a bit below what you'd expect from the STL, Boost, or other premier libraries. Sometimes the implementations of such projects seem obfuscated, but that's often a legacy of trying to work with older, broken compilers and/or to protect against obscure corner cases.