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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #ifj

当前筛选 #ifj清除筛选
Russian MFA 🇷🇺

@MFARUSSIA · Post #28861 · 25.03.2026 г., 12:48

#MartyrsForTruth ⚡️The Russian Union of Journalists has published a report – Inconsistencies in the Public Accounting of Killed Journalists in 2025:: A Comparative Analysis of CPJ, UNESCO and IFJ Materials. 📄 FULL REPORT (PDF/ Telegraph) ❗️ The report is based on open sources and addresses a fundamental question: why do some cases of journalists being killed receive full international visibility, while others – despite being publicly recorded by international organisations such as #UNESCO, the International Federation of Journalists (#IFJ), and a number of international bodies – are effectively omitted from the statistics? The analysis reveals inconsistencies between the Committee to Protect Journalists' (#CPJ) public reporting for 2025 and a number of cases involving Russian journalists whose deaths were recognized by other international bodies. 👉This raises questions not only about the integrity of the record, but about the credibility of the entire international system for documenting journalists’ deaths. The analysis was prompted by the observed discrepancy between the CPJ’s overall reporting on Ukraine for 2025 and a number of cases involving Russian journalists and media workers, whose deaths were recorded and commented on by other international organisations. More specifically, on February 25, 2026, the CPJ reported that 129 journalists and media workers were killed worldwide in 2025 – the highest figure in the organisation’s history. In the same review, the CPJ stated that four journalists were killed in Ukraine in 2025. The organisation’s public materials lists a number of Ukrainian journalists and French photojournalist Anthony Lallican among those cases. ❗️ At the same time, several cases involving Russian journalists and media workers killed in 2025 do not appear in the CPJ’s open-source materials, despite public statements by the IFJ and UNESCO, and, in a number of instances, reporting by Reuters. They include: ▪️Alexander Martemyanov ▪️Alexander Fedorchak ▪️ Alexander Sirkeli ▪️Andrey Panov ▪️Anna Prokofyeva ▪️Ivan Zuev 👉 The key question is not about disputing the figures or removing names already included in international lists. It is whether all comparable cases are being recorded publicly, consistently, and by the same standards. That is why the focus of professional discussion should not be the slogan of “double standards” as such, but the specific gap between the CPJ’s published methodology and what can be observed in its public reporting on a number of 2025 cases. When that consistency is missing – or left unexplained – it raises questions not just about one report, but about the credibility of the entire international system for documenting threats to journalists.

Marx21.it

@marx21news · Post #10186 · 16.04.2026 г., 06:45

🗞️ “Informare non è solo un mestiere. È una condizione della democrazia.” A pochi giorni dal Congresso Mondiale della Federazione Internazionale dei Giornalisti (IFJ) a Parigi, pubblichiamo un'intervista al segretario generale Anthony Bellanger. Un secolo di lotte, dal 1926 a oggi, per l'indipendenza e la dignità della professione. Dai regimi autoritari degli anni '30 ai conflitti odierni in Ucraina, Gaza e Sudan, la posta è sempre la stessa: resistere alla censura, alla precarietà e alla violenza. Oggi i giornalisti sono bersaglio. Più di 3.000 uccisi in 35 anni. Non solo in guerra, ma per aver indagato su corruzione e abusi di potere. La IFJ chiede una Convenzione ONU vincolante per proteggere chi informa. In un mondo di disinformazione e giganti tecnologici, l’etica e la solidarietà internazionale restano le nostre bussole. 👉 Leggi l'intervista completa e scopri le sfide del prossimo congresso https://www.marx21.it/internazionale/giornalismo-etica-e-dignita-una-lotta-secolare/ #Giornalismo#LibertàDiStampa#Etica#IFJ#Democrazia#DirittiUmani

Addis Standard

@addisstandardeng · Post #21662 · 10.03.2026 г., 07:37

News: IFJ condemns killing of journalist in #Kismayo, calls for urgent investigation The International Federation of Journalists (#IFJ) has condemned the killing of #Somali freelance journalist Abshir Khalif Shide Omar, who was shot dead by a police officer in the city of Kismayo in southern #Somalia. According to the IFJ, Omar was killed on 2 March following a brief altercation with a police officer in Kismayo, the commercial capital of the autonomous #Jubbaland region, located about 528 kilometers from #Mogadishu. The IFJ said it joined its affiliate, the National Union of Somali Journalists (#NUSOJ), in condemning the killing and calling for an urgent and thorough investigation into the incident. In a statement, NUSOJ said Omar had been returning from an Iftar gathering with colleagues after editing a program about politicians that was scheduled to be released later that ..... https://web.facebook.com/AddisstandardEng/posts/pfbid0CUPBLiJrwHBnxuTeaq4c3XBuwGLUFaJBRrEfKh76fYSRWke8MXX2wcfBmkJVDJsal