Lemmy is whatever we make it, except for the communism posts that love communism until they realize workers need representation. I half believe those are Chinese bots or high school kids who are stupid enough to believe the Chinese bots.
Lemmy is whatever we make it, except for the communism posts that love communism until they realize workers need representation. I half believe those are Chinese bots or high school kids who are stupid enough to believe the Chinese bots.
Does anyone have any good advice on variable naming? Here’s some of my rules I try to live by:
utils_FooBar
is
not
in bool names.
_
g_VARIABLENAME
calc_ImportantValueThatWillDecideTheUsersView
is better than calc_SumYears
if the variable is more important than the others.Edit: I realize I was speaking about function-naming with the prefix stuff.
For variables, I still use prefixes, but for variable type. Even if you define the variables as types, it’s still incredibly useful. For instance,
a string is s_MyName
,
enumerable is e_MyType
,
A number is int or double or whatever i_MyAge
or d_MyWeight
This might be obvious for custom objects, but I’d still do it like this p_Person
or per_Person
.
Seriously it does make a huge difference
Right. Magically, everyone on the Internet has become infatuated with communism out of thin air over the last few years. Must just be my paranoia to surggest influence from a hostile government.