I just wrote some C code that used that convention. Functions have as naming convention: NAMESPACE_type_FunctionName. So, for example an "is empty" function on strings in a standard library would be "STD_bool STD_str_IsEmpty(STD_str)"
Can I interest you in a DatabaseTableBuilderFactory dataBaseTableBuilderFactory = new DatabaseTableBuilderFactory(DatabaseTableBuilderFactory.Mutable | DatabaseTableBuilderFactory.Dynamic);?
TBH, I don't hate it. And I mean, as long as the convention is consistent, I don't really care which one is used. UPPERCASE for "namespaces" and lowercase for types is nothing unusual in C. I guess PascalCase for functions is not the most common one, but languages like C# is it too (and it's often used in C++).
33
u/Host127001 Sep 07 '21
I just wrote some C code that used that convention. Functions have as naming convention: NAMESPACE_type_FunctionName. So, for example an "is empty" function on strings in a standard library would be "STD_bool STD_str_IsEmpty(STD_str)"
87
u/jmpavlec Sep 07 '21
Needs kebab-case
33
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 07 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
16
u/slipped_and_missed_x Sep 07 '21
Oh no is this Android
5
u/Monkeyget Sep 08 '21
The code is going through puberty.
5
u/kuaiyidian Sep 08 '21
mAp_Is_ReAdYtOgO
4
u/PM_ME_YOUR_SHITCOIN Sep 08 '21
If you rename that
Logclass, this can pass for minified code.4
u/Brain-InAJar Sep 08 '21
Why use a conversation for a log message?
2
u/StochasticTinkr Sep 08 '21
“MAP-is.Ready_ToGo”
2
u/official_gameup Sep 08 '21
Clearly they use snake case, but the object they are dealing with is a Constant, and someone made all the status codes CamelCase.