1. Лучший говнокод

    В номинации:
    За время:
  2. Куча / Говнокод #5313

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    .стиль3 {font-family: Arial; font-size: 22px; font-style: italic;}
    .стиль4 {font-family: Arial; font-size: 18px; font-style: italic; color: rgb(102,0,0);}
    .стиль5 {font-family: Arial; font-size: 18px; font-weight: bold; color: rgb(0,0,204);}
    .стиль6 {font-family: Arial; font-size: 20px; font-weight: bold; color: rgb(32,0,240);}
    .стиль7 {font-family: Arial; font-size: 20px; font-weight: bold; color: rgb(48,0,240);}
    .стиль8 {font-family: Arial; font-size: 20px; font-weight: bold; color: rgb(64,0,240);}
    .стиль9 {font-family: Arial; font-size: 24px; font-weight: bold; color: rgb(255,0,0);}
    .стиль108 {font-family: Arial, sans-serif; font-size: 8px; font-weight: bold; color: rgb(64,0,240);}
    .стиль111 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;}
    .стиль10 {font-family: Arial, sans-serif; font-size: 10px; font-weight: bold; color: rgb(64,0,240);}
    .стиль12 {font-family: Arial; font-size: 12px; font-weight: bold; color: rgb(64,0,240);}
    .стиль14 {font-family: Arial; font-size: 14px; font-weight: bold; color: rgb(255,0,0);}
    .стиль15 {font-family: Arial; font-size: 12px; color: rgb(0,0,255);}
    .стиль16 {font-family: Arial; font-size: 16px; font-style: italic; color: rgb(255,0,0);}
    .стиль36 {font-size: 36px; color: rgb(102,0,204);}
    .стиль18 {font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: rgb(102,0,0);}

    Цссник сайта одного препода. Я чуть под стол не упал когда увидел:)
    Даешь браузерам цсс кирилицей!

    moonie, 18 Января 2011

    Комментарии (41)
  3. C# / Говнокод #5268

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    private static void GetUserData(User user)
        {
            if (user == null)
                return;
    
            var firm = user.Firm;
    
            if (firm == null)
                return;
        }

    Бессмысленно и беспощадно.

    Gizz, 13 Января 2011

    Комментарии (13)
  4. Си / Говнокод #5176

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    72. 72
    73. 73
    74. 74
    75. 75
    76. 76
    void epilog()
    {  
    	fprintf(fvih,"\tINCLUDE\tstd.asm\n");
    	fprintf(fvih,"_KOM\tENDS\n");
    	fprintf(fvih,"_STEK\tSEGMENT USE16\tSTACK\n");
    	fprintf(fvih,"\tDW\t100 DUP (?)\n");
    	fprintf(fvih,"_DNOST\tDW\t?\n");
    	fprintf(fvih,"_STEK\tENDS\n");
    	if (kolglb > 0) {  
    		fprintf(fvih,"_DAN\tSEGMENT USE16\n");
    		for (i = 1; i <= kolglb; i++)
    			if (tabim[i].vidob == 1)      /* пеpеменная */
    				if (tabim[i].typ == int_t)
    					fprintf(fvih,"%s\tDW\t?\n",tabim[i].imja);
    				else
    					fprintf(fvih,"%s\tDD\t?\n",tabim[i].imja);
    		fprintf(fvih,"_DAN\tENDS\n");
    	}
    	if (est6_main)
    		fprintf(fvih,"\tEND\t_main\n");
    	else fprintf(fvih,"\tEND\n");
    	fprintf(fvih,";Компилятоp С0 от 9/10/92:\n;колич. ошибок %d\n",kolosh);	
    	printf("Компилятоp С0 от 9/10/92:\nколич. ошибок %d\n",kolosh);
    }
    
         /**********************************************/
         /*             Основная пpогpамма             */
         /**********************************************/
    int main(int agrc, char *argv[])
    {  
    	int i;
    	for (i=0; i<=255; i++) leksim[i]=osh;
    	leksim['+']=plus;  leksim['-']=minus;  leksim['*']=umn;
    	leksim['/']=del;   leksim['%']=ost;    leksim['=']=prisv;
    	leksim['<']=men;   leksim['>']=bol;    leksim['(']=lskob;
    	leksim[')']=pskob; leksim['{']=flskob; leksim['}']=fpskob;
    	leksim[',']=zpt;   leksim[';']=tchzpt; 
    
        /* множество начальных лексем выpажения */
    	nvir = st2[ident] | st2[chislo] | st2[minus] | st2[lskob];
    
    	/* мн-во нач-х лексем оп-pа */
    	noper = st2[flskob] | st2[ifsl] | st2[whilesl] | st2[retsl] | st2[tchzpt] | st2[dosl] | nvir; 
    	vhstr[0]=' '; 
    	vhstr[1]='\0'; 
    	usim = vhstr;kolglb =kolim =ef =	tipop =est6_main =kolosh =kmet =0;
    	is_leave_old = false;
    	fvh=fopen("C://p.c0","r");
    	//fvh=fopen(argv[1],"r");            /* откpыть входной файл  */
    	fvih=fopen("C://p.asm","w"); 
    	//fvih=fopen(argv[2],"w");          /* откpыть выходной файл */
    	if ((fvh == NULL) || (fvih == NULL))
    		oshibka(8);                      /*  файлы не откpылись */
    	else {
    		prolog();
    		while (!ef) {
    			chleks();
    			if (leksema == intsl) {              /* слово int        */
    				opisper(0); 
    				kolglb=kolim; 
    			}/*описание глоб-х пер-х*/
    			else if (leksema == longsl) {              /* слово int        */
    				opisper_long(0); 
    				kolglb=kolim; 
    			}/*описание глоб-х пер-х*/
    			else if (leksema == ident)      /* имя                 */
    				oprfun();                  /* опpеделение функции */
    			else if (!ef)    /* тpебуется опис-е пеp-х или ф-ции */
    				test(st2[intsl] | st2[ident],st2[pskob] | st2[tchzpt],3);
    		}
    		epilog();
    		fclose(fvh);
    	    fclose(fvih);
    	}
    	return 0;
    }

    qbasic, 07 Января 2011

    Комментарии (1)
  5. Си / Говнокод #5057

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    #include <stdio.h>
    #include <unistd.h>
    #include <stdlib.h>
    #include <time.h>
    #include <sys/types.h>
    
    int main(int argc, char ** argv)
    {
    //...
    time_t time0=time(NULL);
    //...
    if ((f=fopen(argv[1],"r"))==NULL)
    {
    	//...
    }
    while ((fscanf(f,"%i %s",&tim[i],buffer[i]))!=EOF)
    {
    	i++;
    	if (i>=n)
    	{
    		n=i+10;
    		tim=(int*)realloc(tim,n*sizeof(int));
    		buffer=(char**)realloc(buffer,n*sizeof(char*));
    		for (k=k; k<n; k++)
    		{
    			buffer[k]=(char*)realloc(buffer[k],256*sizeof(char));
    		}
    	}
    }
    if (fclose(f)==-1)
    {
    	//...
    }
    //------------finished reading input file-------------------
    //------------sorting (bubble =) )--------------------------
    while (flag)
    	{
    		flag=0;
    		for (j=0; j<=i-2; j++)
    		{
    			if (tim[j]>tim[j+1])
    			{
    				tmpi=tim[j];
    				tim[j]=tim[j+1];
    				tim[j+1]=tmpi;
    				tmpc=buffer[j];
    				buffer[j]=buffer[j+1];
    				buffer[j+1]=tmpc;
    				flag=1;
    			}
    		}
    	}
    //-----------executing------------------------------
    k=0;
    while(k<=i-1)
    {
    	if (tim[k]==(int)(time(NULL)-time0))
    	{
            if(!(pid=fork()))
            {
            	execv(buffer[k],NULL);
            }
            else
            {
            	k++;
            }
    	}
    }
    //...
    return 0;
    }

    Читает из файла таймер до запуска и имя программы. Я плакалъ...

    krems, 25 Декабря 2010

    Комментарии (7)
  6. Си / Говнокод #4869

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    ............................
    int mas1[5]={1,6,3,4,9};
    int mas2[5]={9,6,3,4,1};
    int mas3[5];
    mas mas3[1]=sqr (mas1[1]*mas2[1]);  
    mas mas3[2]=sqr (mas1[2]*mas2[2]);
    mas mas3[3]=sqr (mas1[3]*mas2[3]);
    mas mas3[4]=sqr (mas1[4]*mas2[4]);
    mas mas3[5]=sqr (mas1[5]*mas2[5]);
    ............................

    Данный пример народного творчества попался мне в работе одного стюдента ) синтаксис сохранен в оригинале там точно написано sqr :). А пример должен был вычислять среднегеометрическое и писать в третий массив.

    USERNAME, 08 Декабря 2010

    Комментарии (25)
  7. Куча / Говнокод #4247

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    <p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>
    	<p class="MsoNormal" align="center" style="text-align: center; margin-left: 10px; margin-right: 5px; margin-top: 0; margin-bottom: 0">&nbsp;</p>

    Гиппер текст! :)
    http://www.uae-embassy.ru/rco01.htm.
    посольство то же...

    Alfred, 14 Сентября 2010

    Комментарии (18)
  8. Куча / Говнокод #4246

    +134

    1. 1
    http://www.uae-embassy.ru/index2.htm

    Сайт !!!!! ПОСОЛЬСТВА ОАЭ !!!!! в Москве.
    зацените внешний вид. внутри вобщем-то не лучше:)

    Alfred, 14 Сентября 2010

    Комментарии (14)
  9. Куча / Говнокод #4171

    +134

    1. 1
    http://youex.ru/skins/default/pages/search/

    В продолжение =)

    hybroid, 05 Сентября 2010

    Комментарии (10)
  10. C# / Говнокод #4027

    +134

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    TestIssue = new Issue(Id, ProjectId, ProjectName, Code, Title,  
        Description, CategoryId, CategoryName, PriorityId,
        PriorityName,PriorityImageUrl, StatusId, StatusName, 
        StatusImageUrl, IssueTypeId, IssueTypeName,IssueTypeImageUrl,
        ResolutionId, ResolutionName,ResolutionImageUrl, 
        AssignedDisplayName, AssignedUsername, AssignedUserId,
        CreatorDisplayName, CreatorUsername, CreatorUserId, 
        OwnerDisplayName, OwnerUsername, OwnerUserId, DueDate, 
        MilestoneId, MilestoneName, MilestoneImageUrl, 
        MilestoneDueDate, AffectedMilestoneId, AffectedMilestoneName, 
        AffectedMilestoneImageUrl, Visibility, TimeLogged, Estimation, 
        DateCreated, LastUpdate, LastUpdateUsername, 
        LastUpdateDisplayName, Progress, Disabled, Votes);

    В конструкторе класса Issue 47 аргументов (http://codehelper.ru/questions/156).

    admax, 18 Августа 2010

    Комментарии (18)
  11. Куча / Говнокод #3885

    +134

    1. 1
    2. 2
    свершилось
    http://lurkmore.ru/Говнокод.ру

    вместо того, чтоб трепатся на говнокоде запилил небольшую заготовку на лурке.
    если вам впадлу редактировать лурку, не хотите палить ип, регать акк - пишите в тему эпик-треды, мементичных личностей итд.
    я тут не так давно - интересен внятный рассказ откуда пошли мемы Поне и Где здеся С++?
    а я внесу ченджи.

    D3NC0D3R, 06 Августа 2010

    Комментарии (15)