Блог*
الذهاب إلى القناة على Telegram
Блог со звёздочкой. Много репостов, немножко программирования. Небольшое прикольное комьюнити: @decltype_chat_ptr_t Автор: @insert_reference_here
إظهار المزيد1 985
المشتركون
-324 ساعات
-67 أيام
+130 أيام
أرشيف المشاركات
1 986
#prog #article
The Configuration Complexity Clock
Немного про то, как отказ от хардкода может в конечном счёте привести к тем же проблемам, что и хардкод.
I’m not saying that it’s never appropriate to implement complex configuration, a rules-engine or a DSL, <...> but I am saying that you should understand the implications and recognise where you are on the clock before you go down that route.
1 986
Repost from kosmonozhka
С праздничком всех, кто воскрес! Напоминаю, каким должен быть правильный кулич
#kosmonozhka
1 986
#prog #rust
Хозяйке на заметку
Если вам нужно использовать множества в качестве ключа для ассоциативного массива, то BTreeSet из стандартной библиотеки реализует Hash (как и BTreeMap)
1 986
Repost from Хреногубка
Талибан — норм, а вот ЛГБТК — террористы-экстремисты!! Смотрите не перепутайте.
1 986
#article
Collections: The Problem with Sci-Fi Body Armor
...where real armors evolve against threats, fictional armors evolve as a visual language, borrowing the design elements of other fictional armors far more often than they dip into their own historical exemplars, with the result that the whole thing sort of devours itself.(thanks @al_tch)
1 986
#prog #article
What the Hell Is a Target Triple?
О том, что из себя представляет target triple (строка, указывающая компилятору, под какую платформу компилировать код), почему в так называемой тройке может быть четыре или два компонента и много ворчания на тему того, какой там беспорядок в плане именования. Go, как всегда, особенный.
1 986
Repost from Технологический Болт Генона
TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We're going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!
import tariff
# Set your tariff rates (package_name: percentage)
tariff.set({
"numpy": 50, # 50% tariff on numpy
"pandas": 200, # 200% tariff on pandas
"requests": 150 # 150% tariff on requests
})
# Now when you import these packages, they'll be TARIFFED!
import numpy # This will be 50% slower
import pandas # This will be 200% slower
How It Works
When you import a package that has a tariff:
1. TARIFF measures how long the original import takes
2. TARIFF makes the import take longer based on your tariff percentage
3. TARIFF announces the tariff with a TREMENDOUS message
Example Output
JUST IMPOSED a 50% TARIFF on numpy! Original import took 45000 us, now takes 67500 us. American packages are WINNING AGAIN! #MIPAhttps://github.com/hxu296/tariff
1 986
Repost from Разработка игр 🍄
Отличная статья про дыры в дизайне игр, который позволяют игрокам получать незапланированное преимущество. Раскрываются типы таких дыр, а также способы их избежать.
http://devmag.org.za/2012/05/07/loopholes-in-game-design/
