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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #maha

当前筛选 #maha清除筛选
Wendy Rogers

@wendyrogersaz · Post #9530 · 20.03.2026 г., 04:21

Arizona Senate passed my SB1065 providing Hyperbaric Oxygen Therapy (HBOT) to defeat PTSD in my fellow veterans. Low cost. Lifelong-lasting results. No drugs. #MAHA.

Hashtags

Trump's Ear

@trumpsear_tg · Post #1403 · 22.08.2025 г., 22:00

MAHA, a movement aimed at tackling the nation’s chronic disease epidemic 🩺 through food 🥗, health 💪, and environmental reforms 🌍, has been deeply skeptical of Big Pharma 💊, Big Agriculture 🚜, and Big Chemical 🧪. MAHA groups have been strongly aligned with the Trump administration’s actions to date on vaccines 💉 and food 🥕. But cracks are beginning to form ⚡️. MAHA-aligned groups and influencers are raising alarms 🚨 about provisions in a House appropriations bill they say will shield pesticide and chemical manufacturers from accountability — and ultimately make Americans less healthy 😷. Meanwhile, a draft of the administration’s “MAHA Report” on children’s health 👶 reportedly omits any calls to prevent pesticide exposure, also disappointing advocates 😞. Health and Human Services Secretary Robert F. Kennedy Jr. and his disciples espouse stricter environmental protections 🌳, while also bucking mainstream science on vaccine safety. Conservatives have traditionally sided with big business 🏢, supporting fewer regulations on potentially toxic substances ☠️. So far, business interests appear to be winning 🏆. The industry-friendly draft of a report from a commission run by Kennedy shows just how much the White House has been able to rein him in 🛑. “It’s obvious that there are tensions within this newfound coalition between MAHA and MAGA, and there are some big issues there,” said Mary Holland, CEO of Children’s Health Defense, an anti-vaccine group founded by Kennedy 🗣. While the pesticide issues have generated some sparks ⚡️ between MAHA and MAGA, the administration has taken a number of other actions to also reduce restrictions on the chemical industry more broadly 🏭. Trump himself exempted from environmental standards more than 100 polluters, including chemical manufacturers 🧪, oil refineries 🛢, coal plants 🏭, and medical device sterilizers 🩺. #MAGA#MAHA 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2316 · 30.03.2026 г., 17:59

Republicans hope the Make America Healthy Again movement becomes a permanent fixture of a big GOP tent. But the party can’t count on its support heading into midterm elections this November. New results from The POLITICO Poll show both broad frustration and dissatisfaction with the Trump administration on health priorities and opportunities for Democrats to make inroads with Health Secretary Robert F. Kennedy Jr.’s MAHA supporters. A majority of Americans associate MAHA with the Republican Party, but not overwhelmingly, and most believe the Trump administration has not done enough to “Make America Healthy Again” — including a 41 percent plurality of Trump’s own 2024 voters. #Trump#Poll#MAHA 👂More on Trump's Ear ⚠️

🇲🇾Председатель Комитета по стандарту Халяль ДУМ РТ Аббяс хазрат Шляпошников в составе делегации Республики Татарстан посетил сельскохозяйственную выставку MAHA 2024 в Малайзии. Цель визита председателя Комитета: завершение аккредитации в Департаменте исламского развития Малайзии (JAKIM). Получение аккредитации в JAKIM позволит производителям Республики вывозить продукцию в Малайзию по сертификатам Комитета Халяль. Напомним, что наличие сертификата халяль является обязательным требованием для ввоза ряда пищевых продуктов в Малайзию. Для справки: MAHA (Malaysia Agriculture Horticulture & Agrotourism) - ведущая сельскохозяйственная выставка Юго-Восточной Азии. Цель выставки: популяризация инноваций в сельском хозяйстве и сокращение логистических и смысловых разрывов между городом и деревней. #малайзия#maha#jakim

Man in America 🇺🇸

@maninamerica · Post #2904 · 15.02.2025 г., 19:58

🚨Crooked Judges, DOGE & Staying MAHA Healthy “Big Pharma has recognized that if they feed you poison food, you're going to need more Big Pharma products.” Watch the full show: https://rumble.com/v6kfxkm-crooked-judges-doge-and-staying-maha-healthy.html #MAHA#Truth#MAGA 🪓@AttorneyThomas

Man in America 🇺🇸

@maninamerica · Post #2865 · 10.02.2025 г., 04:51

This is a big deal for me. My family uses Costco a lot and the fact that they are poisoning their "organic" beef with "vaccines" is both misleading and horrific. BTW - did you know that there is an exemption to the Organic Food Act that allows meat to be labeled organic even if it is exposed to mRNA gene therapy "vaccines"? mRNA vaccines are approved and in use in pork in the United States and we have now approved DNA vaccines that are even worse for use in Salmon. Will Costco label their "organic" food that has been exposed to gene therapy poisons so consumers can decide whether to eat it or not? If you care enough to buy organic wouldn't you want to know if the food you are paying extra for is laden with gene therapy poisons. 👉https://x.com/renztom/status/1888696802976972934?s=46 @VigilantFox #MAHA#MAGA#mRNA 🪓@ForGodFamilyCountry

Man in America 🇺🇸

@maninamerica · Post #3134 · 27.04.2025 г., 13:16

Solar Radiation Management (SRM) isn’t science fiction — it’s happening. Toxic chemicals. Zero public consent. Massive global risks. Don’t just look up. Look around. Read this before they block out the sun: https://open.substack.com/pub/tomrenz/p/chemical-skywriting-the-dystopian?r=1d9tby&utm_campaign=post&utm_medium=web&showWelcomeOnShare=false In a world obsessed with climate hysteria, the latest brainchild of the globalists is something straight out of a dystopian sci-fi novel: spray the skies with chemicals to “fight” global warming. It’s called Solar Radiation Management (SRM), and the plan is as absurd as it is dangerous. If you haven’t heard of it, that’s no accident. It’s been quietly creeping from fringe theory to policy pipeline under the radar of public scrutiny. #Truth#MAHA#Chemtrails 🪓@AttorneyThomas

Man in America 🇺🇸

@maninamerica · Post #2798 · 30.01.2025 г., 01:50

Billionaire Nicole Shanahan Puts Senate on Notice — “Dear U.S. Senators, Bobby may play nice; I won’t." The overwhelming support for RFK Jr.’s confirmation is just incredible. We The People are wide awake and will no longer allow #BigPharma to play their games. #MAHA#RFKJr

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