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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #721 · 26.12

Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #dev

Hashtags

Резултати

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

Търсене: #member

当前筛选 #member清除筛选
StartupBase

@startupbaseuz · Post #4996 · 14.11.2024 г., 13:27

#member 👍“BILLZ”, IT Park Uzbekistan rezidenti hamda Markaziy Osiyoda kichik va oʻrta biznes uchun chakana savdo va moliyaviy xizmatlarni avtomatlashtirish sohasidagi yetakchi startap, mashhur investor va tadbirkor Evren Uchokdan strategik sarmoya oldi. Uning ishtiroki “BILLZ”ning oʻsishini tezlashtirishda muhim omil boʻlib, kompaniyaning texnologik bazasini kengaytirish va mustahkamlashga yordam beradi. 🕸 Batafsil veb-saytimizda ________ 👍 BILLZ, a member of IT Park Uzbekistan and a prominent startup specializing in automation solutions for retail and financial services targeting small and medium-sized enterprises in Central Asia, has secured a strategic investment from distinguished investor and entrepreneur Evren Ucok. His involvement is expected to be instrumental in accelerating BILLZ’s growth, providing vital support in expanding and advancing the company’s technological infrastructure. 🕸 Read more on the website Telegram | Instagram | Facebook | Youtube | LinkedIn

Hashtags

Why so serious?😐

@whysoserioushmmm · Post #2881 · 30.01.2020 г., 14:32

My wish : I want to ask three question to God of Death, "There's thousand of people in this world who are cruel, did severe crimes, killed other peoples but they all are alive. My dad who never did anything wrong are taken away from me. 1) Is Bhagwat Gita shlok regarding Karma and Life is wrong.? 2) Do Lord don't do calculation who is doing good and who's doing bad.? 3) Don't they have heart to understand the need and love of father in a person's life.? #member @whysoserioushmmm

Hashtags

American Оbserver

@american_observer · Post #5569 · 05.04.2026 г., 14:59

🔤🔤🔤🔤2️⃣ Uncrewed Reaper drones were used to protect the air man once he had been located, by “striking Iranian military-aged males believed to be a threat who got within three kilometers” according to a correspondent with the US Air & Space Forces Magazine, who said he had been briefed on the operation. Military pilots said the missing F-15 crew member would have been trying to hide for as long as possible from the Iranian military. If possible, the colonel would have tried to transmit their location relative to a known secret point in the hope that US special forces coming in via helicopter would be able to rescue them. It was not clear exactly how the F-15 was downed, although Iran said it had shot it down. The US military did not publicly comment. Trump said on Friday that the episode would not affect efforts to negotiate a peace settlement with Iran. Iranian media released pictures of the wreckage of a plane, including a distinctive F-15 tail fin, and a used ejector seat on Friday, with state media and businesses in the country offering a bounty if the missing crew member could be captured. It also emerged that a Pave Hawk helicopter was hit by fire from the ground during the rescue of the pilot on Friday, but was able to fly away. Another combat plane, an A-10 Warthog attack aircraft, crashed near the strait of Hormuz with Iran claiming it had shot it down. Its pilot was rescued. The loss of the F-15 and other aircraft had come as a relative surprise, given the air superiority the US and Israel have established over Iran from the beginning of the five-week-long war. But it demonstrated that after thousands of bombing missions, Iran still has the capacity to inflict high-profile damage on the US. Trump said the US would never leave an American warfighter behind, committing the country’s military to similar rescue efforts if any more planes are brought down. Meanwhile, heavy bombing of Iran continued. Israel attacked several facilities at Mahshahr, a petrochemical complex in Khuzestan province, on Saturday, and on Sunday Iranian officials said that production there had been shut down. A building close to Iran’s civil Bushehr nuclear power plant was struck on Saturday morning, killing a guard, Iran said. Later, the IAEA atomic energy watchdog said it had been informed by Iran of the incident, the fourth in recent weeks, and added “no increase in radiation levels was reported”. Israel also attacked Lebanon, having issued a warning that people should evacuate at least 300 metres away from a building in southern Beirut that it said was affiliated with Hezbollah. Seven people were recorded as killed in a strike on Kfar Hatta, 30 miles north of the border with Israel. A fire broke out at the Borouge petrochemical plant in the UAE after falling debris from a missile interception caused a blaze, prompting operations at the facility to be suspended. A fire was extinguished at a storage tank belonging to Bahrain’s state energy company, the company said on Sunday. #member#F15E#rescued#hezbollah#liban 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5568 · 05.04.2026 г., 13:59

The US Commandos Rescued the Second Crew Member of a F-15E fighter 🔤🔤🔤🔤1️⃣ The second crew member of a downed F-15E fighter jet has been rescued by US commandos overnight, ending a dramatic two-day search after the warplane crashed in south-west Iran. The crew member, a colonel and weapons systems officer, had sustained some injuries but was successfully extracted by US special forces, Donald Trump said in a social media post soon after midnight EST. The US president called the operation to recover the air man “one of most daring search and rescue operations in U.S history” – and claimed that not a “single American” had been killed or wounded in the operation. “At my direction, the U.S. Military sent dozens of aircraft, armed with the most lethal weapons in the World, to retrieve him. He sustained injuries, but he will be just fine,” Trump wrote on his Truth Social site. Initial reports indicated that once located hiding in the mountains, the colonel was rescued by a special forces team under a hail of heavy covering fire. Three Iranian Revolutionary Guards were killed, according to Iranian sources. Iran’s military said on Sunday that it had destroyed three US aircraft involved in the search operation and that the Americans had used an abandoned airport in southern Isfahan as a base. State media shared images of charred wreckage scattered across a desert area, with smoke still emanating from the site. At least one $115m Hercules had to be destroyed in Iran because it had run into difficulties, having become bogged down in the ground, according to US media. Extra transport planes had to be flown in to complete the extraction. Mohammad Bagher Ghalibaf, the speaker of the Iranian parliament, highlighted the cost of the lost aircraft with an apparent photograph of the wreckage: “If the United States gets three more victories like this, it will be utterly ruined.” Footage emerged of what was said to be night-time clashes in Iran’s Kohgiluyeh and Boyer-Ahmad province, near the city of Dehdasht, about 30 miles from the coast in the south-west of the country, the area where US searches had been taking place. The pilot of the aircraft had been rescued on Friday, after the F-15E Strike Eagle became the first US plane to be downed over Iran during the five-week-long war, but the second member of the crew could not be located immediately. The US air force had launched a massive search and rescue effort, using low-flying Pave Hawk helicopters and specialist C-130 Hercules transport planes. #member#F15E#rescued#hezbollah#liban 📱American Оbserver - Stay up to date on all important events 🇺🇸

BotsGram®

@botsgram_cu · Post #3209 · 29.11.2020 г., 16:21

@BanWarnBot Qué puede hacer este bot? Este bot realiza un seguimiento de la frecuencia con la que advirtió a alguien y pateará / prohibirá después de un límite establecido. Idioma: Inglés (visto en @BotsGram_cu) #ban, #warn, #group, #track, #kick, #member, #helper

BotsGram®

@botsgram_cu · Post #3236 · 04.12.2020 г., 12:04

@TopSupergroupsBot Qué puede hacer este bot? Este bot hace estadísticas y tablas de clasificación sobre supergrous público y sus usuarios, incluye una lista internacional de supergrupos públicos generando estadísticas interesantes Idioma: Inglés (visto en @BotsGram_cu) #group, #chat, #chart, #top, #member, #message, #activity, #statistics, #stats, #info

BotsGram®

@botsgram_cu · Post #3290 · 15.12.2020 г., 11:47

@RulesRulesBot Qué puede hacer este bot? Este bot saludará a los nuevos miembros con un mensaje de bienvenida, y también puede especificar un texto de reglas. Idioma: Inglés (visto en @BotsGram_cu) #rules, #welcome, #start, #group, #member, #new, #join, #enter, #message, #user

BotsGram®

@botsgram_cu · Post #3367 · 07.01.2021 г., 08:02

@Axenia_Bot Qué puede hacer este bot? Este bot puede contar los puntos de karma en grupos. Escriba '+' para subir o '-' para reducir puntos al usuario que responde. Idioma: Inglés, Ruso, Ucraniano, Uzbeco, Turco (visto en @BotsGram_cu) #karma, #ranking, #points, #toplist, #stats, #statistic, #inline, #levelup, #group, #top, #analytic, #statistics, #statistics, #member, #member, #groups, #activity