- 1
- 2
- 3
- 4
- 5
- 6
DeliveryTruck t when t.GrossWeightClass switch
{
< 3000 => 10.00m - 2.00m,
>= 3000 and <= 5000 => 10.00m,
> 5000 => 10.00m + 5.00m,
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+1
DeliveryTruck t when t.GrossWeightClass switch
{
< 3000 => 10.00m - 2.00m,
>= 3000 and <= 5000 => 10.00m,
> 5000 => 10.00m + 5.00m,
}
С каждой новой версией C# всё меньше похож на C# и всё больше на Perl.
+1
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
0
bp kernelbase!VirtualAlloc " .printf \"\n\n\n\nBytes allocated: %lu (k)\n\n\n\",(@rdx/0n1024); k 8"
Давайте течь от windbg
0
pituhs.reserve(kurochkas.size());
for (auto& kurochka : kurochkas) {
pituhs.push_back(kurochka.snesti_jajichko());
}
reserve заебал.
Коллега (да, тот же самый) пихает его везде.
Я понимаю зачем это нужно, но блядь, я читаю на одну строку больше, чем мог бы, и лишний раз напрягаю мозг.
И это сливается со словом «reverse».
Кстати, оптимизаторы могли бы такую хуйню сами детектить, и резервировать сами.
0
<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>
−1
$(".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
0
$(".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
+2
Class::Class(Pethu pethu) : pethu(std::move(pethu)) {
std::move заебал. Просто взял, блядь, — и заебал!
Чем это лучше передачи по ссылке?
0
https://tproger.ru/articles/frontend-roadmap-2021/
Как много надо учить ради того, чтобы клепать красивые формочки.
Они там совсем ебанулись?
+1
using T = int;
0 .T::~T();
Чем-то меня эта (полностью валидная) коньструкция очаровала.