global variables: G_STRING_variablename G_ARRAYCHAR_variablename
local variables: L_STRING_variablename L_ARRAYINT_variablename
local pointer: L_P_INT_variablename
parameters: P_P_INT_variablename -> this one is a pointer P_INT_variablename
This way is much easier to know whatever i'm dealing with.
Function names:
always with capslock: DO_XXX_YYY()
Christopher Williams
the notion of evaluating style guides by anything external or "objective" is retarded. it's useful as a way of framing your code so that it's internally consistent. the only real evaluation you can apply to it is essentially whether it contains any logical conflicts, like two conflicting rules applying to something.
the style guide is as good as anything else, but if you don't like it then use another one. if none exists, then use it for lack of an alternative.
Jaxon Ross
You've obviously never had to work in the same project with a bunch of people.
The retarded shit I've seen justifies all the naming conventions you want.
Ayden Cooper
Your style is shit and verbose and makes Hungarian look readable
Kevin King
Are you autistic?
Chase Rivera
whats the best c++ book?
Nathaniel Torres
You could just use a proper IDE. That way you know what you're dealing with without making your code a mess.
Also DON't use globals, holy shit.
Kevin Brown
i can see it now for (std::vector::const_iterator L_STD__VECTOR__INT__CONST_ITERATOR_it = L_STD__VECTOR__INT.begin(); L_STD__VECTOR__INT__CONST_ITERATOR_it != L_STD__VECTOR__INT.end(); ++L_STD__VECTOR__INT__CONST_ITERATOR_it) { DO_THIS_WITH_INT(*L_STD__VECTOR__INT__CONST_ITERATOR_it); // etc }
Jose Stewart
whoops, forgot the variable name for the vector
Gavin Bailey
I avoid non-const global variables at all cost, name constants (whether global vars or object-like macros) WITH_NAMES_LIKE_THIS.
Regular variables, are namedLikeThis. asAreFunctionsAndMethods(). There's no special naming style for pointers as distinct from regular variables.
And classes have NamesLikeThis.
Josiah Gutierrez
Fucking kill yourself.
Jason Parker
>Function names: >always with capslock: DO_XXX_YYY() objectively retarded
Robert Jackson
>current year >not using Rust Enjoy your memory unsafety
Easton Sanchez
hey now, I am hungarian
Noah Green
not related, it's called hungarian notation
back in the days, BCPL required this kind of faggotry, blame it on Simony Karcsibácsi, nowadays, its fugly and useless(plus nowadays most IDEs will cry out loud when you try to mess up data types)
Parker Lewis
/thread
Josiah Lee
> Don't use globals Then what should i use, singletons? Lmao.
Brayden Sanchez
Quads checked...
I recall the shit storm about Hungarian notation from C++ MFC faggots. Happier times...
If you use C++ btw... fucking kill yourself.
Brayden Foster
most of c++ style guides have the same problems: 1) mix subjective and objective stuff 2) don't offer any working tooling to enforce stated rules 3) don't deal with pluralizm of the existing ecosystem
Grayson Murphy
wew this should be a clear bait. AUTISM STYLE.
Luis Sanders
M E M E L A N G U A G E S
John Garcia
camelCase > shitty_unatural_to_type_underscrore
Jace Gonzalez
Looks like they are using notepad to code. Their naming scheme is a relic from decades ago.
Oliver Ross
No you pass the value along in the constructor where it is needed.