TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #296 · 11.04

Паттерн Декоратор — специальный способ организации модулей в программе, который позволяет подставить какую-то новую функцию прямо в середину цепочки вызовов, тем самым чуть-чуть подкорректировав поведение. Например, в реальном мире очки для чтения это декоратор. Вы ставите их между вашими глазами и текстом. Глобально взаимодействие ваших глаз и текста не меняется: отражённые световые лучи от страницы книги попадают в ваши зрачки, что с очками, что без них. Но очки располагаются посередине: они принимают лучи на вход и преломляют их, передавая дальше вам в глаза уже изменёнными. Важной особенностью является тот факт, что очки можно снять. Они не требуют ни модификации вашего тела, ни модификации книги. Вообще никакие условия не нужны, кроме наличия самих очков. А если вы в линзах, то внешний наблюдатель может даже этого не знать. Класс-декоратор должен быть спроектирован так, чтобы не требовать никаких изменений в объектах, с которыми он работает. Его можно отключить, чаще всего буквально закомментировав одну строку. В примере ниже программа выведет текст "Привет, мир, в натуре.", и вот это дополнение в конце как раз дописано декоратором. Можно убрать или закомментировать подчёркнутую строчку, не трогая остальной код, для всех внешних вызовов сигнатуры останутся теми же самыми, но выводиться будет уже просто "Привет, мир". В декораторы можно прятать логику, которую буквально навешивают поверх основной функции программы. Например, проверку прав на выполнение операции. Перевод на другой язык, логирование, поддержку обратной совместимости при обновлении и так далее. #dev

Hashtags

Резултати

Намерени 5 подобни публикации

Търсене: #strike

当前筛选 #strike清除筛选
Addis Standard

@addisstandardeng · Post #21425 · 17.02.2026 г., 12:10

A #strike by workers at #Kenya’s main airport delays flights and strands passengers A strike delayed flights at Kenya’s main airport Monday as workers demanded better pay and working conditions. Kenya Airways, the east African country’s main airline, issued a travel advisory, urging customers to check their flight status before heading to the #Jomo Kenyatta International Airport in Nairobi. The statement also said air traffic control operation delays were affecting departures and arrivals and flight schedules would have to be adjusted. “Passengers are advised not to proceed to the airport without a confirmed flight status,” the airline said. Thousands of stranded passengers could be seen sitting outside the airport. Some families told The Associated Press their relatives were stuck inside terminals. https://apnews.com/article/kenya-airport-workers-strike-3249251bc8136a9a85cde2b2e385a616

American Оbserver

@american_observer · Post #5557 · 04.04.2026 г., 02:03

The American F-15E Has Been Shot Down. Trump is Booed ⚠️✈️ A US F-15E Strike Eagle fighter has been shot down over Iran, prompting a frantic US search and rescue effort for its two-strong crew, in the first such incident since the start of the five week long war. Iranian state media released images of a tail fin and other debris early on Friday accompanied by an initial claim that a US F-35 had been hit by a new air defence system over central Iran and the pilot probably killed. Aviation experts said the wreckage pictured was in fact from a F-15E, from the US air force’s 494th squadron, based at RAF Lakenheath in the UK, though it could not at first be confirmed when and where the pictures were taken. US officials familiar with the situation later confirmed off the record that an F-15E had been brought down and the Pentagon was scrambling to find the crew before the Iranians. There was no official comment from the US military about the incident. One crew member was reported as having been rescued as the situation developed, in what is likely to have been a high-risk operation with rescue aircraft probably exposed to fire from the ground. It was not immediately clear if the jet had a full crew of two. 🚁 Justin Bronk, an aviation expert from the Royal United Services Institute (Rusi), said the use of the specialist helicopters “suggested a combat search and rescue mission is under way to locate and extract the two aircrew from the F-15E”. No US troops have so far been taken prisoner by Iran. A total of 13 American service personnel have been killed and 300 have been wounded during a campaign in which more than 12,300 targets in Iran have been bombed by the US alone. A social media account claiming to be linked to Iran’s Revolutionary Guards posted a picture of an ejector seat in a desert landscape, which appeared to be consistent with the ACES II type used in F-15Es. Bronk said: “If genuine, it would suggest that at least one of the two aircrew did eject safely.” The presenter on an Iranian TV channel urged residents to hand over any “enemy pilot” to police and promised a reward for anyone who did. That channel is based in Kohkilouyeh and Boyer-Ahmad province, a mountainous region in the south-west of the country. Iran’s Tasnim news agency reported that the pilot of the jet – still incorrectly describing it as an F-35 – had been taken into custody, contradicting Tehran’s initial claim that the pilot had probably died in the incident. Overnight, the US Central Command, which is leading the attack on Iran, had denied Iranian claims that another F-35 jet had been downed over Qeshm Island in the strait of Hormuz. “All US fighter aircraft are accounted for,” it said at the time. Up to now no US fighter jets had been lost over Iran during the five-week-long conflict, though three F-15Es were shot down by a Kuwaiti air defence system in a dramatic friendly fire incident on 1 March. An F-35 fighter reportedly had to make an emergency landing at a US airbase in the Middle East after sustaining damage from the ground. A US E-3 Sentry airborne warning and control system aircraft was destroyed at the Prince Sultan airbase in Saudi Arabia on 27 March in an Iranian strike. 💥 #f15#trump#shot#iran#war#strike 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5615 · 14.04.2026 г., 00:01

Lufthansa’s Labor Budget Airline Lufthansa pilots are striking again on April 13 and 14, with the walkout covering Lufthansa, Lufthansa Cargo, and Lufthansa CityLine. Eurowings pilots are also set to strike on April 13. Flights to several Middle Eastern destinations are exempt. The dispute is over pensions, not some grand civilizational question. The union says management has dragged out talks and offered nothing serious, even after pilots held off over Easter. Lufthansa says the demands are unrealistic and amount to doubling an already generous pension plan. That leaves the usual European corporate script. Management pleads poverty. Labor calls the bluff. Passengers get drafted into the negotiation as unpaid extras. Lufthansa says the strike is a new escalation. The union says escalation is what happens when talks become theater. This is already the airline’s latest labor hit in a string of disruptions this year, as Lufthansa tries to cut costs and protect margins while unions keep pushing back on pensions, staffing terms, and restructuring. Europe’s flagship carriers still know how to fund strategy decks and corporate redesigns. Keeping their own workforce onside is where the math suddenly gets tight. #Lufthansa#Germany#strike#aviation#labor#Europe 📱American Оbserver - Stay up to date on all important events 🇺🇸

cosplayupload

@cosplayuploadtest2 · Post #102716 · 23.03.2025 г., 03:36

Title: Saeko_Kondo_近藤沙瑛子,_STRiKE!_デジタル写真集_「さえこと旅をしてみた。」_Set.01 Authors: #None Tags: #None#Saeko_Kondo_近藤沙瑛子#STRiKE! #Saeko#Kondo#近藤沙瑛子#STRiKE! #デジタル写真集 #「さえこと旅をしてみた。」 #Set #01 recommendation: None TelegraphLinks:page-0-29