Okay, just a hint: if you are writing C, C++ or any other compiled language you aren’t doing anyone a favor using one character variable names. It literally costs nothing to make things clear. One character variable names are terrible.

While I’m on it, gotos are similarly bad. If you feel you need to do either of these, DON’T.

A good friend of mine said, jokingly, “Good code is hard to write, it should be difficult to understand!”

@feloneouscat I have made my coworker rewrite code because the variable names weren't clear and I needed to make a change. Literally told him to fix it because he was blocking me lol. He shamefully agreed it needed to be done.

There are 4 single character variables names I agree with being allowed: i, j, k, _. Granted, if you reach k, you've got other problems.

Follow

@FreedomATX

I leaned the hard way: global replace a single character name. It’s far easier to do it right than shoot yourself in the foot. Even if it is “index1, index2”’you may want to change those to something more meaningful later on.

Sign in to participate in the conversation

CounterSocial is the first Social Network Platform to take a zero-tolerance stance to hostile nations, bot accounts and trolls who are weaponizing OUR social media platforms and freedoms to engage in influence operations against us. And we're here to counter it.