1. PHP / Говнокод #25698

    0

    1. 1
    2. 2
    3. 3
    Я делал сайт на пхп полгода, интернет магазин, с нуля, с админкой и прочим
    А еще мне поставили параноидную шизу полгода назад.
    Больше не буду кодить. Видать.

    OlegUP, 04 Июля 2019

    Комментарии (55)
  2. Java / Говнокод #25697

    +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
    super(
                new TkWithHeaders(
                    new TkVersioned(
                        new TkMeasured(
                            new TkFlash(
                                new TkAppFallback(
                                    new TkAppAuth(
                                        new TkForward(
                                            new TkFork(
                                                new FkHost(
                                                    "relay.jare.io",
                                                    new TkFallback(
                                                        new TkRelay(base),
                                                        req -> new Opt.Single<>(
                                                            new RsWithType(
                                                                new RsWithBody(
                                                                    new RsWithStatus(req.code()),
                                                                    new Sprintf(

    Код вполне рабочего проекта

    Ray_Mints, 04 Июля 2019

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

    +7

    1. 1
    2. 2
    3. 3
    4. 4
    go 23239
    govno gopa barebuh suka
    
    pidor jopa

    Это — особый диалект «JavaScript», используемый в «Google»: https://www.youtube.com/watch?v=-XRLl9LEZ7c&t=16 (16-я секунда, https://i.imgur.com/O8AwR9B.png).

    Именно поэтому я за «Google».

    gost, 03 Июля 2019

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

    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
    std::string makeFormContent(const std::string & album,
                                const std::wstring & filename,
                                const std::string & boundary)
    {
        static const std::string DELIM = "\r\n";
        std::ostringstream ss;
        std::ifstream file(filename, std::ios::binary);
    
    
        ss << boundary << DELIM;
        ss << "Content-Disposition: form-data; name=\"album\"" << DELIM << DELIM;
        ss << album << DELIM;
    
        ss << boundary << DELIM;
        ss << "Content-Disposition: form-data; name=\"image\"; filename=\"image\"" << DELIM << DELIM;
        ss << file.rdbuf() << DELIM;
    
        ss << boundary << DELIM << "--";
    
        return ss.str();
    }

    Заебали. Куча HTTP-либ под кресты, а банально сделать POST-запрос с multipart/form-data без кучи ебли нельзя. Приходится самому составлять, лол.

    Именно поэтому я за «requests.post(url, data=data, files=files)».

    gost, 02 Июля 2019

    Комментарии (120)
  5. Куча / Говнокод #25694

    −1

    1. 1
    IT Оффтоп #15

    #1: http://govnokod.ru/18142 http://govnokod.xyz/_18142
    #2: http://govnokod.ru/18378 http://govnokod.xyz/_18378
    #3: http://govnokod.ru/19667 http://govnokod.xyz/_19667
    #4: http://govnokod.ru/21160 http://govnokod.xyz/_21160
    #5: http://govnokod.ru/21772 http://govnokod.xyz/_21772
    #6: http://govnokod.ru/24063 (потёр пидор сракер) http://govnokod.xyz/_24063
    #7: http://govnokod.ru/24538 http://govnokod.xyz/_24538
    #8: http://govnokod.ru/24815 (потёр пидор сракер) http://govnokod.xyz/_24815
    #9: http://govnokod.ru/24867 http://govnokod.xyz/_24867
    #10: https://govnokod.ru/25328 https://govnokod.xyz/_25328
    #11: https://govnokod.xyz/_25436 http://govnokod.ru/25436 (потёр пидор сракер)
    #12: https://govnokod.xyz/_25471
    #13: https://govnokod.xyz/_25590 (потёр пидор сракер)
    #14: https://govnokod.xyz/_25684

    syoma, 02 Июля 2019

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

    0

    1. 1
    Просто оффтоп #5

    #1: https://govnokod.xyz/_20162 https://govnokod.ru/20162
    #2: https://govnokod.xyz/_25329 https://govnokod.ru/25329
    #3: https://govnokod.xyz/_25415 https://govnokod.ru/25415
    #4: https://govnokod.xyz/_25472

    syoma, 02 Июля 2019

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

    +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
    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
    body {
      background-color: blue;
      font-family: monospace;
      color: yellow;
    }
    
    .header {
      border: 4px double yellow;
      border-radius: 0px;
      padding: 35px;
    }
    
    .comment {
      border: 4px double yellow;
      border-radius: 0px;
      background-color: blue;
    }
    
    .comment.new {
      background-color: blue;
    }
    
    .comment .avatar {
      left: 10px;
      top: 10px;
      border: 1px solid yellow;
    }
    
    .comment .content {
      margin-left: 70px;
      margin-top: 10px;
    }
    
    .comment-popup {
      background-color: blue;
      border: 4px double yellow;
    }
    
    a {color: magenta;}
    
    pre {
      background-color: black;
      color: lightgray;
      padding: 10px;
      margin-right: 10px;
    }

    СОСУ ГЛАЗА

    CuHb, 02 Июля 2019

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

    +1

    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
    77. 77
    78. 78
    79. 79
    80. 80
    81. 81
    82. 82
    83. 83
    84. 84
    85. 85
    86. 86
    87. 87
    88. 88
    89. 89
    90. 90
    91. 91
    92. 92
    void Start () {
    
            carRight1 = GameObject.Find("CarRight1");
            carRight2 = GameObject.Find("CarRight2");
            carRight3 = GameObject.Find("CarRight3");
            carRight4 = GameObject.Find("CarRight4");
            carRight5 = GameObject.Find("CarRight5");
            carRight6 = GameObject.Find("CarRight6");
            carRight7 = GameObject.Find("CarRight7");
            carRight8 = GameObject.Find("CarRight8");
            carRight9 = GameObject.Find("CarRight9");
            carRight10 = GameObject.Find("CarRight10");
            carRight11 = GameObject.Find("CarRight11");
            carRight12 = GameObject.Find("CarRight12");
            carRight13 = GameObject.Find("CarRight13");
            carRight14 = GameObject.Find("CarRight14");
            carRight15 = GameObject.Find("CarRight15");
            carRight16 = GameObject.Find("CarRight16");
            carRight17 = GameObject.Find("CarRight17");
    
            carLeft1 = GameObject.Find("CarLeft1");
            carLeft2 = GameObject.Find("CarLeft2");
            carLeft3 = GameObject.Find("CarLeft3");
            carLeft4 = GameObject.Find("CarLeft4");
            carLeft5 = GameObject.Find("CarLeft5");
            carLeft6 = GameObject.Find("CarLeft6");
            carLeft7 = GameObject.Find("CarLeft7");
            carLeft8 = GameObject.Find("CarLeft8");
            carLeft9 = GameObject.Find("CarLeft9");
            carLeft10 = GameObject.Find("CarLeft10");
            carLeft11 = GameObject.Find("CarLeft11");
            carLeft12 = GameObject.Find("CarLeft12");
            carLeft13 = GameObject.Find("CarLeft13");
            carLeft14 = GameObject.Find("CarLeft14");
            carLeft15 = GameObject.Find("CarLeft15");
            carLeft16 = GameObject.Find("CarLeft16");
            carLeft17 = GameObject.Find("CarLeft17");
            carLeft18 = GameObject.Find("CarLeft18");
            carLeft19 = GameObject.Find("CarLeft19");
            carLeft20 = GameObject.Find("CarLeft20");
            carLeft21 = GameObject.Find("CarLeft21");
            carLeft22 = GameObject.Find("CarLeft22");
    
            speed = 15f;
            //gameObject.transform.localScale = new Vector3(0, 0, 0);
        }
    	
    	// Update is called once per frame
    	void Update () {
    		
            carRight1.GetComponent<Rigidbody>().velocity = carRight1.transform.forward * speed;
            carRight2.GetComponent<Rigidbody>().velocity = carRight2.transform.forward * speed;
            carRight3.GetComponent<Rigidbody>().velocity = carRight3.transform.forward * speed;
            carRight4.GetComponent<Rigidbody>().velocity = carRight4.transform.forward * speed;
            carRight5.GetComponent<Rigidbody>().velocity = carRight5.transform.forward * speed;
            carRight6.GetComponent<Rigidbody>().velocity = carRight6.transform.forward * speed;
            carRight7.GetComponent<Rigidbody>().velocity = carRight7.transform.forward * speed;
            carRight8.GetComponent<Rigidbody>().velocity = carRight8.transform.forward * speed;
            carRight9.GetComponent<Rigidbody>().velocity = carRight9.transform.forward * speed;
            carRight10.GetComponent<Rigidbody>().velocity = carRight10.transform.forward * speed;
            carRight11.GetComponent<Rigidbody>().velocity = carRight11.transform.forward * speed;
            carRight12.GetComponent<Rigidbody>().velocity = carRight12.transform.forward * speed;
            carRight13.GetComponent<Rigidbody>().velocity = carRight13.transform.forward * speed;
            carRight14.GetComponent<Rigidbody>().velocity = carRight14.transform.forward * speed;
            carRight15.GetComponent<Rigidbody>().velocity = carRight15.transform.forward * speed;
            carRight16.GetComponent<Rigidbody>().velocity = carRight16.transform.forward * speed;
            carRight17.GetComponent<Rigidbody>().velocity = carRight17.transform.forward * speed;
    
            carLeft1.GetComponent<Rigidbody>().velocity = carLeft1.transform.forward * speed;
            carLeft2.GetComponent<Rigidbody>().velocity = carLeft2.transform.forward * speed;
            carLeft3.GetComponent<Rigidbody>().velocity = carLeft3.transform.forward * speed;
            carLeft4.GetComponent<Rigidbody>().velocity = carLeft4.transform.forward * speed;
            carLeft5.GetComponent<Rigidbody>().velocity = carLeft5.transform.forward * speed;
            carLeft6.GetComponent<Rigidbody>().velocity = carLeft6.transform.forward * speed;
            carLeft7.GetComponent<Rigidbody>().velocity = carLeft7.transform.forward * speed;
            carLeft8.GetComponent<Rigidbody>().velocity = carLeft8.transform.forward * speed;
            carLeft9.GetComponent<Rigidbody>().velocity = carLeft9.transform.forward * speed;
            carLeft10.GetComponent<Rigidbody>().velocity = carLeft10.transform.forward * speed;
            carLeft11.GetComponent<Rigidbody>().velocity = carLeft11.transform.forward * speed;
            carLeft12.GetComponent<Rigidbody>().velocity = carLeft12.transform.forward * speed;
            carLeft13.GetComponent<Rigidbody>().velocity = carLeft13.transform.forward * speed;
            carLeft14.GetComponent<Rigidbody>().velocity = carLeft14.transform.forward * speed;
            carLeft15.GetComponent<Rigidbody>().velocity = carLeft15.transform.forward * speed;
            carLeft16.GetComponent<Rigidbody>().velocity = carLeft16.transform.forward * speed;
            carLeft17.GetComponent<Rigidbody>().velocity = carLeft17.transform.forward * speed;
            carLeft18.GetComponent<Rigidbody>().velocity = carLeft18.transform.forward * speed;
            carLeft19.GetComponent<Rigidbody>().velocity = carLeft19.transform.forward * speed;
            carLeft20.GetComponent<Rigidbody>().velocity = carLeft20.transform.forward * speed;
            carLeft21.GetComponent<Rigidbody>().velocity = carLeft21.transform.forward * speed;
            carLeft22.GetComponent<Rigidbody>().velocity = carLeft22.transform.forward * speed;
    
        }

    Обнаружил на ПК у "коллеги" по цеху. AI для машинок... (Сами переменные не влезли, но легко понять как они заданы.)

    Morseliot, 29 Июня 2019

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

    +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
    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
    class JSObject(object):
        def __init__(self, d):
            self.__dict__.update(d)
        def __getitem__(self, item):
            return self.__getattribute__(item)
        def __setitem__(self, item, value):
            return self.__setattr__(item, value)
        def __delitem__(self, item):
            return self.__delattr__(item)
    
        def __getattribute__(self, name):
            try:
                val = object.__getattribute__(self, name)
            except AttributeError:
                return undefined
            else:
                return val
    
        def __delattr__(self, name):
            try:
                object.__delattr__(self, name)
            except AttributeError:
                pass
            return None
            
        def __str__(self):
            return '[object Object]'
            
        def __repr__(self):
            return self.__dict__.__str__()
    
    
    class JSUndefined:
        __getitem__ = lambda a, b: undefined
        __setitem__ = lambda a, b, c: undefined
        __delitem__ = lambda a, b, c: undefined
        __getattribute__ = lambda a, b: undefined
        __setattr__ = lambda a, b, c: undefined
        __delattr__ = lambda a, b: undefined
        __str__ = lambda self: 'undefined'
        __repr__ = lambda self: 'undefined'
    undefined = JSUndefined()

    Перевёл «JavaScript» на «Python».

    gost, 28 Июня 2019

    Комментарии (32)
  10. JavaScript / Говнокод #25689

    +4

    1. 1
    this.checkArrayErrors() ? (this.canSend = true) : (this.canSend = false);

    Код разраба, который не прошел испытательный срок и сказал что к нему придираются.

    UnQu1et, 28 Июня 2019

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