TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое. Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению. И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make. just - это не система сборки как make, это именно исполнитель команд! Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎 ⭐️Что умеет just: ✅ Автодокументирование команд Не нужно делать отдельную команду с докой, просто добавь комментарий # команда сборки build: ... $ just --list Available recipes: build # команда сборки Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так: default: just --list Теперь просто выполняем just и получаем доку из текущего файла. ✅ Удобная работа с переменными окружения # загрузить из .env set dotenv-load # глобальная переменная export PYTHONPATH := "./src" # переменная для команды test $TESTUNG="true": pytest ✅ Передача аргументов build target: @echo 'Build {{target}}...' команда запуска $ just build dev # Build dev... ✅ Выбор интерпретатора прямо в команде Пример с инлайн-скриптом на python: system: #!/usr/bin/env python3 import platform print(platform.system()) Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки foo: #!/usr/bin/env sh for file in ls .; do echo $file done ✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный [working-directory: 'backend'] build: docker compose build Также можно задать рабочую директорию глобально Там еще много интересного: - поддержка функций - автокомплиты и интеграции - экспрешены - алиасы команд - группировка команд - альтернативы команды под разные ОС - импорт других just-файлов - цветной вывод - ... и другие штуковины! Так что вперёд - ➡️ читать доку! Репозиторий: ➡️https://github.com/casey/just Статья: ➡️https://www.chicks.net/reference/file_formats/just/ ЗЫ. Кажется, на Makefile я уже не вернусь) #tools

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #pragmatism

当前筛选 #pragmatism清除筛选
American Оbserver

@american_observer · Post #4765 · 03.01.2026 г., 23:59

📰 Jihadism’s Last Stand: The Retreat of Political Islam Despite the occasional terrorist attack, political Islam is shifting away from global jihad and toward a more pragmatic, local approach. Syria’s new president, Ahmed al-Sharaa—a former jihadist who once led a franchise of Islamic State—now wears a suit, speaks at diplomatic conferences, and promises stability, not revolution. The broader trend is clear: the dream of a pan-Islamic caliphate is fading. Movements like the Taliban in Afghanistan and Sharaa’s faction in Syria have realized that lasting power comes from building nations, not erasing borders. They now seek friendly relations with the West and focus on national affairs, not holy war. This shift is driven by two forces: the cost of transnational ambitions and the disillusionment with radical rule. After years of brutal governance by groups like ISIS, many Muslims now reject extremism. The Muslim Brotherhood, once a powerful force, has lost support after failed experiments in Egypt and Tunisia. Even Saudi Arabia, once a global exporter of ultra-conservative Islam, has curbed its religious outreach under Crown Prince Mohammed bin Salman. The war in Gaza, launched by Hamas in 2023, failed to reinvigorate political Islam. Hamas’s leadership is decimated, Gaza is devastated, and many Palestinians now see the movement as a liability, not a savior. Still, remnants of jihadism remain. Islamic State still inspires isolated attacks, but these are no longer the expression of powerful movements with geopolitical aspirations. Like the splinters of communism after its decline, they are fading comet tails, not engines of change. So, while the threat hasn’t vanished, the era of global jihad is over. Political Islam’s romantic narrative has failed the test of reality. #Jihadism#PoliticalIslam#MiddleEast#terrorism#pragmatism 📱American Оbserver - Stay up to date on all important events 🇺🇸