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

Резултати

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

Търсене: #gravitationalwaves

当前筛选 #gravitationalwaves清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #540 · 05.12.2025 г., 22:21

🪐 In 2021, scientists using the LIGO and Virgo detectors observed gravitational waves from a collision between two massive black holes named GW200129, located over 5 billion light-years away. What made this discovery unusual was the strong "precession" of the black holes’ orbits—a wobble much like a spinning top—which had never been clearly seen before, opening a new way to study how spinning black holes merge and ripple through the fabric of space. ✨ #gravitationalwaves⚡#blackholes⚡#space-time ⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #335 · 26.09.2025 г., 22:21

🪐 In 2016, scientists using the Laser Interferometer Gravitational-Wave Observatory (LIGO) made history by detecting gravitational waves from the collision of two black holes over a billion light-years away. Gravitational waves are actual ripples in the fabric of space itself, created when massive objects like black holes or neutron stars crash together, letting astronomers "hear" cosmic events that were invisible before. ✨ #blackholes⚡#gravitationalwaves⚡#space-time ⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #350 · 29.09.2025 г., 22:21

🪐 In 2023, astronomers announced the very first detection of gravitational waves coming from the collision of two supermassive black holes—giant black holes millions of times heavier than the Sun—located in distant galaxies. These faint ripples in space-time were picked up using pulsar timing arrays, which rely on ultra-precise measurements of radio pulses from rapidly spinning neutron stars, revealing a whole new side of the universe where invisible titans shape the cosmos with their dances and crashes. ✨ #gravitationalwaves⚡#blackholes⚡#galaxies⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #248 · 09.09.2025 г., 20:11

🪐 In 2023, scientists using the Laser Interferometer Space Antenna (LISA) Pathfinder technology prepared for future space-based detection of gravitational waves—tiny ripples in space made by massive events like black hole collisions. Unlike Earth-based detectors, LISA will measure these waves from space, opening a new window to observe cataclysmic events in galaxies millions of light-years away and revealing secrets hidden by cosmic dust and distance. ✨ #gravitationalwaves⚡#blackholes⚡#galaxies⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #644 · 27.01.2026 г., 22:21

🪐 In 2019, gravitational wave detectors LIGO and Virgo picked up GW190814—a signal from the merger of a black hole about 23 times the mass of the Sun and a mysterious compact object weighing just 2.6 solar masses. This lighter object is too heavy for known neutron stars but lighter than any confirmed black hole, creating a real cosmic mystery and challenging scientists to rethink what kinds of objects can exist in the universe. ✨ #gravitationalwaves⚡#blackholes⚡#mysteries⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #422 · 14.10.2025 г., 15:21

🪐 In 2020, astronomers made a pioneering discovery by detecting gravitational waves from the merger of a black hole and a neutron star in a distant galaxy. Gravitational waves are ripples in space caused by massive objects accelerating or colliding, and finding this "mixed" merger—between a dense neutron star and a black hole—helped confirm that such pairs really exist and can dramatically reshape the universe. ✨ #gravitationalwaves⚡#blackholes⚡#neutronstars⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #309 · 21.09.2025 г., 20:21

🪐 In July 2023, the NANOGrav collaboration announced the detection of a subtle, continuous "hum" of gravitational waves rippling through the Milky Way, likely created by pairs of supermassive black holes orbiting each other in distant galaxies. Gravitational waves are tiny ripples in space itself, first predicted by Einstein, and their detection with pulsar timing arrays—using rapidly spinning stars that act as cosmic clocks—opens a new era for exploring invisible giants and the history of galaxy mergers across the universe. ✨ #gravitationalwaves⚡#pulsars⚡#blackholes⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #228 · 05.09.2025 г., 20:11

🪐 In 2023, scientists using pulsars—ultra-dense, spinning stars that emit radio pulses like cosmic clocks—detected a faint background hum of gravitational waves rippling through our galaxy. These gravitational waves, created by supermassive black holes merging in distant galaxies, gently stretch and squeeze the fabric of space, opening an entirely new window into the universe’s most titanic collisions. ✨ #gravitationalwaves⚡#pulsars⚡#blackholes⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #663 · 06.02.2026 г., 12:21

🪐 In 2015, the twin LIGO detectors in the United States made a groundbreaking discovery by directly detecting gravitational waves—tiny ripples in the fabric of space itself—caused by two black holes merging about 1.3 billion light-years away. This event, called GW150914, proved that space can literally shake, confirming a century-old prediction by Einstein and opening a whole new way to "listen" to the universe beyond just observing light or radio waves. ✨ #gravitationalwaves⚡#blackholes⚡#discovery⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #732 · 04.04.2026 г., 22:21

🪐 In 2023, astronomers using gravitational wave observatories detected GW230307, a signal from the merger of two neutron stars in a distant galaxy. Neutron stars are the incredibly dense cores left behind after supernova explosions, and their collision sent ripples—gravitational waves—through space itself, allowing scientists to study the properties of matter squeezed far beyond anything found on Earth. ✨ #gravitationalwaves⚡#neutronstars⚡#collisions⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #587 · 28.12.2025 г., 22:21

🪐 Some gamma-ray bursts last less than two seconds and are thought to result from the collision of two neutron stars—ultra-dense remnants of massive stars that pack more mass than the Sun into a space the size of a city. In 2017, the galaxy NGC 4993, about 130 million light-years away, was the site of such a collision, allowing astronomers to observe both gamma rays and gravitational waves from the same cosmic event—a rare glimpse into the most violent mergers in the universe. ✨ #gamma-ray ⚡#neutronstar⚡#gravitationalwaves⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #389 · 07.10.2025 г., 20:21

🪐 In 2020, astronomers detected gravitational waves from the merger of two black holes with highly unequal masses—one about nine times heavier than the other—in a distant galaxy. This unusual event, named GW190814, created a final object weighing about 142 times the mass of our Sun, providing the first strong evidence for so-called "intermediate-mass" black holes that fill the mysterious gap between stellar and supermassive black holes. ✨ #gravitationalwaves⚡#blackholes⚡#discoveries⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

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