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

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

    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
    <!DOCTYPE html>
    <html>
     <head>
      <title></title>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <link rel="stylesheet" href="css/style.css">
      <!--[if IE]>
       <script src="https://raw.githubusercontent.com/aFarkas/html5shiv/master/dist/html5shiv.min.js"></script>
      <![endif]-->
      <style>
       article, aside, details, figcaption, figure, footer,header,
       hgroup, menu, nav, section { display: block; }
      </style>
     </head>
     <body>
      <form id="form">
        <input type="date">
        <input id="inp" type="email" required>
        <input type="submit">
      </form><br>
      <section itemtype="http://data-vocabulary.org/Person" itemscope>
        <h1 itemprop="name">Mark Pilgrim</h1>
        <p><img itemprop="photo" src="http://www.example.com/photo.jpg" alt="[me smiling]"></p>
        <p><a itemprop="url" href="http://diveintomark.org/">weblog</a></p>
      </section>
      <progress id="pg" value="50" max="100">
        <br>
    
      <script>
        let forward = true;
        function pgset() {
          if(forward) {
            pg.value = +pg.value + 1;
            if(+pg.value == 100)
              forward = false;
          }
          else {
            pg.value = +pg.value - 1;
            if(+pg.value == 0)
              forward = true;
          }
        }
        //setInterval(pgset, 100); //нахуй!
      </script>
     </body>
    </html>

    Куда мне ещё говно скидывать??

    fuckercoder, 21 Апреля 2018

    Комментарии (1)
  3. Python / Говнокод #24164

    0

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    def create_delta(self, timestamp, subs: set):
        sym_subs = subs.symmetric_difference(self.subs)
        added_subs = sym_subs.difference(self.subs)
        removed_subs = sym_subs.difference(subs)
        return DeltaEntry(timestamp, added_subs, removed_subs)

    gost, 21 Апреля 2018

    Комментарии (1)
  4. Куча / Говнокод #24163

    −109

    1. 1
    Анальные утехи - населению

    https://img09.rl0.ru/a089d483411795d19aa2712afde93c8c/c592x444/pbs.twimg.com/media/CIcTC_dWoAAUPnE.jpg

    uiry, 21 Апреля 2018

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

    +2

    1. 1
    2. 2
    3. 3
    4. 4
    $this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET name = '" . $this->db->escape((string)$data['name']) . "', sort_order = '" . (int)$data['sort_order'] . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
    		if (isset($data['image'])) {
    			$this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET image = '" . $this->db->escape((string)$data['image']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
    		}

    Opencart https://github.com/opencart/opencart/blob/master/upload/admin/model/catalog/manufacturer.php#L35-L39

    MrWhite, 05 Апреля 2018

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

    +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
    43. 43
    44. 44
    return query instanceof RegExp ?
        (function () {
    	fn.each(function (id) {
    	    if (id.match(query)) {
    		seatSet.push(id, this);
    	    }
    	});
    	return seatSet;
        })() :
        (query.length == 1 ?
    	(function (character) {
    	    //user searches just for a particual character
    	    fn.each(function () {
    		if (this.char() == character) {
    		      seatSet.push(this.settings.id, this);
    		}
    	    });
                return seatSet;
    	})(query) :
                (function () {
                    //user runs a more sophisticated query, so let's see if there's a dot
    		    return query.indexOf('.') > -1 ?
    		        (function () {
    		             //there's a dot which separates character and the status
    		                 var parts = query.split('.');
    		
    		                 fn.each(function (seatId) {
    		                     if (this.char() == parts[0] && this.status() == parts[1]) {
    		                         seatSet.push(this.settings.id, this);
    		                     }
    		                 });
    		
    		                 return seatSet;
    		         })() :
    		             (function () {
    		                 fn.each(function () {
    		                     if (this.status() == query) {
    		                         seatSet.push(this.settings.id, this);
    		                     }
    		                 });
    		                return seatSet;
    		         })();
    		     })()
    		 );

    https://github.com/mateuszmarkowski/jQuery-Seat-Charts -- отсюда, заставила нелегкая использовать на одном мелком проекте. в пост запилил самый блистательный и ароматный кусок

    bakahakka, 04 Апреля 2018

    Комментарии (1)
  7. Pascal / Говнокод #24060

    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
    procedure ustbet;
    begin
    if (200*GCtrl.CurLines>coins.realBalance) then  begin
    if (150*GCtrl.CurLines>coins.realBalance) then  begin
    if (100*GCtrl.CurLines>coins.realBalance) then  begin
    if (50*GCtrl.CurLines>coins.realBalance) then  begin
        if (40*GCtrl.CurLines>coins.realBalance) then  begin
           if (30*GCtrl.CurLines>coins.realBalance) then  begin
             if (20*GCtrl.CurLines>coins.realBalance) then  begin
               if (15*GCtrl.CurLines>coins.realBalance) then  begin
                 if (10*GCtrl.CurLines>coins.realBalance) then  begin
                  if (5*GCtrl.CurLines>coins.realBalance) then  begin
                     if (4*GCtrl.CurLines>coins.realBalance) then  begin
                       if (3*GCtrl.CurLines>coins.realBalance) then  begin
                         if (2*GCtrl.CurLines>coins.realBalance) then  begin
                           if (1*GCtrl.CurLines>coins.realBalance) then  begin
     end else Coins.CurBet:=1
     end else Coins.CurBet:=2;
     end else Coins.CurBet:=3;
     end else Coins.CurBet:=4;
     end else Coins.CurBet:=5;
     end else Coins.CurBet:=10;
     end else Coins.CurBet:=15;
     end else Coins.CurBet:=20;
     end else Coins.CurBet:=30;
     end else Coins.CurBet:=40;
     end else Coins.CurBet:=50;
     end else Coins.CurBet:=100;
     end else Coins.CurBet:=150;
     end else Coins.CurBet:=200;
     coins.AllBet:=Coins.CurBet*gctrl.curlines;
    end;

    Предположительно, установка текущей ставки в слотовой игре. Но это ещё далеко не самый трэш в этом говнопроекте.

    SadButTrue, 03 Апреля 2018

    Комментарии (1)
  8. JavaScript / Говнокод #24056

    −1

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    if (typeof _dragon_pic_shift[el]['did'] === typeof undefined || typeof _dragon_pic_shift[el]['pic_id'] === typeof undefined ) {
        continue;
    }
                
    if (_dragon_pic_shift[el]['did'].indexOf(active_dragon_id) >= 0 
        && _dragon_pic_shift[el]['pic_id'].indexOf(active_dragon_lvl) >= 0
        && _dragon_pic_shift[el]['place'] == this_place) {
        css_shift_class = _dragon_pic_shift[el]['css_shift'];
        break;
    }

    это какой то новый уровень построения условий в js

    Snickers, 02 Апреля 2018

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

    −101

    1. 1
    Шалом, сученьки. Не ждали?

    Пишу на C++/PHP, программирую микроконтроллеры, пью чёрную воду, ебусь в зад, принимаю за гланды

    Lev_gLandau, 01 Апреля 2018

    Комментарии (1)
  10. Куча / Говнокод #24008

    −2

    1. 1
    2. 2
    3. 3
    Будем честны - все мои мысли исключительно о моём анусе и о моём члене. Круглосуточно. Я восхищаюсь тем, как за семнадцать лет беспрерывной
    дрочки головка члена сохранила всё ту же первозданную коралловую красоту; беспрестанно поигрываю со своей крайней плотью, иногда протягивая
    её через всю промежность и засовывая её прямо в свой чистый, узенький анус.

    g0_1494033395677, 26 Марта 2018

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

    −2

    1. 1
    Ваш код никому в хуй не упёрся. Давайте лучше излагать свои эротические фантазии - это будет честнее, чем выкладывать неинтересный даже самому себе код в надежде снискать плюсы.

    g0_1494033395677, 26 Марта 2018

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