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

Резултати

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

Търсене: #cosmology

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

@interesting_planet_facts · Post #1270 · 03.02.2026 г., 12:11

🌎 Scientists believe most of the universe’s mass comes from dark energy, a mysterious force causing space to expand faster over time. Dark energy makes up about 68% of everything in the universe, yet its true nature remains unknown despite decades of study. ✨ #space⚡#cosmology⚡#astronomy 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #626 · 25.08.2025 г., 13:22

🌎 At the edge of the observable universe, mysterious “dark flow” tugs galaxy clusters in the same direction, hinting at unseen forces or realms beyond our cosmic horizon. This puzzling movement can’t be explained by known gravity alone, sparking debate about what lies outside the visible universe. ✨ #space⚡#universe⚡#cosmology 👉subscribe Interesting Planet ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1263 · 30.01.2026 г., 22:11

🌎 Multiple theories in modern physics suggest parallel worlds or dimensions could exist, but no direct experimental evidence has ever been found. String theory predicts extra spatial dimensions, and some cosmological models propose the idea of a "multiverse," where many universes exist with different physical laws. As of 2024, all searches for measurable proof—such as deviations in gravity or missing energy—have reported no confirmed signs of parallel worlds. ✨ #physics⚡#multiverse⚡#cosmology 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #838 · 30.09.2025 г., 18:11

🌎 In physics, the concept of a "multiverse" proposes that our universe could be just one of many coexisting universes, each with different physical laws. This idea arises in cosmic inflation theory, where rapid early expansion could have created countless separate "bubble universes." The multiverse hypothesis is explored by leading scientists but remains unproven, and no direct evidence has yet been observed. ✨ #multiverse⚡#cosmology⚡#physics 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #907 · 14.10.2025 г., 15:11

🌎 The concept of a "mirror universe" is explored in cosmology, referring to the idea of a universe with particles and forces that mirror our own but interact only through gravity. While no evidence currently supports their existence, theories suggest mirror matter could help explain mysteries like dark matter. Researchers at Oak Ridge National Laboratory have tested for potential interactions but found no signs so far. ✨ #parallelworlds⚡#physics⚡#cosmology 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #844 · 01.10.2025 г., 20:11

🌎 The mysterious "cold spot" in the cosmic microwave background is a vast region of space cooler than its surroundings. Some scientists think it may be the result of a gigantic supervoid—an unusually empty part of the universe spanning nearly 1.8 billion light-years across. This cold spot is one of the largest anomalies detected in the afterglow of the Big Bang, challenging current models of cosmic structure. ✨ #universe⚡#cosmology⚡#supervoid 👉subscribe Interesting Planet 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #518 · 24.11.2025 г., 22:21

🪐 The cosmic microwave background contains a hidden signature called the "Sachs-Wolfe effect," where variations in temperature are linked to the gravitational pull of massive structures like galaxy clusters. This effect, first detected in the 1990s using data from the COBE and WMAP satellites, shows how even the oldest light in the universe was influenced by the invisible gravity of objects such as the Coma Cluster and the Great Attractor, providing a glimpse into how matter was distributed across the cosmos more than 13 billion years ago. ✨ #cosmology⚡#gravity⚡#universe⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #582 · 26.12.2025 г., 12:21

🪐 The ultimate fate of the universe may come in a dramatic event known as the "Big Rip," where the repulsive force of dark energy—an unseen force causing galaxies like Sombrero Galaxy (Messier 104) to speed away from each other—could grow so strong that it eventually tears apart galaxy clusters, stars, planets, and even atoms themselves. If the Big Rip happens, it would be the final act in cosmic history, ending everything from the largest galaxy clusters down to the smallest subatomic particles in a relentless expansion. ✨ #universe⚡#darkenergy⚡#cosmology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #430 · 15.10.2025 г., 22:21

🪐 The ultimate fate of the universe is still a mystery, but scientists study clues from galaxies like Messier 87 and the emptying regions between them to predict what lies ahead. Over trillions of years, after all the stars burn out—including giants like Betelgeuse—and black holes such as Sagittarius A* slowly evaporate, space will stretch into a cold, dark expanse with only faint traces of ancient matter drifting across an ever-growing emptiness. ✨ #universe⚡#fate⚡#cosmology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #255 · 11.09.2025 г., 03:11

🪐 Scientists believe the universe's end could unfold in several dramatic ways, including the "Big Rip," where dark energy tears galaxies, stars, and even atoms apart. In contrast, the "Big Crunch" scenario imagines gravity eventually halting expansion and pulling everything—including galaxies like the Milky Way—back together in a catastrophic collapse. Another possibility is the "Big Freeze," where the expansion continues until the last stars, like our Sun, burn out and the universe grows eternally cold and dark, filled only with faint remnants like white dwarfs and black holes. ✨ #universe⚡#fate⚡#cosmology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #516 · 23.11.2025 г., 22:21

🪐 The end of the universe is a cosmic puzzle with several real scenarios proposed by scientists, each based on clues from galaxies like Messier 87 and ancient light observed by telescopes. One idea is the "Big Bounce," where the universe’s expansion might someday reverse due to gravity, causing everything—including stars such as Betelgeuse and black holes like Sagittarius A*—to collapse back into an ultra-dense state, possibly leading to another cosmic cycle. Unlike the "Big Freeze" or "Big Rip," the "Big Bounce" is still debated, but it shows how the fate of the universe could depend on the balance between gravity and mysterious forces such as dark energy. ✨ #universe⚡#cosmology⚡#expansion⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #439 · 17.10.2025 г., 20:21

🪐 The cosmic microwave background is not just a faint afterglow—embedded within it are tiny, swirling patterns called "polarization anomalies," first mapped in detail by the Planck satellite. These twists in the microwave light tell scientists how matter and light interacted in the early universe, revealing clues about the first few moments after the Big Bang and hinting at processes like cosmic inflation—an explosive expansion that happened in fractions of a second. ✨ #cosmology⚡#universe⚡#bigbang⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

12
ПредишнаСтр. 1 от 2Следваща