DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
DTO — штука вроде очевидная: "не светить сущностями наружу". Но что дальше?
🔹 Кто-то делает DTO только в контроллерах, а внутри работает с доменными объектами. 🔹 Кто-то строит слоистую модель DTO-шек, даже между сервисами и репозиториями. 🔹 А кто-то вообще говорит: «DTO везде — меньше связность, проще миграции, лучше тестируемость». 💬 Вопрос к вам:
— Где заканчивается польза от DTO, а где начинается бессмысленная бюрократия? — DTO только на границах приложения или вообще везде? — Или пора забить и возвращать UserEntity напрямую в контроллер?
Earlier, crypto enthusiasts had created a self-described “meme app” dubbed “gm” app wherein users would greet each other with “gm” or “good morning” messages. However, in September 2021, the gm app was down after a hacker reportedly gained access to the user data. Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October. The initiatives announced by Perekopsky include monitoring the content in groups. According to the executive, posts identified as lacking context or as containing false information will be flagged as a potential source of disinformation. The content is then forwarded to Telegram's fact-checking channels for analysis and subsequent publication of verified information. 1What is Telegram Channels? The public channel had more than 109,000 subscribers, Judge Hui said. Ng had the power to remove or amend the messages in the channel, but he “allowed them to exist.”
from us