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

Резултати

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

Търсене: #poems

当前筛选 #poems清除筛选
speechka rechka

@nitki_torchat · Post #1324 · 16.02.2026 г., 03:52

• a town belongs to a state or land land can be long there can be no end to it it belongs to everything and to no thing at all et al. belongs to the bay the bay belongs to a babe a baby belongs to a womb a bomb belongs to an atom an atom cannot be split split can go w banana and belongs in gymnastics anastasia is nasty stanislav exercises stas all four may be slavs they can turn skin and go on all fours for a town to be a stadt you need statistics it belongs to those counting ticks count as small having an impact on people people account for many a mayor is in town a town sticks to a state someone states #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1316 · 26.01.2026 г., 17:14

• rejection is hot says meeno dot com how abt injection can u inject eng w prefixes how will it react will it act on them response is better than reaction does a prefix come prior to a jour fixe will it suffice fixing yr jour journaling helps to keep elves out elevate yr downfall am in free fall infantile laces sind auch alle #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1314 · 14.01.2026 г., 23:46

• at this point i am pointless at this пон то рез at this резкость i am костный мозг at this spite i am inspired in time i am postponed at this pine i am coned at this coin i am поночка at this скрюченная ночка at this scrooge dagobert at this operation covert at this под ковер подкаверзный вопрос at this почему у тебя красный нос at this наносной наземный at our emblem at krieg pro blaming in crease ad hominem #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1308 · 07.01.2026 г., 20:56

• what’s yr oral formal L what’s yr baby formula what’s yr дать фору what’s yr forever L what’s yr again what will u gain what will u grab orally what’s w this race what’s in the bag a bang to abandon what will u construct stay w a distraction instruct yr trans-parent trans lang trans atlant yr нюни to nanny yr mire в мир #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1293 · 24.11.2025 г., 09:06

• do u wear yr tampon do u wear yourself out do u wear yr tampon out r u weary of yr sentence do u wear yr body how long will it serve yr tampon how long will u face those who are weary of who u r r u listening to yr tampon is it there to communicate what about community is it a collection of mutinies and mutenesses what do they have to say should u avoid speaking in tampon or avoid yr tongue i am here to wipe yr нюни your nanny English то бишь Gibberish? its about how u use yr sentence its about sentencing yourself to power of expression its about pressing on yr tampon not pressing on the issue its about issuing yr book in isolation its about power power is there to speak for u or to stiffen with inconvenience a tampon is there to support yr space spot a leak is that u? abort to where u came from keep the elephant out of it not enough room expelling #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1289 · 05.11.2025 г., 06:37

• if blue is nowhere out of where comes the red if it comes, will it go if it went, what did it underwent if nowhere is wet, where does it rain here is the Rhine—will you rhyme played out, what do they lay if these are eggs, where is the hen if hence is to have a consequence who is going to have hints if it hinges on the brink here’s some ink if the ink is red we pick up where we left off if off-script is after kasha will it cash off if kasha is the mischung is the dog’s name misha if misha is the uncle, who is the son if the sun is out, where did the moon go if the ants are orbiting the ring, is it spring if it sprang a rainbow and a roundabout and a regenbogen ne boysya #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1274 · 05.09.2025 г., 20:42

• gibt es tiere in reflektieren gibt es zeit in vorzeit gibt es magen in magen gibt es mögen in möglich gibt es vergeben in der umgebung gibt es geburtstag zur uhr gibt es ohr zum lesen gibt es wesen zu essen gibt es spaß zum verfassen gibt es praxis mit einem axis gibt es recherche im шершень gibt es neutral überall gibt es öl im vessel gibt es ossi im westen gibt es post- im kom-post kommst du mit mir kommst du ins meer brauchst du einen see per se kommst du nach außen auch bekannt als eine pause also taught to the forgotten ought to beget #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1224 · 30.05.2025 г., 17:40

• what if it rains what if it rhymes what if it resembles a hymn what if you have to promise what if it stays in your mouth what will you spill what if it involves arms what if you are german what if you belong to an international extremist movement what if you belong to a communist group what if you made it this far what if you have drafted an exit what if you are drafted what if you go what if you go go what if you move twice what if you return what if you turn to the beginning what if you were begging what if you listen only when they beg what if you are in бег what will you из бежать what will you be running for after after four or eight hours what on earth what an exclamation what is between clam and you between calamar and you what on earth is an octopus what an opus опускай obstacle stuck #poems

Hashtags

speechka rechka

@nitki_torchat · Post #1198 · 25.04.2025 г., 02:17

• i meet you at our house i am your housemate both of us pay hausmiete we are in the middle of things going between me and ты — mitte you aren't my twin one of us didn't watch twin peaks you pretend to have a tooth for it it stands for many things then it falls i haven't been to sioux falls there's time ahead of me i applied for a residency in oakland people are nice there they nest things they nested me for a while after i'd tested them through emails in san leandro i saw a newspaper on the ground there was no mailman nearby a man asked if i liked the building of their church a man in new orleans said they keep erasing "t" and more in TRUCKS i get tired of checking my grammar i am worse at checking on my grandma people ask if i miss the country i reply: i only miss that house in former experimental household nowadays posyolok chernoles when will i go to schwarzwald later than schwartzkopffstraße something is always missing an extra letter in the wrong place to place this right i'd need to go left #poems

Hashtags

123•••10•••1516
ПредишнаСтр. 1 от 16Следваща