3 ms·
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 an
by ryanobjc 12y ago
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.
- jonstewart 12y agoNo. 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.