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

Резултати

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

Търсене: #changes

当前筛选 #changes清除筛选
探索号

@seeker_rc · Post #19911 · 07.05.2026 г., 16:55

Fix: Unable to make changes as organizer of Family Sharing Learn what to do if you are unable to make important changes to Screen Time, subscriptions, and other settings for family members. via iDB - Mac 标签: #make#changes#Fix ⚡️探索号频道 ⚡️探索者频道 ⚡️探索者交流群 ⚡️ Youtube 频道:科技探索者 每天推荐有趣内容,欢迎订阅、转发。

American Оbserver

@american_observer · Post #5127 · 13.02.2026 г., 19:59

Bangladesh Could Find Itself Heading for Huge Changes The Bangladesh Nationalist party (BNP) led by Tarique Rahman has claimed a sweeping victory in the country’s first election since a gen-Z uprising toppled the autocratic regime of Sheikh Hasina. By Friday morning, results had shown a clear win for the BNP, returning them to power after 20 years. The vote had been seen as the first free and fair election held in Bangladesh for almost two decades and came after a period of significant political upheaval in the country. This victory was expected,” said Salahuddin Ahmed, a leading BNP committee member. “It is not surprising that the people of Bangladesh have placed their trust in a party … capable of realising the dreams that our youth envisioned during the uprising.” Ahmed acknowledged a difficult task lay ahead for the new BNP government, which has pledged a new era of democracy and zero tolerance towards corruption. “This is not a time for celebration, as we will face mounting challenges in building a country free from discrimination,” he said. By about midday local time, the BNP had won 208 seats while their rival, the Islamist party Jamaat-e-Islami, had claimed 69 seats. India was among the first countries to congratulate the BNP. Relations between the two neighbours had plummeted since the fall of Hasina and the message from Indian prime minister, congratulating the BNP on their “decisive” win, was seen to extend an olive branch to the new government. “India will continue to stand in support of a democratic, progressive and inclusive Bangladesh,” said Modi, adding that he was looking forward to working with Rahman. Rahman, who returned to Bangladesh in December after 17 years of exile in London, is now poised to become the country’s next prime minister. He comes from one of the country’s most powerful political dynasties; the son of former prime minister Khaleda Zia and former president Ziaur Rahman, who was assassinated in 1981. The election was the first truly competitive vote in years. As documented for years by human rights groups and the UN, Hasina’s regime routinely suppressed dissent of its critics and political opponents, thousands who were disappeared, tortured and killed in secret jails. Many emerged only after Hasina was toppled. The past three elections under Hasina were marred by widespread allegations of vote-rigging. The student-led uprising that toppled Hasina’s 15-year regime in August 2024 had been prompted by mounting anger over widespread corruption, human rights abuses and an economic slump. The uprising, and Hasina’s brutal crackdown on anti-government protesters, left an estimated 1,400 people dead, according to the UN. For the past 18 months, the country has been run by an interim government under Bangladesh’s only Nobel laureate Muhammad Yunus, who was tasked with readying the country for free and fair elections. Speaking after casting his vote in Dhaka, Yunus said that the country had “ended the nightmare and begun a new dream.” #bangladesh#changes#hasina#corruption#rahman 📱American Оbserver - Stay up to date on all important events 🇺🇸

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 622.4 as of 18.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 689.2 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 616.4 as of 11.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 690.1 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 630 and the aggregate volume of shares issues totaled UZS 165 616.2 as of 04.11.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 690.3 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 165 616.2 as of 28.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 687.6 billion, i.e. 80.7 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 689.5 as of 21.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 687.6 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 619.5 as of 14.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 677.9 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 609.8 as of 07.10.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 677.9 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 597.6 as of 30.09.2022. The aggregate volume of state owned share in 225 JSCs totaled UZS 133 665.7 billion, i.e. 81.2 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 164 397.9 as of 23.09.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 133 348.9 billion, i.e. 81.1 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

DEPO - #STATISTICS CHANGES IN STRUCTURE OF SHAREHOLDERS The number of JSCs totaled 631 and the aggregate volume of shares issues totaled UZS 163 200.5 as of 16.09.2022. The aggregate volume of state owned share in 226 JSCs totaled UZS 132 889.5 billion, i.e. 81.4 %. #structure#shareholders#share#infographics#statistics#changes deponet.uz|Tg|Fb|Inst|Youtube

12
ПредишнаСтр. 1 от 2Следваща