Komentarji v programski kodi (Linux, Win2K …)

KategorijaZabava
NapisalMAtej

Še malo programerskega humorja. Vsak programer pri popravljanju programov, ki so jih napisali drugi včasih naleti na kakšne neumnosti. Poglejte si odgovore na takšno kodo.

Linux jedro:

arch/sparc/kernel/ptrace.c:/* F**k me gently with a chainsaw… */

Documentation/DocBook/kernel-locking.tmpl: If you don’t see why, please stay the f*** away from my code.

drivers/usb/printer.c:static char *usblp_messages[] = { “ok”, “out of paper”, “off-line”, “on fire” };

Windows 2000:

private\shell\shell32\util.cpp:
// the fucking alpha cpp compiler seems to fuck up the goddam type “LPITEMIDLIST”, so to work
// around the fucking peice of shit compiler we pass the last param as an void *instead of a LPITEMIDLIST

private\windows\media\avi\verinfo.16\verinfo.h:

* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !!!!!!!IF YOU CHANGE TABS TO SPACES, YOU WILL BE KILLED!!!!!!!
* !!!!!!!!!!!!!!DOING SO FUCKS THE BUILD PROCESS!!!!!!!!!!!!!!!!
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

private\inet\wininet\urlcache\cachecfg.cxx:
// Dumb hack for back compat. *sigh*

private\genx\shell\inc\prsht.w:
// we are such morons. Wiz97 underwent a redesign between IE4 and IE5

private\shell\ext\ftp\ftpdrop.cpp:
We have to do this only because Exchange is a moron.

private\ispu\pkitrust\trustui\acuictl.cpp:
// HACK ALERT, believe it or not there is no way to get the height of the current
// HACK ON TOP OF HACK ALERT,

private\shell\ext\tweakui\genthunk.c:
* CallProc32W is insane. It’s a variadic function that uses
* the pascal calling convention. (It probably makes more sense
* when you’re stoned.)

Ostalo:

# This job would be great if it wasn’t for the fucking customers.

/* XXX toshok why oh *why* god WHY did they do this? no fuckingsense */

/* Holy shit, we just updated more than one row! What do we do now? */

/* 2,191 lines of complete and utter shit coming up… */

# code below replaces code above – any problems?
# yeah, it doesn’t fucking work.

viri:
kuro5hin.org

codeulate.com

blog.segfault.ro

En komentar na “Komentarji v programski kodi (Linux, Win2K …)”

  1. m2-j.info » Bookmarks 2007-01-20 pravi:

    [...] Comments in source codes, by Zakladi Interneta. I had a good laugh reading this one. [...]

Odgovori