TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #247 · 11.03

Попробовали на работе предметно-ориентированное проектирование (Domain Driven Design). Это такой способ построения архитектуры, когда ты (чаще всего с помощью системы типов и ООП) описываешь физическую суть вещей, которые представлены в твоей программе. Например, если в программе есть объект "Книга", то её нужно снабдить свойствами, которые бывают у книг в реальности: число страниц, автор, язык, тип обложки и т.д. При этом данные свойства должны быть такими, чтобы присвоить им нереалистичные значения было нельзя. Допустим, число страниц не может быть отрицательным (и скорее всего в реальном мире не может быть нулём). При попытке установить отрицательное число страниц программа должна выбросить исключение. А совсем в идеальном случае -- не дать этого сделать программисту на уровне статического анализа кода. Описав все свойства книги, вы снабжаете её операциями, которые над ней можно сделать. Например, из книги можно вырвать страницу, и при этом число страниц уменьшается. Нет такого случая, когда можно вырвать страницу без изменения числа страниц. Вы строго программируете эту зависимость, делаете у книги метод "Вырвать страницу", а он уже уменьшает число. Кстати, свойство "Число страниц" при этом нельзя переназначить в уже созданной книге. Можно только создать книгу, передав в её конструктор (так называется в программировании функция создания объектов) заданное число страниц. Но поменять число страниц можно только специальными методами "Вырвать страницу" и "Вклеить страницу". С помощью этого подхода вы гарантируете, что ваши объекты всегда находятся в валидном состоянии -- то есть таком, которое возможно в реальной жизни с объектом, представленным программой. Плюсы подхода очевидны: меньше число ошибок. Код описывает сам себя, и программист, если не лезет внутрь объекта "Книга", вообще не сможет сделать с книгой ничего недопустимого. Минусы, думаю, тоже понятны: изначально проектировать сложнее, нужно учесть много нюансов, писать тесты. Время разработки изрядно растёт. Изменение требований даётся дороже: например, если каким-то образом в ваш книжный магазин поступят книги со страницами из кевлара, которые невозможно вырвать :) Но первый проект с этим подходом мы сдали хорошо, без багов. Лучше, чем многие предыдущие. #dev

Hashtags

Резултати

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

Търсене: #ice

当前筛选 #ice清除筛选
L’Altra Faccia dell’Impero

@laltrafacciadellimpero · Post #3149 · 25.01.2026 г., 16:29

Ejecución pública, por la espalda, a sangre fría, de un ciudadano estadounidense. "Dejen a los patriotas de #ICE hacer su trabajo" dice Trump. Segui e diffondi il canale: https://t.me/laltrafacciadellimpero

Hashtags

Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #51848 · 05.02.2026 г., 20:55

Milano Cortina: #Meloni definisce "una polemica surreale" la contestazione sulla presenza del #ICE alle Olimpiadi di Milano e Cortina. A 'Dritto e Rovescio' ha detto che la sezione investigativa dell’Homeland Security esiste dal 2002, non svolgerà operazioni di polizia in Italia e "È una polemica strumentale perché la sinistra è un po' a corto di argomenti" @UltimoraPolitics24

Hashtags

Trump's Ear

@trumpsear_tg · Post #2066 · 28.01.2026 г., 00:01

A federal appeals court sided with the Trump administration Monday in a ruling that blocks restrictions on tactics being used by U.S. Immigration and Customs Enforcement (ICE) agents while dealing with anti-ICE agitators in Minnesota. The ruling by the three-judge panel 8th US Circuit Court of Appeals put a stay on a lower court ruling that prevented officers from arresting, detaining, pepper-spraying or retaliating against protesters in Minneapolis without probable cause as anti-ICE agitators continue to confront authorities carrying out enforcement operations. "We accessed and viewed the same videos the district court did," the appeals court said in the ruling. "What they show is observers and protesters engaging in a wide range of conduct, some of it peaceful but much of it not. They also show federal agents responding in various ways." #Trump#ICE 👂More on Trump's Ear ⚠️

Hashtags

SIN LÍNEA MX (OFICIAL)

@SINLINEAMXnoticias · Post #31162 · 30.03.2026 г., 19:00

¡No más atropellos! 🤚🏻 🔴 14 mexicanos han muerto en lo que va del año bajo custodia del #ICE😔 | Estas son las acciones que implementará #Sheinbaum ante los abusos de la agencia migratoria 📄🔍 https://sinlineamx.com/sheinbaum-anuncia-nuevas-acciones-muerte-mexicanos-ice/

SIN LÍNEA MX (OFICIAL)

@SINLINEAMXnoticias · Post #31157 · 30.03.2026 г., 17:16

Se tomarán medidas ☝🏻 🔴#Sheinbaum anunció que su gobierno participará en una demanda presentada el 26 de enero en #EU mediante la figura de amicus curiae 📄 👉🏻 Además, denunció deficiencias en la atención médica del centro de detención del #ICE🤬

Trump's Ear

@trumpsear_tg · Post #2098 · 03.02.2026 г., 22:03

CBS News’s 60 Minutes did not spare President Donald Trump’s administration in its Sunday story about ICE shootings that was titled after questions posed by Sen. Rand Paul (R-KY): “Who can you kill and when can you kill them?” Paul asked the questions after the deaths of Renee Good and Alex Pretti as he announced he has scheduled a public hearing in Minneapolis later this month. Host Scott Pelley said Paul told him that he watched the video of Pretti being shot “again and again.” “I saw no evidence. I saw a man that was retreating,” Paul said. “I mean, he went to the middle of the street. He didn’t even obstruct traffic. He let a car go through. As the agents advanced on him, he retreated to the side of the street. A woman is violently pushed to the ground, and he turns to help her, and that’s when he is grabbed from behind. I saw no evidence of him assaulting the police.” When asked if Homeland Security Secretary Kristi Noem should be fired, Paul answered, “I think we have to get through our hearing February 12, and I think we have to see what the people who work for her say. But my advice to them, if they’re watching and they come to testify is, if you come in and you’re going to justify that this man was aggressively assaulting your police officers, that cannot be acceptable, and that’s why they’re lacking in trust.” Paul said that Noem, Border Patrol officer Greg Bovino, FBI Director Kash Patel, and White House advisor Stephen Miller used “terrible judgment” when they called the victims domestic terrorists and assassins. “I mean, terrible conclusions, incorrect conclusions, stating things that no one else believes. You can lie to your heart’s content if there’s no video, but the video doesn’t support what they’re saying,” Paul said. When Pelley asked, “You seem to be saying trust is broken?” Paul answered, “Without question.” #ICE#Media 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2019 · 16.01.2026 г., 20:00

They are hired by ICE without filling out questionnaires, drug testing, or other mandatory checks. The famous progressive journalist Laura Jedeed tried to get a job at ICE and received a job offer without checking her documents and biography, writes (https://slate.com/news-and-politics/2026/01/ice-recruitment-minneapolis-shooting.html #) Slate. In August, she came to the ICE Career Fair in Texas out of professional interest. The interview lasted about six minutes. The recruiter asked questions about his age, military experience and desired place of service. The interview did not touch on other topics. #ICE#Media 👂More on Trump's Ear ⚠️

Hashtags

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