Hello All,
So I got into contact with the author of an open-source meshing project and his results look fantastic. However, looking at the code... I'm a bit mortified.
For one, you know what settles the debate between using CamelCase and underscores? Using neither! (The real answer is, for the love of God use either one, please!)
Instead of such awesome things as push_back, I see pushback everywhere! And not only that, the style isn't even consistent in the project. Some functions are_written_like_this but not all. NotOneSingleUseOfCamelCase, ever. itiseitherthisornothingatall.
There is also some code that uses a 90's implementation of robust arithmetic(Fast Robust Predicates for Computational Geometry) but I googled around and heard that macros are evil. And I can see. The code is incredibly hard to follow. I'm reading the paper and the paper seems fine but macros seem God awful. Like, I'm so confused about his use of bvirt. Like, how can you just declare that in a macro? Is it because bvirt is defined in each function that uses it?
I'm just really confused about the robust code and I have to ask, is this an example of good coding style? It seems pretty terrible to me.
So I guess my question is, if I'm serious about contributing, do I just throw in my own style? Or should I just examine his methodologies and re-implement my own version that's readable?