Deplorable software practices

This page documents cases where I looked at a source code of some software and totally hated it. I took cases which highlight certain software practices (that may be even common) that are "The Wrong Thing(tm)".
I don't mind people who don't take the fastest/most readable/most beautiful approach - you don't have to be a master of programming to write software. But here you'll find code that is so wrong it screams at you to be fixed and you want to take the person who wrote it (I shan't dare name that person a 'programmer'), and bash him/her on the hed several times to get some clue into them.

Usually its about software managment - people just don't get how much extra work is done just because the code is a mess and no developer working on the project can pronounce "software mangment". until its too late, and you're knee-deep in twisting little source files - and maybe not even then. While there is something to be said about experience, I know personally some people who don't get it after doing more then several years of programming.
I came to accept the fact that there are people in the world that would never know how to code. I'm not talking about writing software - I'm talking about writing good software.

Email me if you have comments.

Complete lack of proper logging

Treating include files as subroutines

Use of loops for no reason (except that the place you copied the code from uses them)

Code duplication as an API