@aescling @vaporeon_ it was a pain in the ass to write and read but this is what industry standard c++ looks like
@aescling @vaporeon_ in C++ land you avoid this sort of thing with namespaces
In my work's C++ code everything, and I mean everything, was namespaced like nebula::ffph::doAlgo so that there were no namespace collisions
@vaporeon_ I am not a C expert by any means, but my exploration of C++ has taught me a few things. Header files in C++ have proven to be a headache in a lot of situations, and these are more or less fully inherited from C
Since you pull in everything present in a header file you pollute namespaces which can be a nightmare to manage in large projects
Plus header files induce some code repetition
For reasons I don't understand header files also make it difficult for C++ programs to compile quickly
@aescling its literally the first thing you hear from the original song: https://www.youtube.com/watch?v=K-g02aE1oh0
@vaporeon_ this doesn't count but still, lol https://www.youtube.com/watch?v=hPKIo1xx3MU
@lapis a mystery, you say... 🔍
the clodvestigator
i go by Clodsire, Clodboy and Bumby.
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"the thing you need to understand about @wallhackio is that he is utterly sick in the head. this is partially a compliment. but not entirely" ~aescling
30+
he/him