Dumb piece of code thread
category: residue [glöplog]
Let's share some of the dumbest code you've ever seen. This one is from a commercial game, by the way.
Code:
bool CheckBit(uint *bits, int bit_num)
{
uint bit = 1;
int i = 0;
if (0 < bit_num)
{
do
{
i++;
bit <<= 1;
} while (i < bit_num);
}
return (*bits & bit) != 0;
}
so we opening that thread with dat contribution history
...
bro is in it to deliver some hate, but never proves any skill himself
...
bro is in it to deliver some hate, but never proves any skill himself
This topic has an educational value. If you don't have anything to show, you can ignore it.
No, this is trashy and serves nobody, while also disencouraging people from learning how to code themselves and put their work online.
Someone put in the effort to make a game, while you put in life energy to make this thread. Maybe stop your constant bashing and deliver quality work so we can see how 1337 you are and learn from it.
Someone put in the effort to make a game, while you put in life energy to make this thread. Maybe stop your constant bashing and deliver quality work so we can see how 1337 you are and learn from it.
I see too much dumb code on a regular basis, in games, not in games, it doesn't mater, and when people don't care about it and put it in a product that costs money, it is much more disrespectful to the end user than shaming how bad it is. And if you won't point at mistakes, people will never stop making them, but if you care too much about someone's fragile ego than being honest, then you will end up living in a very ugly world.