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

Резултати

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

Търсене: #vietnam

当前筛选 #vietnam清除筛选
Partido Comunista de Cuba

@PartidoComunistadeCuba · Post #10735 · 26.08.2025 г., 13:09

Miguel Díaz-Canel Bermúdez (@DiazCanelB) en X Celebramos en acto político el 80 aniversario de la Revolución de Agosto y el Día Nacional de #Vietnam. Rendimos tributo al sacrificio, coraje y unidad del hermano pueblo vietnamita que, bajo la conducción del PCV y el liderazgo de Ho Chi Minh, derribó el yugo colonial y feudal.

Hashtags

Partido Comunista de Cuba

@PartidoComunistadeCuba · Post #10248 · 14.05.2025 г., 12:24

"El pueblo cubano está sumamente consciente del extraordinario papel que ha desempeñado el pueblo de #Vietnam en el seno del movimiento revolucionario mundial y en la lucha de liberación de los pueblos" Fidel Hoy, en La Habana, se debatirá sobre la visón de Revolución de Fidel Castro Ruz y Ho Chi Minh https://www.facebook.com/share/p/16VmXZT4GW/

Hashtags

Partido Comunista de Cuba

@PartidoComunistadeCuba · Post #10244 · 13.05.2025 г., 20:31

Dr. Roberto Morales Ojeda (DrRobertoMOjeda) en X Junto a Nguyen Xuan Thang, miembro del Buró Político del Partido Comunista de #Vietnam, presidente del Consejo Teórico Central y Director de la Academia Nacional Política Ho Chi Minh, concluimos en la sede del Comité Central, el VI Seminario Teórico entre el PCC y el PCV. https://x.com/DrRobertoMOjeda/status/1922381861839421536

Hashtags

Partido Comunista de Cuba

@PartidoComunistadeCuba · Post #10243 · 13.05.2025 г., 20:25

Roberto Morales Ojeda en Facebook Realizamos hoy el VI Seminario Teórico entre el Partido Comunista de Cuba y el Partido Comunista de #Vietnam. Un espacio fundamental para fortalecer nuestros lazos históricos y compartir experiencias en la construcción del Socialismo. https://www.facebook.com/share/p/16ULvTA3UT/

Hashtags

ASIANOMICS

@asianomics · Post #5927 · 12.04.2026 г., 17:12

🇻🇳Vietnam Invites Pope Leo XIV for Historic Visit Vietnam's National Assembly chairman Tran Thanh Man presented Pope Leo XIV with an official invitation from Communist Party General Secretary and President To Lam on April 11. Pope Leo XIV expressed his wish to visit the country in the near future and said he hoped to further deepen bilateral ties. Hanoi and the Vatican have had no official diplomatic relations since the end of the Vietnam War in 1975. A joint working group has met since 2009 to work toward restoring ties, and in 2023 the two sides agreed to establish a resident papal representative in Vietnam. Vietnam has approximately six million Catholics, comprising around six per cent of the population. Human rights groups have accused the Vietnamese government of restricting religious freedoms. #Vietnam @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5918 · 11.04.2026 г., 18:04

🇻🇳Vietnam Elects Technocrat Le Minh Hung PM Vietnam's National Assembly elected Le Minh Hung as prime minister on Tuesday, making him the country's youngest person to hold the office since 1955. Hung, born in 1970, built his career in financial technocracy rather than provincial politics, serving as central bank governor from 2016 to late 2020, where he helped stabilise macroeconomic foundations and expand foreign reserves. Hung enters office with thinner political networks than his predecessor Pham Minh Chinh, having never held a provincial leadership role. His tenure at the State Bank also coincided with the Van Thinh Phat fraud case, one of Vietnam's largest financial scandals, which drew scrutiny over supervisory oversight during his governorship. Hung will operate under General Secretary To Lam, who has consolidated authority over personnel, security, and economic strategy to a degree not seen in the post-Doi Moi era. External pressures include ongoing tariff negotiations with the United States, energy supply shortfalls compounded by Middle East conflict, and intensifying pressure from both Washington and Beijing for more explicit strategic alignment. #Vietnam @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5875 · 07.04.2026 г., 15:02

🇻🇳Vietnam Parliament Elects New Prime Minister Vietnam's parliament lawmakers elected Le Minh Hung as the country's new prime minister on Tuesday. Hung previously served as governor of Vietnam's central bank. The vote was confirmed by a parliament official following the Tuesday session. Hung's term as prime minister is set to run for five years. The appointment places a figure with a central banking background at the head of Vietnam's government. #Vietnam @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5744 · 22.03.2026 г., 12:02

🇻🇳Vietnam's Communist Party wins 97% assembly seats Vietnam's Communist Party secured 482 of 500 seats in the national assembly, according to results released by Parliament on March 22. The total represented nearly 97 per cent of seats, broadly matching the party's share in the outgoing legislature. Reported turnout exceeded 99 per cent, consistent with previous cycles. The unicameral assembly holds limited authority to challenge party decisions on personnel or policy, though it has at times amended proposed legislation. Its first session of the new term is scheduled to open on April 6, when lawmakers are expected to confirm new state leaders nominated by the party. General Secretary To Lam, confirmed in that role at the party's January congress, is widely expected to be named president as well. That dual role would align Vietnam's leadership structure with that of China, where Xi Jinping concurrently serves as general secretary and president. #Vietnam @asianomics

Hashtags

🇻🇳#VietnamЛенин теперь и во Вьетнаме⚠️☝️ 💬 Статуя Ленина высотой 3.6 метра и весом 4.5 тонн была торжественно установлена в городе Винь, провинция Нге Ан. Статуя установлена на 154-ю годовщину со дня рождения Владимира Ильича Ленина и увековечивает дружеские отношения Вьетнама и России.

Hashtags

ASIANOMICS

@asianomics · Post #5544 · 23.01.2026 г., 10:19

🇻🇳 Vietnam Communist Party confirms To Lam as leader for next 5 years Vietnam's top leader To Lam was confirmed on Friday as head of the ruling Communist Party for the next five years. No official announcement has yet been made after a meeting of the 180 members of the central committee, elected on Thursday, who were expected to appoint on Friday the general secretary, the country's most powerful job, which incumbent Lam has bid to retain. Lam has been party chief since mid-2024 when he replaced the late general secretary Nguyen Phu Trong. #Vietnam @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5531 · 20.01.2026 г., 13:39

🇻🇳Vietnam’s To Lam pledges growth above 10% despite global challenges Vietnam’s top leader To Lam on Jan 20 pledged an annual economic growth of more than 10% for the remainder of the decade despite global disruptions, as he addressed delegates at the Communist Party congress that will decide his political future. The week-long event, which convenes every five years and started on Jan 19 in Hanoi, will select the party chief, the most powerful position in the single-party country, and set economic goals up to 2030. Lam, a former head of state security, is seeking to retain his role as party chief and possibly take on the state presidency. #Vietnam @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5487 · 22.12.2025 г., 08:39

🇻🇳Vietnam's top leadership talks heat up as Communist Party meets Senior officials of Vietnam's ruling Communist Party began a two-day meeting that is set to select candidates for the country's leadership positions for the next five years. The gathering precedes the five-yearly party congress, scheduled on January 19-25, which will formally nominate leaders and set key policy and economic targets for the remainder of the decade. Party chief To Lam opened the meeting saying the plenum of the party's central committee is tasked with finalising the selection of state and party leaders, according to his speech published on the government portal. Lam is seeking a second term as party chief, the country's most powerful job which he assumed in August last year after his predecessor Nguyen Phu Trong died. #Vietnam @asianomics

Hashtags

123•••10•••1213
ПредишнаСтр. 1 от 13Следваща