pouët.net

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; }
added on the 2024-12-06 17:13:47 by dex46... dex46...
so we opening that thread with dat contribution history


...

bro is in it to deliver some hate, but never proves any skill himself
added on the 2024-12-06 17:45:18 by NR4 NR4
This topic has an educational value. If you don't have anything to show, you can ignore it.
added on the 2024-12-06 18:07:05 by dex46... dex46...
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.
added on the 2024-12-06 18:09:47 by darya darya
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.
added on the 2024-12-06 19:24:33 by dex46... dex46...

login