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

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

    0

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

    #205: https://govnokod.ru/28986 https://govnokod.xyz/_28986
    #206: https://govnokod.ru/28991 https://govnokod.xyz/_28991
    #207: https://govnokod.ru/29002 https://govnokod.xyz/_29002
    #208: https://govnokod.ru/29060 https://govnokod.xyz/_29060
    #209: https://govnokod.ru/29070 https://govnokod.xyz/_29070
    #210: https://govnokod.ru/29079 https://govnokod.xyz/_29079
    #211: https://govnokod.ru/29092 https://govnokod.xyz/_29092
    #212: https://govnokod.ru/29093 https://govnokod.xyz/_29093
    #213: https://govnokod.ru/29104 https://govnokod.xyz/_29104
    #214: https://govnokod.ru/29114 https://govnokod.xyz/_29114
    #215: https://govnokod.ru/29125 https://govnokod.xyz/_29125
    #216: https://govnokod.ru/29132 https://govnokod.xyz/_29132
    #217: https://govnokod.ru/29147 https://govnokod.xyz/_29147
    #218: https://govnokod.ru/29156 https://govnokod.xyz/_29156
    #219: https://govnokod.ru/29166 https://govnokod.xyz/_29166
    #220: https://govnokod.ru/29181 https://govnokod.xyz/_29181
    #221: https://govnokod.ru/29185 https://govnokod.xyz/_29185
    #222: https://govnokod.ru/29190 https://govnokod.xyz/_29190
    #223: https://govnokod.ru/29203 https://govnokod.xyz/_29203
    #224: https://govnokod.ru/29211 https://govnokod.xyz/_29211
    #225: https://govnokod.ru/29212 https://govnokod.xyz/_29212
    #226: https://govnokod.ru/29218 https://govnokod.xyz/_29218
    #227: https://govnokod.ru/29220 https://govnokod.xyz/_29220
    #228: https://govnokod.ru/29230 https://govnokod.xyz/_29230
    #229: https://govnokod.ru/29235 https://govnokod.xyz/_29235
    #230: https://govnokod.ru/29241 https://govnokod.xyz/_29241
    #231: https://govnokod.ru/29246 https://govnokod.xyz/_29246
    #232: https://govnokod.ru/29249 https://govnokod.xyz/_29249
    #233: https://govnokod.ru/29253 https://govnokod.xyz/_29253
    #234: https://govnokod.ru/29259 https://govnokod.xyz/_29259

    nepeKamHblu_nemyx, 27 Мая 2026

    Комментарии (45)
  3. Куча / Говнокод #29263

    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
    Хрюкни #41
                 ._     __,
                  |\,../'\
                ,'. .     `.
               .--         '`.
              ( `' ,          ;
              ,`--' _,       ,'\
             ,`.____            `.
            /              `,    |
           '                \,   '
           |                /   /`,
           `,  .           ,` ./  |
           ' `.  ,'        |;,'   ,@
     ______|     |      _________,_____jv______
            `.   `.   ,'
             ,'_,','_,
             `'   `'

    #11: https://govnokod.ru/27517 https://govnokod.xyz/_27517
    #12: https://govnokod.ru/27636 https://govnokod.xyz/_27636
    #13: (vanished) https://govnokod.xyz/_27711
    #14: https://govnokod.ru/27713 https://govnokod.xyz/_27713
    #15: https://govnokod.ru/27721 https://govnokod.xyz/_27721
    #16: https://govnokod.ru/27722 https://govnokod.xyz/_27722
    #17: (vanished) https://govnokod.xyz/_27723
    #18: https://govnokod.ru/27724 https://govnokod.xyz/_27724
    #19: https://govnokod.ru/27726 https://govnokod.xyz/_27726
    #20: https://govnokod.ru/27727 https://govnokod.xyz/_27727
    #21: https://govnokod.ru/27870 https://govnokod.xyz/_27870
    #22: https://govnokod.ru/28067 https://govnokod.xyz/_28067
    #23: https://govnokod.ru/28277 https://govnokod.xyz/_28277
    #24: https://govnokod.ru/28471 https://govnokod.xyz/_28471
    #25: https://govnokod.ru/28659 https://govnokod.xyz/_28659
    #26: (vanished) https://govnokod.xyz/_28661
    #27: (vanished) https://govnokod.xyz/_28668
    #28: https://govnokod.ru/28678 https://govnokod.xyz/_28678
    #29: https://govnokod.ru/28686 https://govnokod.xyz/_28686
    #30: https://govnokod.ru/28693 https://govnokod.xyz/_28693
    #31: https://govnokod.ru/28700 https://govnokod.xyz/_28700
    #32: https://govnokod.ru/28706 https://govnokod.xyz/_28706
    #33: https://govnokod.ru/28713 https://govnokod.xyz/_28713
    #34: https://govnokod.ru/28723 https://govnokod.xyz/_28723
    #35: https://govnokod.ru/28731 https://govnokod.xyz/_28731
    #36: https://govnokod.ru/28737 https://govnokod.xyz/_28737
    #37: https://govnokod.ru/28741 https://govnokod.xyz/_28741
    #38: https://govnokod.ru/28751 https://govnokod.xyz/_28751
    #39: https://govnokod.ru/28854 https://govnokod.xyz/_28854
    #40: https://govnokod.ru/28990 https://govnokod.xyz/_28990

    nepeKamHblu_nemyx, 28 Мая 2026

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

    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
    Lemma mfun_equiv_commut f g g1 g2 :
      mfun_equiv g (g2 ∘ g1) ->
      commute f g1 ->
      commute f g2 ->
      commute f g.
    Proof.
      intros Hg Hcomm_g1 Hcomm_g2 a z.
      split; intros H; unfold mfun_equiv in Hg.
      - destruct H as [b [Hb Hz]].
        rewrite Hg in Hz.
        destruct Hz as [d [Hd Hz]].
        destruct (Hcomm_g1 a d) as [Hg1f Hfg1]. clear Hfg1.
        destruct Hg1f as [d' [Had' Hcd']]. { sauto. }
        morph_shift g2 d'.
        destruct Had' as [c' Hc'].
        destruct (Hcomm_g2 c' z') as [Hg2f Hfg2].
        destruct Hg2f as [z'' [Hz'' Hz'z'']]. { sauto. }
        destruct Hz'' as [e'' He''].
        exists z''.
        split.
        + exists e''.
          split.
          * rewrite Hg. sauto.
          * easy.
        + now rewrite Hequiv_z_z', Hz'z''.
      - destruct H as [c [Hc Hz]].
        rewrite Hg in Hc.
        destruct Hc as [b [Hb Hc]].
        destruct (Hcomm_g2 b z) as [Hg2f Hfg2]. clear Hg2f.
        destruct Hfg2 as [z' [Hbz' Hzz']]. { sauto. }
        destruct Hbz' as [d [Hdz' Hbd']].
        destruct (Hcomm_g1 a d) as [Hg1f Hfg1]. clear Hg1f.
        destruct Hfg1 as [d' [Had' Hdd']]. { sauto. }
        destruct Had' as [b' [Hab' Hb'd']].
        morph_shift g2 d'.
        exists z''.
        split.
        + exists b'.
          split.
          * easy.
          * rewrite Hg. exists d'. sauto.
        + now rewrite Hzz', Hequiv_z'_z''.
    Qed.

    Why are we here, just to suffer?

    CHayT, 30 Мая 2026

    Комментарии (2)
  5. Python / Говнокод #29261

    0

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    try:
                # Get or create cached encoder/decoder pair atomically
                encoder_decoder = cls._encoder_cache.get(struct_cls)
                if encoder_decoder is None:
                    encoder = msgspec.json.Encoder()
                    decoder = msgspec.json.Decoder(type=struct_cls, dec_hook=_dec_hook)
                    encoder_decoder = (encoder, decoder)
                    cls._encoder_cache[struct_cls] = encoder_decoder
                    cls._decoder_cache[struct_cls] = encoder_decoder
                else:
                    encoder, decoder = encoder_decoder

    Энкодер декодер энкодер декодер

    JloJle4Ka, 25 Мая 2026

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