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

Резултати

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

Търсене: #judge

当前筛选 #judge清除筛选

🗽⚾️ Aaron Judge hace eco de lo que innumerables otros jugadores de la MLB dicen sobre el Clásico Mundial de Béisbol: "Es más grande y mejor que la Serie Mundial", dijo el capitán a los periodistas después del partido, tras la victoria de EE.UU. sobre la República Dominicana para llegar a la final. "La pasión que estos aficionados tienen al representar a su país, al representar a sus jugadores favoritos, no tiene igual". #️⃣#WBC26#Judge 🗞 | t.me/MLB_Daily

Hashtags

Trump's Ear

@trumpsear_tg · Post #2305 · 26.03.2026 г., 16:01

Meta and YouTube have been found liable for deliberately designing addictive products that hooked a young user and led to her being harmed, a jury ruled on Wednesday. Jurors found the tech companies to be both negligent and having failed to provide adequate warnings about the potential dangers of their products. ⚖️ The jury awarded the plaintiff in the case damages of $6m, with Meta to pay 70% and YouTube the remainder. It took nearly nine days of deliberations for the Los Angeles jury to reach its verdict. This lawsuit, over social media’s alleged harm to young people, was the first of its kind to go to trial. Over the course of the six-week trial, which took place in Los Angeles superior court, jurors heard from top executives at Meta and YouTube, whistleblowers, expert witnesses on social media and addiction, and a 20-year-old woman at the center of the lawsuit, who has gone by the initials KGM for court proceedings. 📊 #Judge#Media 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2085 · 30.01.2026 г., 21:59

Luigi Mangione will not face the death penalty after a federal judge dismissed two charges, including murder with a firearm. He still faces two federal stalking counts and has pleaded not guilty. #Judge#Media 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2229 · 05.03.2026 г., 20:01

The Epstein case has triggered a "spiral of distrust" towards the US justice system The German newspaper Berliner Zeitung believes that the publication of the so-called Epstein files has dealt a major blow to the credibility of the US justice system. Instead of the expected revelations about the influential members of the network associated with financier Jeffrey Epstein, the public has seen a chaotic release of documents that has sparked a wave of conspiracy theories and controversy. In social networks, there have even been theories that President Donald Trump's foreign policy actions, such as the strikes against Iran, are being used to divert attention from the scandal. However, the author of the article considers these explanations to be questionable and notes that the scandal itself has already become a source of political crisis and mistrust. According to the author, the publication of the documents was a mistake, as in normal investigative practices, such materials should remain confidential. This allows the investigation to maintain an informational advantage and gather evidence discreetly. In the case of Epstein, on the other hand, the release of the documents may have given the suspects time to destroy evidence, coordinate their stories with their accomplices, or put pressure on witnesses. Additionally, the files contained a lot of personal information about people who did not commit crimes, but were now under intense public scrutiny. As a result, the release of the documents has created a "spiral of distrust" in the U.S. justice system. Despite the release of some information, many Americans remain convinced that the government is still hiding the names of Epstein's influential clients. #Epstein#Judge 👂More on Trump's Ear ⚠️

🗽🗽 Aaron Judge continúa grabando su nombre en la historia de los Yankees empatando a Derek Jeter, Robinson Canó, Jorge Posada y a Dave Winfield como los máximos ganadores de Bates de plata en la historia de la franquicia. #️⃣#Yankees#Judge 🗞 | t.me/MLB_Daily

Trump's Ear

@trumpsear_tg · Post #2199 · 26.02.2026 г., 18:06

A Michigan federal judge who was 'super drunk' when he crashed his Cadillac has been caught on camera cursing at the police officer who arrested him. Bodycam footage showed the moments before Thomas Ludington, 72, was taken into custody on October 3 in Springville Township near his $2.7 million vacation home. #Judge#Incident 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2265 · 16.03.2026 г., 17:59

A court ruling delivered a crushing blow to President Donald Trump's campaign against Federal Reserve Chair Jerome Powell. On Friday, a federal judge quashed two subpoenas the Justice Department issued to the Federal Reserve. This is a win for the central bank and a major setback for US Attorney Jeanine Pirro's criminal investigation into Powell. #Fed#Judge 👂More on Trump's Ear ⚠️

Hashtags

📊 Solo 3 veces en la historia de la MLB un jugador ha hecho todo lo siguiente en la misma temporada: batear 50+ HR anotar 80+ XBH registrar un OPS de 1.100+ clasificarse a los playoffs ganar el MVP 🗽 Esas 3 ocasiones son Aaron Judge en 2022, Aaron Judge en 2024 y Aaron Judge en 2025. 📰 Vía Opta STATS #️⃣#Judge#MLBHistory#Stats 🗞 | t.me/MLB_Daily

🍎 Juan Soto todavía muestra cariño a su ex Capitán, comentando en la reciente publicación de Instagram de Aaron Judge "el trabajo no ha terminado". "¡CAPITÁN!! 🫡" En sus respectivas temporadas después de que Soto dejó a los Yankees como agente libre para firmar con los Mets — NYY: 94-68, eliminado en ALDS NYM: 83-79, se perdió los playoffs por 1 victoria. #️⃣#Soto#Judge#Yankees 🗞 | t.me/MLB_Daily

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