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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #mv

当前筛选 #mv清除筛选
Pensive|

@PensivePost · Post #5625 · 30.01.2022 г., 13:38

It wasn't intentional! We both knew! You started everything You made me to feel the best in me You made me to understand what true love is You made me to know even affection like this exists You made me to realize all bonds doesn’t need a name You made me to change myself completely… Yeah! It was you behind this beautiful bond but I don’t blame that it’s all your fault now… We’ve been together in many things either be it sad or happiness, victory or failure, emotions or emptiness we stood with each other… You know what!? This is what I have imagined all these years but now I understand that only I needed you in all such situations whereas you never really wanted me by your side. I thought you will feel good when I’m with you; you will need me at the end of the day to share your day; you will search for me when you are not doing well; and lot more that can’t be bundled up in words but you have also made me to realize that you never really wanted me to be by your side… And now all I am doing is to search myself, the true self which have been lost long back in the chaos of loving you blindly… I know what I was, how I was, who I was, before meeting you but now I don’t have even myself with me! It’s all you that I have within me but I don’t blame that it’s all your fault. I know the way you loved me, you cared me, you admired me but all my question is Where’s that person who made me smile without any reason even at odd hours of day? Where’s that person who made me trust them without any need? Where’s that person who made me feel as the most important one? I have expressed my feelings in all possible ways I could and even said you directly but then you ask me again “what should I do?” You know how painful it is to hear such question after letting myself to someone who is close to me than myself… I have understood your situations many times even you knew it pretty well And now I am tired of being the one who understand others and I need to be understood sometimes… I’ve waited for you a lot of times which doesn’t hurt more than you asking “did I ask you to wait?!” what kind of reaction is that to someone who is extremely crazy about you. And I know you don’t need me the way you needed me! Even you know this but you don’t accept it openly. All I did was to love you unconditionally the way you loved me during our starting days… is it this easy for you to change like a totally different person ? Even now I am trying my best to be supportive to you wherein you don’t even have the courtesy to think about my feelings… so when you come to me again after all your issues being sorted out you will not find the one true soul that loved… each time you do this again and again just because I cant leave you. I am losing myself more than the normal and hating myself terribly for not being able to hate you! I do everything for you and react to you only for your behavior, always remember to think a little before you speak… And there are lot more to say but even my words got glued to you and I find it difficult to put it together. This is all my side of the story! if you think the way I portrayed you wrong in here… then tell me your part… at least that may create a reason to talk. #review #mv

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3606 · 24.04.2026 г., 17:16

⨳ 23.04.26 ⨳ Релиз Lyric Video на песню «Chance ~ 好きだっていう前に ~» Смотреть Lyric Video на YouTube-канале cosmosy: https://youtu.be/w9p37ELUxO4?si=mF4Z6FWXgMATclg8 #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3282 · 13.04.2026 г., 15:50

⨳ 13.04.26 ⨳ Релиз клипа на песню «Silence ~ body & soul ~»: Смотреть видеоклип на YouTube-канале cosmosy: https://youtu.be/2mUjLyyZOW0?si=Hk5KJZwg_rB5QfpN #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3251 · 13.04.2026 г., 09:34

⨳ 12.04.26 ⨳ Релиз Lyric Video на песню «Chance ~ 사랑이라 말하기 전에 ~» Смотреть Lyric Video на YouTube-канале cosmosy: https://youtu.be/5hM7UL9bPtI?si=hYdY_59UZCOCgRgR #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #3028 · 31.03.2026 г., 09:36

⨳ 31.03.26 ⨳ Релиз perfomance-видео на песню «Silence ~ body & soul ~»: «Готовы? Мотор 🎬 🔗youtu.be/VOSAeU-qNr4 🫨 Зажигай всем телом и душой! — Релиз клипа: 13 апреля 2026 💿 Заказать альбом „~ of the world ~“ в онлайн-магазинах: linktr.ee/cosmosy » #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #2686 · 24.03.2026 г., 16:32

⨳ 24.03.26 ⨳ Релиз клипа на новый сингл «Chance ~ 사랑이라 말하기 전에 ~» Смотреть клип на YouTube-канале cosmosy «cosmosy — первые, кто открыл любовь за пределами вероятности 🎧Слушать песню „Chance“ 💿Предзаказ второго мини-альбома „~ of the world ~“ » #mv@cosmosy#cosmosy

Hashtags

~ cosmosy ~ of the world ~

@cosmosy_tg · Post #2562 · 20.03.2026 г., 10:04

⨳ 20.03.26 ⨳ Релиз perfomance-видео на песню «Chance ~ 사랑이라 말하기 전에 ~»: «[Official Performance] cosmosy "Chance ~ 사랑이라 말하기 전에 ~" |🖤 Switch ON 🔗https://youtu.be/DiS9MZV2ZuI В полной темноте они нашли свет и переписали все правила любви 📺 Релиз клипа: 26.03.24 🎧 Слушать новую песню: https://cosmosy.sng.to/chance » #mv@cosmosy#cosmosy

Hashtags

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