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

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

    0

    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
    /* Стили для вспалывающих окон */
    	#back_call,#back_call1,#letter_us,#letter_us_2{display:none;position:fixed;top:0;bottom:0;left:0;right:0;width:100%;height:100%;background:url('../images/pop_up_bg.jpg') center center no-repeat;background-size:cover;overflow:auto;z-index:11500}
    		#bcc_table,#bcc_table1, #bcc_table-cell,#bcc_table-cell, #lu_table, #lu_table-cell,#lu_table_2, #lu_table-cell_2{width:100%;min-height:100%}
    		#bcc_table,#bcc_table1,#lu_table,#lu_table_2{display:table}
    			#bcc_table-cell,#bcc_table-cell1,#lu_table-cell,#lu_table-cell_2{display:table-cell;vertical-align:middle;text-align:center}
    				#bcc_registration-form,#bcc_registration-form1,#lu_registration-form,#lu_registration-form_2{display:inline-block;width:1000px;min-height:637px;padding:30px}
    				#bcc_registration-form>div,#bcc_registration-form1>div,#lu_registration-form>div,#lu_registration-form_2>div{position:relative}
    .bcc_wrapper h1,.lu_wrapper h1,.lu_wrapper h1{color:#84c8eb;margin-bottom:45px;font-family:'Yeseva One';text-transform:uppercase;font-size:31px;line-height:32px;letter-spacing:2px;margin-top:9px;text-align:center;margin-right:93px}
    				.bcc_wrapper .bc_close_link,.lu_wrapper .lu_close_link,.lu_wrapper .lu_close_link{display:inline-block;position:absolute;top:5px;right:0;width:40px;height:40px;text-indent:-9999px;background:url('../images/close_link_bg.jpg') center center no-repeat}
    					.bcc_wrapper .bc_close_link:hover,.lu_wrapper .lu_close_link:hover,.lu_wrapper .lu_close_link:hover{box-shadow:0 0 50px rgba(132, 200, 235,0.3), 0 0 50px rgba(132, 200, 235,0.3), 0 0 50px rgba(132, 200, 235,0.3)}
    					.div_bc_form_wrapper,.div_lu_form_wrapper,.div_lu_form_wrapper{margin-right:152px}
    						#mcf7_inp_wrapp_cb .wpcf7-response-output,#mcf7_inp_wrapp_lu .wpcf7-response-output,#mcf7_inp_wrapp_lu_2 .wpcf7-response-output{color:#fff;text-align:center;font-family:'gotham_light';font-size:15px;line-height:31px;word-spacing:1px;margin-bottom:15px}
    							.bcc_wrapper #mcf7_inp_wrapp_cb p,.lu_wrapper #mcf7_inp_wrapp_lu p,.lu_wrapper #mcf7_inp_wrapp_lu_2 p{height:51px;margin-bottom:55px;text-align:justify}
    							.bcc_wrapper #mcf7_inp_wrapp_cb p{margin:0}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span.lu_wrapper #mcf7_inp_wrapp_lu p span,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span{display:inline-block}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(1),.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(1),.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(1){float:left;margin-right:15px}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(2),.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(2),.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(2){float:left}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(3),.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(3),.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(3){float:right}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span input,.lu_wrapper #mcf7_inp_wrapp_lu p span input,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span input{display:inline-block;box-sizing:border-box;border:1px solid #fff;background-color:transparent;height:50px;border-radius:5px;font-size:18px;line-height:19px;letter-spacing:1px;color:#fff;font-family:'gotham_light';padding:0 19px}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span input+span,#bcc-form .screen-reader-response,.lu_wrapper #mcf7_inp_wrapp_lu p span input+span,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span input+span,#lu-form .screen-reader-response,#letter_us_2 .screen-reader-response{display:none}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(1) input,.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(2) input,.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(1) input,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(1) input,.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(2) input,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(2) input{width:266px}
    								.bcc_wrapper #mcf7_inp_wrapp_cb p span:nth-child(3) input,.lu_wrapper #mcf7_inp_wrapp_lu p span:nth-child(3) input,.lu_wrapper #mcf7_inp_wrapp_lu_2 p span:nth-child(3) input{width:288px}
    								.bcc_wrapper #mcf7_sbm_wrapp,.lu_wrapper #mcf7_sbm_wrapp_lu,.lu_wrapper #mcf7_sbm_wrapp_lu_2{text-align:center}
    									.bcc_wrapper #mcf7_sbm_wrapp img{float:right}
    									.bcc_wrapper #mcf7_sbm_wrapp{margin-top: 83px;}
    									.lu_wrapper #mcf7_sbm_wrapp_lu img,.lu_wrapper #mcf7_sbm_wrapp_lu_2 img{float:right;margin-top:107px}
    									.bcc_wrapper #mcf7_sbm_wrapp input,.lu_wrapper #mcf7_sbm_wrapp_lu input,.lu_wrapper #mcf7_sbm_wrapp_lu_2 input{display:inline-block;background-color:transparent;border:1px solid #fff;width:370px;height:80px;cursor:pointer;text-align:center;margin-top:107px;text-transform:uppercase;font-size:19px;line-height:19px;letter-spacing:5px;color:#fff;font-family:'gotham_light';word-spacing:2px}
    									.bcc_wrapper #mcf7_sbm_wrapp input{margin:0}
    									.bcc_wrapper #mcf7_sbm_wrapp input:hover,.lu_wrapper #mcf7_sbm_wrapp_lu input:hover,.lu_wrapper #mcf7_sbm_wrapp_lu_2 input:hover{text-shadow:0 0 15px rgba(132, 200, 235, 0.7), 0 0 15px rgba(132, 200, 235, 0.7), 0 0 15px rgba(132, 200, 235, 0.7)}
    								#required_fields_1,#required_fields_3,#required_fields_4,#required_fields_5,#required_fields_6,#required_fields_7{color:#fff;font-family:gotham_light;font-size:15px;line-height:31px;word-spacing:1px;text-align:center}
    						#lu_registration-form #mcf7_ta_wrapp_lu span,#lu_registration-form_2 #mcf7_ta_wrapp_lu_2 span{display:block;height:256px;box-sizing:border-box;padding:16px 17px;border:1px solid #fff;border-radius:5px;}
    						#lu_registration-form #mcf7_ta_wrapp_lu span textarea,#lu_registration-form_2 #mcf7_ta_wrapp_lu_2 span textarea{background-color:transparent;width:100%;height:100%;font-size:18px;line-height:19px;letter-spacing:1px;color:#fff;font-family:'gotham_light'}

    Выполняю заказы. На Битрих.

    nazivin, 02 Июня 2017

    Комментарии (6)
  3. JavaScript / Говнокод #23090

    −1

    1. 1
    2. 2
    3. 3
    if (typeof $el.html() !== "undefined") {
        //...
    }

    Проверка на существование элемента...

    vasya, 31 Мая 2017

    Комментарии (6)
  4. C# / Говнокод #23076

    0

    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
    GUI.backgroundColor = Color.magenta;
    
                prop = parametersObject.GetIterator();
                var skip = true;
    
                while (prop.NextVisible(true))
                {
                    //Script object Field
                    if (skip)
                    {
                        skip = false;
                        continue;
                    }
    
                    if (prop.depth == 0)
                    {
                        position.height = propertyHeight;
                        EditorGUI.PropertyField(position, prop);
                        position.y += propertyWithSpaceHeight;
                    }
                }
    
                if (EditorGUI.EndChangeCheck())
                {
                    if (parametersObject != null && parametersObject.targetObject != null)
                    {
                        parametersObject.ApplyModifiedProperties();
                        EditorUtility.SetDirty(parametersObject.targetObject);
                    }
                }
    
                parametersProperty.stringValue = JsonUtility.ToJson(parametersObject.targetObject);
    
                GUI.backgroundColor = Color.white;

    //Код исполняется 60 раз в секунду ((((

    huran438, 28 Мая 2017

    Комментарии (6)
  5. C++ / Говнокод #20957

    +918

    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
    #include <iostream>
    
    template<typename T>
    struct A {
      typedef int R();
    
      template<typename U>
      static U *f(int) { 
        return 0; 
      }
    
      static int f() { 
        return 0;
      }
    };
    
    template<typename T>
    bool g() { A<T> a; return !(typename A<T>::R*)a.f<int()>(0); }
    template<typename T>
    bool h() { A<T> a; return !(         A<T>::R*)a.f<int()>(0); }
    
    int main() {
      std::cout << g<void>() << f<void>() << std::endl;
    }

    Как можно было придумать такой синтаксис :(

    Bobik, 25 Августа 2016

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

    −320

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    string Char2Hex(char ch)
    {
    	StringWriter w = new StringWriter();
    	w.Write("\\u{0:x4}", (int)ch);
    	return w.ToString();
    }

    d_fomenok, 19 Августа 2016

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

    −682

    1. 1
    2. 2
    3. 3
    CREATE FUNCTION this_function_check_first_payment_under_agreement_without_previous_periods
    (
    ....

    Ну вот сразу всё понятно)

    Onimys, 17 Августа 2016

    Комментарии (6)
  8. C# / Говнокод #20540

    +9

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    var actualCharCount = DisplayCharactersCount;
    while (DisplayCharactersCount != actualCharCount)
      {
        Thread.Sleep(500);
      }

    и такое бывает

    ewenso, 12 Августа 2016

    Комментарии (6)
  9. 1C / Говнокод #20460

    −95

    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
    Функция ПроверитьРодителя(СчетРодитель,Счет)
    		
    	Запрос = Новый Запрос;
    	Запрос.Текст = 
    		"ВЫБРАТЬ
    		|	&Счет В ИЕРАРХИИ (&СчетРодитель) КАК ПроверкаСч";
    	
    	Запрос.УстановитьПараметр("Счет", Счет);
    	Запрос.УстановитьПараметр("СчетРодитель", СчетРодитель);
    	
    	РезультатЗапроса = Запрос.Выполнить();
    	
    	ВыборкаДетальныеЗаписи = РезультатЗапроса.Выбрать();
    	
    	ВыборкаДетальныеЗаписи.Следующий();
    	Возврат ВыборкаДетальныеЗаписи.ПроверкаСч;	
    КонецФункции

    blMbl, 03 Августа 2016

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

    +8

    1. 1
    Может кто знает, как работать с методом Table<TEntity>.Attach? Пробовал использовать его по разному, но результат получается один и тот же - Exception.

    Serega9I, 28 Июля 2016

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

    +4

    1. 1
    https://www.reddit.com/r/ProgrammerHumor/comments/4to9vx/so_im_working_on_a_new_language/

    "So I'm working on a new language…"

    n1919, 20 Июля 2016

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