@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... 🔍
this album is really good if you, like, have undiagnosed adhd https://www.youtube.com/watch?v=CdzRR0Zenpc
@Lucy drinking oolong from the same tea leaves five times my beloved
re: no image descriptions
@aescling @vaporeon_ sure Brandon Eich, why not do that
re: incorrect
@sudo_EatPant the reason we say nullish is because the language has two "null-like" values (undefined and null) where most languages only have one. So we say "nullish" to refer to either of these two values
@vaporeon_ might not be an issue if you have runtime type checking before the query, or if your JavaScript is compiled/transpiled from TypeScript, or if you have extensive confidence in your software testing
@vaporeon_ there are non-nullish values that are coerced to false. or x could be false itself. That means the following values would also be treated as nullish:
false""0-00nNaN
@aescling at work we had that but for a function called "exists"
@aescling is that a function you define elsewhere in your program?
@vaporeon_ oops. i made a new poll
@coriander still mad about this.
the clodvestigator
i answer to Caleb, Clodsire, Clodboy, Clod, and Bumby. very leftist.
videogame enjoyer. mathematics hobbyist and recovering physicist. recovering 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
30+
he/him
sgraMrt