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

    В номинации:
    За время:
  2. Java / Говнокод #1785

    +71.3

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    /**
         * Возбуждает IllegalArgumentException если аргумент null.
         * Формирует сообщение об ошибке с именем условия.
         *
         * @param argument     проверяемый аргумент
         * @param argumentName имя аргумента
         */
        public static void ensureNotNull(Object argument, String argumentName) {
            if (argument == null) {
                throw new IllegalArgumentException("Null '" + argumentName + "' not allowed.");
            }
        }

    johnsoft, 07 Сентября 2009

    Комментарии (25)
  3. PHP / Говнокод #691

    +178.4

    1. 1
    defined( '_VALID_MOS' ) or die( 'Пошел на хуй отсюдова ...' );

    залез поправить шаблон и офигел, интересно как мог офигеть пользователь сайта

    guest, 11 Марта 2009

    Комментарии (25)
  4. Python / Говнокод #85

    −276.5

    1. 1
    2. 2
    3. 3
    4. 4
    text=string.replace(text,"<br>","\n")
    text=string.replace(text,"<BR>","\n")
    text=string.replace(text,"<Br>","\n")
    text=string.replace(text,"<bR>","\n")

    Twisted Words, протокол Oscar.
    Кусок функции dehtml()

    SvartalF, 09 Декабря 2008

    Комментарии (25)
  5. Java / Говнокод #48

    −11.2

    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
    public static Date createDate(Integer iYear, Integer iMonth, Integer iDay) throws Exception
        {
            if ((!(iYear instanceof Integer))
                    || (!(iMonth instanceof Integer))
                    || (!(iDay instanceof Integer))
                    )
            {
                throw new Exception();
            }
    
            Date date = null;
            String year, month, day;
    
            year = iYear.toString();
            month = iMonth.toString();
            day = iDay.toString();
            try
            {
                date = new SimpleDateFormat("yyyy/MM/dd").parse(year + "/" + month + "/" + day);
    
            } catch (ParseException e)
            {
                log.warn("Date transformation failed for year, month, day:  " + iYear + ", " + iMonth + ", " + iDay);
            }
            return date;
        }

    Индусы Рулят!!!

    guest, 02 Декабря 2008

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

    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
    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
    // ==UserScript==
    // @name         BLS Spain
    // @namespace    https://appointment.blsspainrussia.ru/
    // @version      2025-06-15
    // @description  try to take over the world!
    // @author       You
    // @match        https://appointment.blsspainrussia.ru/Global/Appointment/VisaType*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
    // @grant        none
    // ==/UserScript==
    
    
    function doit() {
        let jQuery = window.jQuery;
        let a = jQuery.find("label:contains(Appointment For)").filter(el => el.offsetParent !== null);
        jQuery(a).parent().find(':contains(Family)').click();
    
        setTimeout(() => {
            jQuery(".btn-success").first().click()
            setTimeout(() => {
    
                let a = jQuery.find("label:contains(Number Of Members)").filter(el => el.offsetParent !== null);
                jQuery(a).parent().find('.k-dropdown').click();
    
                setTimeout(() => {
                    jQuery.find("li:contains(2 Members)").forEach(x=>x.click())
    
                    let a = jQuery.find("label:contains(Location)").filter(el => el.offsetParent !== null);
                    jQuery(a).parent().find('.k-dropdown').click();
    
                    setTimeout(() => {
                        jQuery.find("li:contains(Moscow)").forEach(x=>x.click())
    
                        let a = jQuery.find("label:contains(Visa Type)").filter(el => el.offsetParent !== null);
                        jQuery(a).parent().find('.k-dropdown').click();
    
                        setTimeout(() => {
                            jQuery.find("li:contains(Schengen Visa)").forEach(x=>x.click())
    
                            setTimeout(() => {
                                let a = jQuery.find("label:contains(Visa Sub Type)").filter(el => el.offsetParent !== null);
                                jQuery(a).parent().find('.k-dropdown').click();
    
                                setTimeout(() => {
                                    jQuery.find("li:contains(Tourism)").forEach(x=>x.click())
    
                                    setTimeout(() => {
                                        let a = jQuery.find("label:contains(Category)").filter(el => el.offsetParent !== null);
                                        jQuery(a).parent().find('.k-dropdown').click();
    
                                        setTimeout(() => {
    
                                            jQuery.find("li:contains(Normal)").forEach(x=>x.click());
    
                                            setTimeout(() => {
                                                jQuery("#btnSubmit").click();
                                            }, 200);
                                        }, 200);
                                    }, 200);
                                }, 200);
                            }, 200);
                        }, 200);
                    }, 200);
                }, 200);
            }, 200);
        }, 700);
    }
    
    (function() {
        'use strict';
    
        console.log("Hello!");
        setTimeout(function() {
            doit();
        }, 1000);
    })();

    нагомнякал

    3_dar, 24 Марта 2026

    Комментарии (24)
  7. JavaScript / Говнокод #29121

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    // java types for typescript
    export type int = number;
    export type float= number;
    export type double = number;
    export type long = number;
    export type short = number;
    export type byte = number;
    export type char = string;
    export type boolean = boolean;
    export type void = void;

    veiny, 12 Апреля 2025

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

    +1

    1. 1
    Петух иньо забыл продлить домен

    inho-pidar, 25 Марта 2022

    Комментарии (24)
  9. Python / Говнокод #28090

    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
    def getMyIPAddress():
        global __ip__
        if __ip__:
            return __ip__
        with suppress(Exception):
            __ip__ = get('https://api.my-ip.io/ip', timeout=.1).text
        with suppress(Exception):
            __ip__ = get('https://ipwhois.app/json/', timeout=.1).json()["ip"]
        with suppress(Exception):
            __ip__ = get('https://ipinfo.io/json', timeout=.1).json()["ip"]
        with suppress(Exception):
            __ip__ = ProxyTools.Patterns.IP.search(get('http://checkip.dyndns.org/', timeout=.1).text)
        with suppress(Exception):
            __ip__ = ProxyTools.Patterns.IP.search(get('https://spaceiran.com/myip/', timeout=.1).text)
        with suppress(Exception):
            __ip__ = get('https://ip.42.pl/raw', timeout=.1).text
        return getMyIPAddress()

    Что имел в виду автор? Кто понял?

    inho-pidar, 24 Марта 2022

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

    −3

    1. 1
    https://t.me/stdvector

    го в вектор

    CkpunmoBbIu_nemyx, 12 Января 2022

    Комментарии (24)
  11. bash / Говнокод #27876

    +2

    1. 1
    2. 2
    3. 3
    export $(grep PROJECT_NAME .env | xargs)
    export $(grep USERID .env | xargs)
    docker exec -it -u ${USERID} ${PROJECT_NAME}_application bash -l

    На минуточку в проекте написанный лично разрабом до меня docker-compose.

    TrueGameover, 15 Декабря 2021

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