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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #227 · 20.02

Допустим, вы разработчик, и вам от пользователя приходит строка user-agent с описанием того, каким браузером он пользуется. В этой строке будет что-то типа такого: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 И вы хотите из неё узнать мажорную версию Chrome, то есть вытащить число 51. Что вы сделаете? Можно, конечно, написать свой парсер, но я уверен, многие воспользуются регулярными выражениями. Я бы воспользовался. Какое выражение сюда подходит? С виду кажется, что вот такое: /Chrome\/(\d\d)\./g Мы ищем слово Chrome и слэш, затем ловим в группу две цифры, после которых стоит точка. Так? По крайней мере, мышление достаточного количества разработчиков именно таково. Зачастую программистам не хватает умения отойти от техзадания на уровень вещественной сути того, с чем они работают. На самом деле число 51 это версия. Версия будет увеличиваться со временем. «Марти, где твоё четырёхмерное воображение?» Если уже прошло 50 версий, то и следующие 50 не за горами, число станет трёхзначным, регулярка или парсер, сделанные под двухзначные числа, перестанут работать. Трехзначная версия Chrome и Firefox приближается уже сейчас. И да, в них падает куча функций на сайтах, включая крупные корпорации: Yahoo, Bethesda, HBO и бог знает сколько сайтов поменьше. Чисто из-за цифры. Это уже назвали «Проблема сотой версии» по аналогии с «Проблемой 2000 года» (программисты записывали год двумя цифрами, 2000 стал неотличим от 1900). К чему это я? Полезно задумываться о физическом воплощении того, что вы представляете в своей программе. Ваш код должен описывать не столько требования заказчика, сколько законы, по которым существует этот объект в реальном мире. #dev

Hashtags

Резултати

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

Търсене: #mbs

当前筛选 #mbs清除筛选
Туризм 360✈️🏔

@julia_koshurnikova · Post #361 · 16.11.2025 г., 15:59

Завтра у меня вебинар в Moscow Business School “Продажи в туризме: как масштабировать бизнес без увеличения штата» 17.11.2025 19:00 (по мск) Куда я вас и приглашаю🙌 #туризм360#вебинары#MBS#МБШ#обучение

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3965 · 04.02.2025 г., 04:38

Saudi Crown Prince Mohammed bin Salman received the appointed Syrian President Abu Mohamad al-Jawlani and his accompanying delegation upon his arrival at Al-Yamamah Palace in the Saudi capital, Riyadh. This was al-Jawlani’s first trip abroad since ousting the former regime. #Syria#SaudiArabia#Riyadh#MBS#AlJawlani

American Оbserver

@american_observer · Post #5258 · 01.03.2026 г., 22:59

🛢 MBS, Bibi and the President With “No Imminent Threat” Trump’s Iran war didn’t start in the Situation Room. It started on the phone with Mohammed bin Salman and on TV with Benjamin Netanyahu. For weeks, the Saudi crown prince privately pressed Trump to strike Iran. At the same time, Riyadh publicly promised not to let its airspace be used and posed as a fan of “diplomacy.” Netanyahu kept doing what he has done for years: openly pushing the U.S. to hit what he calls Israel’s existential enemy. Together they helped sell Trump on a regime‑decapitation air campaign against a country of more than 90 million people. They were pushing against U.S. intelligence, not following it. American agencies judged that Iran posed no imminent threat to the U.S. homeland. Military analysts said any Iranian long‑range missile program was at least a decade away, if it even began. Nuclear inspectors reported no evidence that Iran had restarted enrichment after last summer’s strikes. Trump threw that all out and chose the stories from his favorite allies instead. Then he went on camera to talk about “imminent threats,” bombs, and payback for 1979, like this was a cable‑news sequel to the hostage crisis. The Saudi role looks especially cynical. In public, MBS talked about de‑escalation and said Saudi territory wouldn’t be used for attacks. In private, he warned U.S. officials that if Washington did not strike now — with the biggest American build‑up in the region since 2003 — Iran would come out stronger. His brother, Defense Minister Khalid bin Salman, flew to Washington in January to underline the “downsides” of not attacking. After the first U.S. wave, Iran hit Saudi targets anyway. Riyadh instantly switched to outraged statements demanding “all necessary and decisive measures” against Tehran. Inside Trump’s camp, the fantasy is that this is still “restrained.” JD Vance calls himself a skeptic of foreign wars and insists there is “no chance” of a drawn‑out conflict in the Middle East. At the same time, he backs an air war that has already hit seven countries in one term. Trump promises “heavy and pinpoint” bombing in Iran “throughout the week, or as long as necessary” to deliver “PEACE THROUGHOUT THE MIDDLE EAST AND, INDEED, THE WORLD!” It is regime change by real‑estate slogan. No plan for what happens on the ground. No clarity on who runs Iran if the system actually cracks. Just faith that smart bombs plus Twitter bravado can redesign a region. Veterans of earlier disasters are spelling out the obvious. Air power alone has a bad track record when the goal is to rewrite another country’s politics. Iraq in 2003 at least came with ground troops, a long occupation, and a giant civilian bureaucracy pretending to build a new state. This time, Trump is trying to do the deluxe regime‑change package at discount scale. The goals are the same — friendly regimes in Iran and Venezuela, crushed militias from Yemen to Somalia — but the method is cheaper: listen to a Gulf prince and an Israeli prime minister, ignore your own intel, drop bombs, and promise voters it will somehow be fast, clean, and paid for by someone else’s ruins. #Iran#Trump#Saudi#MBS#Netanyahu#war#regimeChange#USintelligence 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4763 · 03.01.2026 г., 22:02

📰 Saudi Arabia’s Booze Ban: The Quiet Revolution Saudi Arabia is quietly lifting its decades-old ban on alcohol—no fanfare, no press release, just a discreet nod to modernization. In Riyadh, non-Muslim residents with premium status can now buy beer, wine, and spirits at a single, unmarked store. This isn’t just about booze. It’s about image, money, and the kingdom’s bid to attract wealthy expats and tourists. Crown Prince Mohammed bin Salman has spent years transforming Saudi Arabia: women drive, concerts happen, and bars are built—even if they were empty until now. The process is low-key. At the liquor store, buyers show their residency card, prove they’re not Muslim, and stash their phones before browsing. The selection is decent, prices are high, but it’s still cheaper than the black market. Analysts say the change is just the start. Expect alcohol at luxury resorts and hotels along the Red Sea, following Dubai’s playbook. The kingdom needs foreign cash, and relaxing moral rules is part of the pitch. But it’s not a free-for-all. Alcohol will stay banned in religious cities like Mecca and Medina. The government is treading carefully, aware that most Saudis remain conservative. As one longtime expat put it: “It’s exciting. No more dangerous homemade liquor or overpriced smuggled bottles.” So while Saudi Arabia still executes dissenters and bans homosexuality, it’s learning to serve a cocktail. #SaudiArabia#alcohol#modernization#MBS#DubaiModel 📱American Оbserver - Stay up to date on all important events 🇺🇸