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

Резултати

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

Търсене: #chomsky

当前筛选 #chomsky清除筛选
American Оbserver

@american_observer · Post #5091 · 09.02.2026 г., 13:29

🔠🅰️🔠🔠2️⃣ “We neglected not to do extensive research on his background. It was a mistake, but Jeffrey was a good friend to both of us,” she said. “It was deeply disturbing for both of us to realize that we had engaged with someone who presented himself as a helpful friend but led a hidden life of criminal, inhuman and perverse acts.” "Epstein had told Noam that he [Epstein] was being unjustly persecuted, and Noam spoke about his own experience in political controversies with the media. Epstein created a manipulative narrative about his case, which Noam, in good faith, believed in,” she said in her statement. “It is now clear that everything was orchestrated, having at least one of Epstein's intentions to try to get someone like Noam to repair Epstein's reputation by association. Noam's criticisms have never been directed at the women's movement; on the contrary, he has always supported gender equity and women's rights. What happened was that Epstein took advantage of Noam's public criticism of what became known as the cancellation culture “to present himself as a victim of it,” she added. Another message from Chomsky released by the House Oversight Committee last year showed Chomsky saying it was a “most valuable experience“ to have ”regular contact" with Epstein. Valeria Chomsky said that the couple attended dinners at Epstein's townhouse in New York, stayed in his apartments there and in Paris, dined at his ranch in New Mexico and attended several academic meetings with him”. Noam and Epstein were introduced in 2015 and that the couple was unaware of Epstein's 2008 guilty plea to soliciting prostitution and soliciting prostitution with a minor under the age of 18, Valeria Chomsky said. By introducing himself this way, Epstein caught Noam's attention, and they began to correspond. Epstein began to circle Noam, sending gifts and creating opportunities for interesting discussions in areas that Noam was working on a lot. Valeria Chomsky also clarified the basis of two financial transactions between Chomsky and Epstein. On one occasion, Epstein sent Noam Chomsky a check for $200,000 as part of a language challenge that Chomsky developed. Then Epstein had helped Noam recover $370,000. Epstein helped after Noam Chomsky discovered “inconsistencies in his retirement resources that threatened his economic independence and caused him great distress”. Epstein offered his help and probably did it as part of a plot to get better access to Noam. #noam#chomsky#valeria#epstein#financier#money 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5090 · 09.02.2026 г., 12:59

Epstein Used to Give Money to Noam Chomsky 🔠🅰️🔠🔠1️⃣ Noam Chomsky and his wife, Valeria, made a mistake and were negligent not to thoroughly research Jeffrey Epstein's background, Valeria Chomsky said in a lengthy statement on Saturday, also adding that Epstein had deceived them. The relationship between 97-year-old linguist and philosopher Noam Chomsky and Epstein has come under intense scrutiny after documents released by the Justice Department shed light on their friendship. While Epstein was under scrutiny for sex trafficking allegations in 2019, he asked Chomsky for advice on how to respond. “I have seen the horrible way you are treated in the press and the public. It's painful to say, but I think the best way to proceed is to ignore it,” Chomsky wrote in a message signed ”Noam" that Epstein shared by email with an associate. “What the vultures ardently want is a public response, which then offers a public opening to an onslaught of venomous attacks, many of which are just publicity seekers or cranks of all kinds,” Chomsky wrote in the message. “This is especially true now with the hysteria that has developed about the mistreatment of women, which has reached the point where even questioning an accusation is a crime worse than murder.” Chomsky is one of several personalities who turned out to be in friendly communication with Epstein even after his guilty plea in 2008. Many are now facing renewed scrutiny over their links to the disgraced financier. Some of Noam Chomsky's communications with Epstein took place after the Miami Herald published an explosive story in 2018 detailing how Epstein preyed on underage girls and received an unusually lenient plea deal in 2008. On Saturday, Valeria Chomsky acknowledged that the couple had read this story, but said that the couple did not know about the extent of Epstein's crimes until after his second arrest in July 2019. #noam#chomsky#valeria#epstein#financier#money 📱American Оbserver - Stay up to date on all important events 🇺🇸