1. C# / Говнокод #27114

    +1

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    DeliveryTruck t when t.GrossWeightClass switch
    {
        < 3000 => 10.00m - 2.00m,
        >= 3000 and <= 5000 => 10.00m,
        > 5000 => 10.00m + 5.00m,
    }

    С каждой новой версией C# всё меньше похож на C# и всё больше на Perl.

    Vindicar, 14 Ноября 2020

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

    +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
    In order to fund the development work on speeding CPython by a factor of five, something like $2M will be required.
    This seems like a sizeable sum, but compared to the amount of money spent on Python development and the 
    cost of running Python applications, it is quite a modest sum.
    
    ---
    
    The overall aim is to speed up CPython by a factor of (approximately) five. We aim to do this in four distinct stages, 
    each stage increasing the speed of CPython by (approximately) 50%.
    
    1.5**4 ≈ 5
    
    ---
    
    The interpreter will adapt to types and values during execution, exploiting [b]type stability[/b] in the program
    
    ---
    
    Improved performance for [b]integers of less than one machine word[/b].
    Improved peformance for [b]binary operators[/b].
    
    ---
    
    Simple "JIT" compiler for small regions. Compile small regions of specialized code, using a relatively simple, fast compiler.
    Extend regions for compilation. Enhance compiler to generate [b]superior machine code[/b].

    питонисты готовят новую версию интерпретатора с революционной фичей - возможностью отъема денег у населения. Ожидается, что нововведение позволит языку быстро заработать очки на рынке пускания пыли в глаза.

    https://github.com/markshannon/faster-cpython

    Fike, 13 Ноября 2020

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

    0

    1. 1
    bp kernelbase!VirtualAlloc " .printf \"\n\n\n\nBytes allocated: %lu (k)\n\n\n\",(@rdx/0n1024); k 8"

    Давайте течь от windbg

    MAPTbIwKA, 13 Ноября 2020

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

    0

    1. 1
    2. 2
    3. 3
    4. 4
    pituhs.reserve(kurochkas.size());
    for (auto& kurochka : kurochkas) {
        pituhs.push_back(kurochka.snesti_jajichko());
    }

    reserve заебал.
    Коллега (да, тот же самый) пихает его везде.
    Я понимаю зачем это нужно, но блядь, я читаю на одну строку больше, чем мог бы, и лишний раз напрягаю мозг.
    И это сливается со словом «reverse».

    Кстати, оптимизаторы могли бы такую хуйню сами детектить, и резервировать сами.

    3_dar, 12 Ноября 2020

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

    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
    <div class="filter-aside-mobile-category-popular" id="filter-aside-mobile-category-popular">
                  <div class="catalog-mobile-menu__header">
                    <div class="catalog-mobile-menu__close">
                      <svg>
                        <use xlink:href="assets/img/sprite.svg#arr-left"></use>
                      </svg><span>Назад</span>
                    </div>
                  </div>
                  <h3 class="filter-aside-mobile-sorted__title">Популярные подборки</h3>
                <ul class="category-popular-filter__list">
                      <li class="category-popular-filter__item"><a class="category-popular-filter__link" href="#">Rotabroach</a></li>
                 
                    </ul>
                </div>

    snegoviktlt, 12 Ноября 2020

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

    −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
    $(".mobile-filter__footer-popular-btn").on("click",function(e){
    e.preventDefault(),
    $("#header-mobile").addClass("blue"),
    $(this).addClass("active"),
    $("#filter-aside-mobile-category-popular").addClass("active")
    });
    $("#filter-aside-mobile-category-popular .catalog-mobile-menu__close").on("click",function(e){
    e.preventDefault(),
    $("#header-mobile").removeClass("blue"),
    $(".mobile-filter__footer-popular-btn").removeClass("active"),
    $("#filter-aside-mobile-category-popular").removeClass("active")
    })

    sdf

    snegoviktlt, 12 Ноября 2020

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

    0

    1. 1
    2. 2
    3. 3
    $(".mobile-filter__footer-popular-btn").on("click",function(e){e.preventDefault(),$("#header-mobile").addClass("blue"),$(this).addClass("active"),$("#filter-aside-mobile-category-popular").addClass("active")}),
    	$("#filter-aside-mobile-category-popular .catalog-mobile-menu__close").on("click",function(e){e.preventDefault(),$("#header-mobile").removeClass("blue"),$(".mobile-filter__footer-popular-btn").removeClass("active"),
    	$("#filter-aside-mobile-category-popular").removeClass("active")})

    1

    snegoviktlt, 12 Ноября 2020

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

    +2

    1. 1
    Class::Class(Pethu pethu) : pethu(std::move(pethu)) {

    std::move заебал. Просто взял, блядь, — и заебал!
    Чем это лучше передачи по ссылке?

    guestinxo, 12 Ноября 2020

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

    0

    1. 1
    https://tproger.ru/articles/frontend-roadmap-2021/

    Как много надо учить ради того, чтобы клепать красивые формочки.
    Они там совсем ебанулись?

    YpaHeLI_, 12 Ноября 2020

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

    +1

    1. 1
    2. 2
    using T = int;
    0 .T::~T();

    Чем-то меня эта (полностью валидная) коньструкция очаровала.

    gost, 12 Ноября 2020

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