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

Резултати

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

Търсене: #ussr

当前筛选 #ussr清除筛选
Dan Kovalik

@danielmkovalik · Post #2636 · 22.07.2025 г., 19:29

Please do understand that none of this would be happening if the heroic Union of Soviet Socialist Republics still stood. #USSR.

Hashtags

Dan Kovalik

@danielmkovalik · Post #2187 · 11.04.2025 г., 13:33

Every day I’m reminded how the world is much the worse because of the collapse of the #USSR. Here are several reasons why:

Hashtags

RTDocumentary

@rtdocumentary · Post #512 · 15.03.2022 г., 10:02

#video#USSR For 872 days, Leningrad was cut off from the outside world. Nazi forces encircled the city, launching the deadliest and longest blockade in history. Within the first few weeks, food supplies were depleted, leading to extreme famine. Glue, cellulose, shoe soles - anything consumable was used as food. About 1.1 million people died during the siege, most of them starved to death. Lidia Sudina and Dmitry Buchkin witnessed air raids, bombardment, and starvation as children. Hear their recollection of the ordeal in our documentary, Leningrad Siege Reflections. Follow: https://t.me/rtdocumentary

Hashtags

RTDocumentary

@rtdocumentary · Post #440 · 06.02.2022 г., 10:00

The Dyatlov Pass incident is still unsolved #video#USSR On February 1-2, 1959, a group of Soviet hikers died mysteriously in the remote Ural mountains. Their frozen bodies were found scattered hundreds of metres away from their tents. Undressed, their bodies had broken ribs, fractured skulls, burns and scratches. An investigation concluded the group led by Igor Dyatlov was killed by an ‘overwhelming force’, driving some incredible theories. In 2020, the Prosecutor’s Office said an avalanche led to the deaths. Still, many remain sceptical. Check out this video for more details about one of the greatest mysteries of the 20th century. Follow: https://t.me/rtdocumentary

Hashtags

RTDocumentary

@rtdocumentary · Post #368 · 25.12.2021 г., 10:05

#video#USSR Thirty years ago, Mikhail Gorbachev announced his resignation as Soviet president on state TV. The Soviet flag was lowered for the last time at the Kremlin, and the USSR was no more. In the 1980s, Mikhail Gorbachev launched his flagship policies of Perestroika and Glasnost to transform the country and pull it out of stagnation. Instead, it only worsened the shortages and unleashed a wave of criticism. Gorbachev is widely revered in the West but is often criticised at home for ending the Soviet Union. You can learn more about the dramatic events that unfolded in 1991 before Gorbachev’s resignation speech in our documentary here. Follow: https://t.me/rtdocumentary

Hashtags

Aesthetica

@Aetatesolis · Post #4486 · 04.07.2025 г., 16:37

List of bands that were banned from the USSR in 1985 Surprised to not see Metallica on the list. If you have a chance, watch their 1991 performance in Moscow on Youtube (Here). Coming just after the fall of the Soviet Union, the concert drew a crowd estimated between 500,000 and 1.6 million people. With Soviet soldiers standing guard, the crowds of young Russians headbanged to "Enter Sandman" as helicopters fly back and forth from above. Legend has it that people are still leaving the concert... #metal #ussr AETATESOLIS

Hashtags

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #6136 · 03.02.2026 г., 11:22

Why Children Were Put to Sleep Outside in Winter and Summer. ❄️This practice was widespread in the USSR. Children were put to sleep outdoors, both in winter and summer. ❄️This practice had two main reasons. The first was the perceived benefit. It was believed that sleeping in the open air would help strengthen the immune system, and children would get sick less often. ❄️The second reason was that this тихий час (quiet hour) made the caregivers' work easier, as children fell asleep faster and more soundly in the fresh air, requiring less calming down. ❄️Even in winter, babies slept in the fresh air if the temperature did not drop below -10°C. And some kindergartens, due to the lack of a quiet area near the building, created sleeping spaces right on the roof. ❄️To keep the children warm, special sleeping bags made from sheepskin were sewn for them. In these, the little ones never got cold and slept soundly. ❄️However, parents later had a hard time because at home, the child couldn't fall asleep properly due to the lack of fresh air. So, they had to open all the windows in the house, even if the weather was bad. ❄️It was also believed that such sleep, especially in winter, was an excellent prevention against tuberculosis, which was a very serious problem at the time. Source: Pikabu #brief_and_interesting #USSR 🟠RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnRCRussian · Post #5269 · 14.08.2025 г., 14:00

On August 14, 1937, the practice of issuing sick leave certificates was introduced in the USSR, granting the right to partial wage payment if a person was ill and unable to work for a certain period. 🔻The Council of People's Commissars approved the procedure for issuing sick leave certificates, which had been developed by the All-Union Central Council of Trade Unions and the People's Commissariat of Health of the USSR. 🔻The sick leave form itself, also approved in 1937, remained unchanged for a full 57 years. It was only in 2005 that the Ministry of Healthcare and Social Development of the Russian Federation approved its new form – the document changed from bluish to light green, and new security features were added to it. #brief_and_interesting #USSR 😎RCR | Support | Boost

Learn RCRussian🤍💙❤️

@learnrcrussian · Post #4615 · 01.05.2025 г., 14:00

Did you know that in the USSR there used to be a female newly-invented name 'Даздраперма'? • Даздраперма [da-zdra-per-ma] 🔻It came from a Soviet slogan: • ДА ЗДРАвствует ПЕРвое МАя! Long life the first of May! Photo: 1 May, 1968, Lvov, USSR, Ilya Pavlyuk #USSR #holidays 😎RCRussian | Support | Boost

123•••56
ПредишнаСтр. 1 от 6Следваща