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

Резултати

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

Търсене: #metaphysics

当前筛选 #metaphysics清除筛选

EuropeanCulture These days I was asked by some religious fanatic how I define 'European culture'. A very good question on which I had to contemplate for a while, but finally I came up with a definition which I see as sufficient. But first some words on preconditions you should consider when answering this question for yourself: Culture is (in my eyes) the physical manifestation of a racial spirit. This spirit is defined by the genetic composition of a specific race. Because there is a multitude of different European tribes with different admixtures of the same three or four base components (Early Neolithic Farmers/first wave Indo-Europeans, European hunter gatherers, Iron Age invaders/second wave Indo-Europeans/Yamnaya, Neanderthaleans) we have the same foundation but different practices. Additional admixture makes it more complicated so I'll stick with those four. Now that we know that we share the same roots with our European brothers but embody the underlying principle in different ways, let's discuss the definition of 'European culture'! I will focus on the metaphysical aspects, as everything physical derives from these underlying principles. Architecture, art, customs and food are just manifestations. We have to understand that our culture consists of three aspects on the metaphysical level: creation, persistence and destruction. How these three aspects are balanced defines the manifestation of culture. Creation The creation aspect is of utmost importance when it comes to building things, be it a piece of furniture, complex machines or running societies. People of European descent tend to have a strong creation aspect, which can be seen in the vast amount of inventions coming from us. Reacting and adapting to new situations also directly is connected to this aspect. However especially descendants of Homo Erectus tend to be very weak here. Persistence Not just the building of societies is important, but also the maintenance of stable communities needs to be named. The European spirit automatically creates a balance between nature and its people, which reflects in the unique way we care for the environment we live in. Homogenous European societies are also the most stable and prosperous, as we can focus our powers for common goals without being forced to do. Free, cooperating societies are the most successful. Destruction This is not a negative aspect per se, but can be seen as change, ending of one thing and the willpower to start something new. It influences the Faustian spirit of our people. There is a reason why we can be found on every continent! We push the boundaries a bit each time we accomplish something. Our spirit is restless and needs new challenges otherwise it will become blunt and useless. To sum it up: the unique setup of our genetics expresses in the perfect balance of the three metaphysical aspects creation, persistence and destruction. These balanced traits manifest in the physical world and make us builders, explorers, inventors, self-sustained farmers and more. Name another ethnic group which expresses its spirit like we do! Thanks for reading! #metaphysics @EuropeanTribalism

Hashtags

Mi domando da tanto tempo del perché i più parlino dell'amore come se fosse a portata di mano, sono arrivato alla conclusione che é un'illusione necessaria per alleviare l'amarezza della quotidianità. #vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#tristezza#sadness#sadboy#lofi#illusione#illusion#amore#love#solitudine#loneliness#metafisica#metaphysics

La nettezza urbana: necessaria, sporca, inefficiente e talvolta poetica. #vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#tristezza#sadness#sadboy#lofi#metafisica#metaphysics#degrado#decay#nettezzaurbana#sanitation#spazzatura#trash

Crypto M - Crypto News

@CryptoM · Post #64582 · 09.04.2026 г., 09:15

🚀 AI Event to Showcase Diverse Applications in Pop Culture An event titled 'Super Creator Live - Creating Pop Culture with Prompts' is set to take place this Saturday. According to BlockBeats, the event is co-hosted by Beating and West Sea Voice and will feature ten demo works selected from numerous submissions. Participants include developers with deep technical expertise, influential content creators, and professionals from finance, music, and podcast industries. The diverse backgrounds of the creators promise to offer intriguing perspectives on AI's integration into unexpected fields such as gaming, interactive design, sociology, emotional support, and metaphysics. Following the demo presentations, several prominent guests will engage in a roundtable discussion, focusing on the essence of creation and exploring how to define expression in the era of AI. With only two days left until the event, interested individuals are encouraged to register promptly. The event will take place on April 11 at 13:30 UTC+8, with the location details available upon registration. #AI#PopCulture#Event#Creators#Gaming#InteractiveDesign#Sociology#EmotionalSupport#Metaphysics#AIIntegration#Roundtable#Finance#Music#Podcast#Beating#WestSeaVoice#Demo#AIInCreation#Tech#ContentCreators