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

TGINSIGHT SIMILAR POSTS

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

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

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

Hashtags

Резултати

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

Търсене: #sans

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

@PensivePost · Post #5527 · 26.11.2021 г., 07:23

How to not hold on to the belongings Whilst you bathe in the agony and I am out there revolting We see the stars with tears in our eyes and we know there's no dream left But we do still be hopelessly waiting for the hope in disguise There's so much patience in us but we no more could put up with the dread in our minds Halfway through the day we yet keep awaiting for the nights We have gotten nowhere but look how far have come our lives From finding the purpose of our souls to now laying down helplessly with inconsequential smiles Only you and I know how to convey the inconveniency of the bothersome hearts with APHASIA Expressing themselves with insufficient words and futile rhymes #review #sans

Hashtags

Pensive|

@PensivePost · Post #5372 · 23.08.2021 г., 18:34

For courage is letting go of the fears that you reside in and hope of a being Gasp until your heart aches for the warmth of the love it once shared Bawl to the agony of tragedy that flowed along with the blood through your veins Fall into the symphony Edvard Grieg once made Reach to the point of disgust and bathe in the trauma that surrendered to you its faith Exist in seventeen out of hundred of your fears For once, look closer into the mirror that is as real as it appears Leer at The Starry Night, no Vincent could ever paint Until your eyelids close to their suspense Oath to the pores that your skin ever veiled Behold the scars of your mother that never healed Go slow in the heads of horror Go deep in the dark philosophy in Arthur Schopenhauer’s honor Plead to the lord of misery, for great sufferings of ever beyond and more Wear the wisdom of the evil that history never wore And then, Let shadows of your beloved that long ago were burnt, sing you the last lullaby Sleep to never wake up again in the dream of demons, ode them the last goodbye Gather fragments of the courage you swore upon midst the million sufferings Open the doors once latched, let bright of your brain lit the horizon of infinite dreams #sans #review

Hashtags

Pensive|

@PensivePost · Post #4876 · 05.02.2021 г., 17:51

We have fought a battle, a long long ago. We might have won, but in pale yellow burnt scripts, there isn't any Trace, Though we believe, we utterly, dearly keep Faith In it's victory, and for it did win for our fate. I remember them saying, 'Through it's virtue God brought us Morals. And to continue we shall act upon our deeds, correct what one feels.' Never really did they emphasized on Ethics, As in pale yellow burnt scripts they might have found some invisible trace's of ink. And it might have said to them, ' Through what you believe, comes enactment of your deed, here's a path, don't bend,walk straight, here are rules, don't break, walk straight' And onwards and ahead, With God's sheer-sheer Grace, we Shall keep moving. As it says For them, Their God, Is pale yellow scripts. For me Mine somewhere else exists And when from afar afar, I ask him to take me away, He then silently maybe replies, In pale yellow burns, you carve me And then, just then, To you ,in their invisible Traces, might seem my smiles Until then, Believe them. Walk straight, don't bend, Here is your path keep on the chase. #review #sans #poetry

Pensive|

@PensivePost · Post #4848 · 31.01.2021 г., 14:52

We pave our way towards the stardust, When million collisions fade beside Our labour but a mere phenomenon to harbour where the bondsmen reside With weapons in our brain and shield in the sleeves When least of the mankind Shrink upon our feets We then in chorus sing our defeat, with cold in the blood till , we March towards the heat and Then on the arid land When we lay down the dead bones It rains through our sullen sights to the point we drown into our own build heights We then again Pave our way towards the stardust When million collisions fade beside When million collisions fade beside #review #poetry #sans

Pensive|

@PensivePost · Post #4840 · 29.01.2021 г., 10:58

We pave our way towards the stardust, When million collisions fade beside Our labour but a mere phenomenon to harbour where the bondsmen reside With weapons in our brain and shield in the sleeves When least of the mankind Shrink upon our weak feets We then in chorus sing our defeat, with cold in the blood till We March towards the heat and Then on the arid land When we lay down the dead bones It rains through our sullen sights to the point we drown into our own built heights We then again Pave our way towards the stardust When million collisions fade beside When million collisions fade beside #poetry #review #sans

科技&趣闻&杂记

@kejiqu · Post #3887 · 17.11.2025 г., 23:03

谷歌开源 Google Sans Flex 字体,可用于商业用途 谷歌已开源 Google Sans Flex 字体,用户可在 Google Fonts 平台免费下载使用,包括商业用途。该字体拥有 9 种变种,涵盖 Thin 100-Black 900 粗细范围,允许更改字重、宽度、粗细、光学大小和笔画圆角等参数。字体支持英语、法语、德语等多种拉丁语形式,但不含中文。Google Sans Flex 字体采用 SIL Open Font License 1.1 标准开源,允许免费使用、研究、修改和重新分发。IT之家 🏷#Google#Sans#Flex#开源#字体 📢 频道 👥 群组 📝 投稿

VIP_影视分享

@wangzhuanzhan · Post #33606 · 01.10.2024 г., 06:45

B-b悲b情q三s角j- 悲情三角 Triangle of Sadness (2022) 直达链接:https://pan.quark.cn/s/d4174b414dd0 #悲情三角#Triangle of Sadness #无限悲情#疯狂富作用 #上流落水狗#悲痛三角 #悲伤三角#悲哀三角#Sans filtre 链接:https://link3.cc/sf_com #电影#喜剧#美国#2022年代

Alla ricerca di un qui ed un ora dalla forma conveniente per quanto ridotta all'osso. #vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#tristezza#sadness#sadboy#lofi#testaccio#mattatoio#videogioco#videogame#undertale#undertalesans#sans