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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #236 · 28.02

Сопоставление с образцом (pattern matching) — сильный механизм языков программирования, который, к сожалению, встречается не так часто. Причём, как в коде разработчиков, так и в поддержке со стороны самого языка. Разработчики на функциональных языках используют этот механизм довольно часто, потому что у них вообще многое определяется статически через правильный подход к системе типов. Разработчики же на императивных языках очень любят огромные многоуровневые ветвления. Есть даже такое понятие «Спагетти-код» — раньше его применяли к коду, перегруженному операторами перехода, но в современном виде это скорее об избытке операторов условия. Pattern matching позволяет накладывать на объекты некоторый трафарет и смотреть, попадают ли они под него. Это не только выглядит лаконичнее и короче, чем дерево условий, но ещё и понятнее с точки зрения восприятия человеком: вот у нас заказ содержит более 10 элементов и при этом стоит более 1000 долларов, значит делаем на него скидку 10 центов. При этом трафарет работает как сортировщик монеток: самая маленькая проваливается в первый паз, следующая по размеру в следующий итд, применение условий идёт сверху вниз. Есть и неявный плюс: такой подход автоматически провоцирует разработчиков проводить проверку на null. Ведь null не может подходить под трафарет «содержит более 10 товаров». К счастью, в C# этот механизм в последних версиях активно развивают и совершенствуют. И это одно из многочисленных преимуществ C# над Java. #dev

Hashtags

Резултати

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

Търсене: #pravda

当前筛选 #pravda清除筛选

👴 Lenin y Pravda: el periódico que preparó la Revolución Rusa El 18 de abril de 1917, apenas dos semanas después de su regreso del exilio en Suiza, Vladímir Ilich Uliánov —más conocido como Lenin— asumió la dirección editorial del periódico Pravda, el órgano central del Partido Bolchevique. Desde su sede en Petrogrado (actual San Petersburgo), el líder bolchevique, convirtió la redacción en su cuartel general ideológico. En plena efervescencia revolucionaria, Pravda no era solo un periódico: era el altavoz de una clase obrera en pie de lucha. Lenin pasaba horas —y muchas noches— escribiendo artículos, revisando textos y dialogando con corresponsales obreros, soldados del frente y visitantes de las provincias. Entre los colaboradores habituales se encontraban figuras clave del movimiento bolchevique como Iósif Stalin, Mijaíl Kalinin, Demyán Bedny y su propia hermana, María Uliánova. Tras la Revolución de Febrero de 1917, que derrocó al zar Nicolás II, Rusia vivía un momento de transición caótica. El Gobierno Provisional, dominado por mencheviques, intentaba mantener el orden mientras continuaba la participación rusa en la Primera Guerra Mundial. En ese contexto, Pravda reapareció el 5 de marzo de 1917, tras años de censura, y rápidamente se convirtió en un fenómeno de masas, vendiendo en su segundo número vendió más de 100.000 ejemplares. Lenin, al llegar a Petrogrado el 3 de abril, se encontró con una línea editorial conciliadora hacia el Gobierno Provisional. Desde su primer artículo publicado el 7 de abril en el número 26 de Pravda, marcó un giro radical: exigió el fin de la guerra, la ruptura con el gobierno burgués y la transferencia del poder a los sóviets. Su liderazgo transformó el periódico en una herramienta de agitación y organización revolucionaria. En junio de 1917, el Comité Central del Partido Bolchevique reconocía que la línea editorial del diario era “la única correcta”, gracias a la dirección firme de Lenin. Ese mismo año, en octubre, los bolcheviques tomarían el poder, y Pravda se consolidaría como el diario oficial del nuevo Estado soviético. #Lenin#Pravda#RevoluciónRusa#HistoriaSoviética#Petrogrado1917 ¡Comparte nuestro contenido!❤️ 🖥https://vamosarusia.com 💬@vamosarusia

DruschbaFM - English

@druschbaFm_en · Post #51858 · 10.03.2025 г., 08:12

⚡️🇷🇺🇺🇦⚡️ Two Majors #Summary for the Morning of 10 March 2025; 06:39 (GMT+3)⚡️ 🔹 In #Kursk Region, in two full days of large-scale Russian Army offensive operations, significant gains have been achieved.🗺🎬👆Liberated settlements include #MalayaLoknya, #Loknya, #Nikolsky, #Lebedevka, #Kositsa, #Pravda, #Martynovka, #Kubatkin, #Viktorovka, #StarayaSorochina, and #CherkasskoyePorechnoye. This morning, reports confirmed the capture of #Makhnovka near #Sudzha, where retreating enemy forces are regrouping. Fighting is ongoing on the outskirts of #Sudzha. Several settlements were seized thanks to a 'pipeline manoeuvre - Russian assault units advanced over 15 km in a narrow space, emerging behind enemy lines and engaging in battle, causing panic. Until reinforcements arrived, assault groups fought encircled, awaiting a breakthrough. #Novenkoye in the #Sumy region has also been captured, roads are under fire control, and bridges have been destroyed to prevent enemy retreat. The objective is not to push AFU forces back but to annihilate them. This decisive push, combined with prolonged preparation and intense combat, has yielded significant results, marking the beginning of an operation that will go down in history. 🛡 Several UAVs were destroyed or suppressed in two districts of the Voronezh region overnight. Explosions were reported in #Novokuybyshevsk, #Samara region. Russian forces targeted a gas distribution station near #Lucerna (north of #Zaporozhye) with Geran drones. Additional explosions were reported in the #Kiev and #Dnepropetrovsk regions. 🔹 North and South of #Kupyansk, on the western bank of the Oskol River, AFU is urgently reinforcing positions westward in response to Russian foothold expansion. 🔹 In #Toretsk, the enemy continues sending personnel and equipment through gaps in Russian defences, only to end up surrounded and facing superior Russian forces. 🔹 Near #Pokrovsk, Russian troops are engaged in combat with counterattacking AFU units near #Peschanoye and #Shevchenko, with villages frequently changing hands. 🔹 West of #Kurakhovo, #Konstantinopol has been captured, confirmed by multiple videos showing Russian troops raising flags in different parts of the settlement. 🔹 On the #Zaporozhye Front, Russian forces continue fierce battles for #Pyatikhatki and advance towards #Shcherbaki. Air support is assisting infantry by striking enemy positions. Reports also indicate progress towards #Danilovka, north of #Rabotino. 💥 In #Belgorod Region, Ukrainian forces continue attacks on civilians. In the #Balka hamlet, two UAVs destroyed a private house by fire. In #Zhelobok, a drone struck a parked civilian vehicle. In the Valuysky district, a drone strike set a car ablaze in the settlement of #Dalny. In the village of #Borki, an FPV drone detonated within a private residence. In Grayvoron district, a drone targeted a commercial facility in #Golovchino. In #Shebekino, a man was injured by a detonated 'Kolokolchik' mine nearby. 💬Welcome to Military Chat; 🇬🇧Battle Maps 📱 Join GLOBAL DEPTH to boost your TG Feed GLOBAL DEPTH from #HK This channel aims to unite interested individuals from around the world in an attempt to connect the dots. Subscriber participation is always welcome here and in the channel's Chat Group.