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

TGINSIGHT SIMILAR POSTS

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

Изходен канал @clockstackwheels · Post #721 · 26.12

Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области. Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него. "Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!" Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее. Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то. С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше. Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс. В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков. #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