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

Резултати

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

Търсене: #voyager

当前筛选 #voyager清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #1262 · 30.01.2026 г., 12:11

🌎 The Voyager 1 spacecraft captured “plasma wave” sounds as it entered interstellar space in 2012. These sounds are actually electromagnetic vibrations in space, converted into audio by NASA scientists. The pitch and intensity help scientists measure the density of charged particles beyond our Solar System. ✨ #Voyager⚡#space⚡#sound 👉subscribe Interesting Planet 👉more Channels ​

SpotOnChain | Announcement

@spotonchain · Post #89 · 09.03.2023 г., 17:22

🚨🚨#Voyager has moved $99M worth of digital assets over the past 48 hours. ⬅️ $60.6M in various tokens to #Binance, #Coinbase & #Wintermute ⬅️ $38.6M (25K $ETH) to 5 unknown wallets. ➡️ Received ~62M USDC from exchanges. Still holds $767.7M worth of assets (likely sold more in upcoming days)

Interesting Planet 🌍

@interesting_planet_facts · Post #946 · 21.10.2025 г., 20:11

🌎 Exploring the edge of the solar system, NASA’s Voyager 1 spacecraft became the first human-made object to enter interstellar space in 2012. It carries instruments to measure cosmic rays, magnetic fields, and particles beyond the Sun’s influence—data still transmitted from over 24 billion kilometers away. ✨ #space⚡#voyager⚡#interstellar 👉subscribe Interesting Planet 👉more Channels ​

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #222 · 12.01.2025 г., 13:11

¡New build available! #A15#BlissRom Xiaomi 12T Pro / Redmi K50 Ultra (diting) Maintainer:@TeamMEX_XDA (Kισżż) Version:Bliss-v18.1-diting-UNOFFICIAL-gapps-20250112 Download Firmware Device Changelog: - Fix eSIM (forgot to add the wrapper) - Include the firmware again - Allow people to flash stuff via bliss recovery (you can still use ofox or twrp) - Fix Misight domain sepolicy issues - Implement rebased yuki kernel (again is fixed the issues on 12tPRO? ) - FW included - Feas support - FEAS: Code refactoring to improve efficiency and readability. '#BlissRom' '#Voyager' '#Bliss18.1' If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal

Xiaomi 12T Pro | K50U | Updates

@xiaomi_12tpro_updates · Post #220 · 10.01.2025 г., 02:06

¡New build available! #A15#BlissRom Xiaomi 12T Pro / Redmi K50 Ultra (diting) Maintainer:@TeamMEX_XDA (Kισżż) Version:Bliss-v18.1-diting-UNOFFICIAL-gapps-20250109 Download Firmware Device Changelog: - Add Updater support - Yuki kernel updated - Enable smartpixels and disable it on udfps location - enable Screen off udfps support - use correct sensor for pocket mode - initial release for diting '#BlissRom' '#Voyager' '#Bliss18.1' If you like my work and want to support it please consider making a donation this helps with server costs. Donate PayPal Follow @xiaomi_12tpro_updates Join @xiaomi12tpro_chat

Universe Mysteries 🪐

@cosmomyst · Post #423 · 14.10.2025 г., 18:21

🪐 In 1977, the Voyager 2 spacecraft was launched carrying a special message for any potential alien civilizations—a Golden Record encoded with music, greetings in 55 languages, and sounds from Earth. Voyager 2 is now over 20 billion kilometers from our planet, traveling beyond the edge of the solar system and continuing its silent journey through interstellar space. ✨ #aliens⚡#voyager⚡#interstellar⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #327 · 25.09.2025 г., 15:21

🪐 In 1977, the Voyager 1 spacecraft left Earth carrying a "Golden Record"—a carefully crafted message with sounds and images from our planet, designed in the hope that someday it might be found by aliens in another star system. Now Voyager 1 is more than 24 billion kilometers away, continuing its silent journey through interstellar space, making it humanity’s most distant attempt to reach out to any extraterrestrial civilization. ✨ #aliens⚡#voyager⚡#interstellar⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #177 · 23.08.2025 г., 13:11

🪐 In 1977, the Voyager 1 spacecraft carried a "Golden Record" with sounds and images from Earth—including greetings in 55 languages, music from around the world, and natural sounds like thunder and whale songs. This unique message is still traveling through interstellar space beyond our solar system, intended for any alien civilization that might one day discover the spacecraft drifting among the stars. ✨ #aliens⚡#Voyager⚡#record⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #367 · 03.10.2025 г., 15:21

🪐 The future of interstellar travel could be shaped by experiments like NASA's Heliospheric Imager, which studies the vast region where the Sun's solar wind meets interstellar space—the heliopause. By understanding this distant boundary zone, where Voyager 1 crossed over 120 astronomical units from the Sun, scientists are learning how future spacecraft might navigate safely beyond our solar system and toward other stars like Alpha Centauri. ✨ #interstellar⚡#heliopause⚡#voyager⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #385 · 06.10.2025 г., 22:21

🪐 The twin Voyager spacecraft—Voyager 1 and Voyager 2—are now traveling through the region known as interstellar space, beyond the influence of our Sun's solar wind. Their ongoing journey past the heliopause, the boundary where the solar wind meets the interstellar medium (the thin gas and dust between stars), is giving scientists the first direct data on what lies between stars like our Sun and others such as Alpha Centauri. ✨ #interstellar⚡#travel⚡#voyager⚡#heliopause⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

科技&趣闻&杂记

@kejiqu · Post #3405 · 11.05.2025 г., 07:51

全球首家太空酒店 2027 年开业,500 万美元住 3 天体验地球全景 美国太空建筑公司 Orbital Assembly Corporation 计划于 2027 年建成全球首座商业太空酒店 Voyager Station。该酒店直径 488 米,由 24 个模块组成,通过旋转模拟月球重力环境,可容纳约 280 名旅客和 112 名工作人员。酒店距离地球表面约 1900 公里,每 90 分钟绕地球一圈。内部设施包括餐厅、酒吧、健身房等,住宿体验对标地面五星级酒店。Voyager Station 项目已筹集超过 8000 万美元,预计三天住宿费用为 500 万美元。IT之家 🏷#太空酒店#Voyager#Station#商业 📢频道👥群组📝投稿