for everyone reading this
please dont call your variable "a"
Follow

@EnjuAihara "a" is a completely legitimate variable names. Usually when I do multiple nested for loops I use the first letter[s] for the iterator variable. Also if it's short lived and generic it works.

· · Web · 2 · 0 · 1
@applejack but not a with type KeyValueOfFieldQueryConditionValuex_n37_N7d for a big function

@EnjuAihara No, it depends. It actually makes sense you'd want something short if you call it often, and if it's scoped to that function and it's purpose is clear, than that makes a lot of sense.

A real world example would be something like lua. In the C API almost everyone always calls the lua_State* just "L" and it's scoped to entire functions. (pic of awesomewm spawn.c)

@applejack refactoring code rn and its horrible
and stuff like

if (boolean) {
x = 1;
} else {
x = 2;
}
x = 3;

or variables that arent used
functions with return value that isnt set

in delphi which is pascal but with extra stuff

and implicit conversion from ansistring to string warning everywhere

@EnjuAihara Freemium meme garbage. Disgusting. No wonder the code was written by someone with no brain.

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.