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

Резултати

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

Търсене: #spaceships

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

@cosmomyst · Post #691 · 21.02.2026 г., 22:21

🪐 NASA’s Psyche mission is sending a high-tech spacecraft to the asteroid 16 Psyche, testing a new electric propulsion system called Hall thrusters. Hall thrusters use electricity and magnetic fields to accelerate charged particles (ions) for thrust, offering a more efficient way to travel long distances—demonstrating key technology that could power spaceships to worlds like Ceres or the moons of Jupiter in the future. ✨ #spaceships⚡#propulsion⚡#asteroids⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #666 · 07.02.2026 г., 22:21

🪐 ESA’s Hera mission, launching soon to study asteroid Didymos and its moon Dimorphos, is bringing a new kind of space probe—one equipped with autonomous navigation, letting the spaceship guide itself during its close encounters. This technology, inspired by how insects use simple visual cues to avoid obstacles, could pave the way for future spaceships that explore places like Jupiter’s moon Europa or the rings of Saturn independently, relying less on commands from Earth and more on real-time decisions. ✨ #spaceships⚡#technology⚡#exploration⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #399 · 09.10.2025 г., 20:21

🪐 The future of interstellar travel may rely on building spacecraft capable of withstanding long-duration journeys across vast distances like the 4.37 light-years to Alpha Centauri. NASA’s Starlight project is studying how powerful ground-based lasers could push small, ultra-light probes to a significant fraction of the speed of light—over 100 million kilometers per hour—enabling them to reach nearby star systems in just a few decades rather than millennia. ✨ #spaceships⚡#technology⚡#exploration⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #168 · 21.08.2025 г., 20:11

🪐 The Japanese spacecraft Hayabusa2 demonstrated a glimpse of future spaceship technology by visiting the asteroid Ryugu, collecting samples, and returning them to Earth in 2020. Its advanced ion propulsion system and autonomous navigation allowed it to land and lift off from the tiny asteroid's weak gravity—a feat that opens the door to more complex robotic missions to objects like Bennu and even farther out in the solar system. ✨ #spaceships⚡#exploration⚡#technology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #106 · 09.08.2025 г., 16:11

🪐 NASA's Solar System Ambassador program highlights the rapid development of electric propulsion for future spaceships, like the ion engines used on the Dawn spacecraft. Ion engines work by shooting electrically charged atoms, called ions, out of the back of the spacecraft, allowing for extremely efficient travel to distant worlds such as the asteroid Vesta and the dwarf planet Ceres. ✨ #spaceships⚡#technology⚡#exploration⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #627 · 19.01.2026 г., 22:21

🪐 NASA has announced plans for its first nuclear-powered rocket in over 50 years, aiming to test an engine in space by 2027. This new technology, called nuclear thermal propulsion, could dramatically reduce travel time to Mars and distant worlds like Europa by heating hydrogen to generate powerful thrust—making human missions to the outer solar system more achievable than ever before. ✨ #spaceships⚡#technology⚡#Mars⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #567 · 19.12.2025 г., 12:21

🪐 Deep space travelers will experience time differently than people on Earth—a mysterious effect called time dilation. If astronauts took a fast journey to the star Sirius (8.6 light-years away) on a spaceship moving near the speed of light, their onboard clocks would run much slower than those back home, so they would age less during the trip—even while years passed on Earth. This real phenomenon comes straight from Einstein’s theory of relativity and shows how speed itself can turn space voyages into journeys through time. ✨ #timedilation⚡#relativity⚡#spaceships⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #623 · 15.01.2026 г., 12:21

🪐 Scientists studying the future of interstellar travel are exploring how hydrogen harvested from interstellar space—called "ramjet" propulsion—could one day fuel journeys to stars like Alpha Centauri, located over 4 light-years from Earth. A concept known as the Bussard Ramjet proposes using a huge electromagnetic field to collect hydrogen atoms as a spaceship speeds through space, fusing them for energy in the same way stars do, potentially enabling continuous acceleration across vast cosmic distances. ✨ #spaceships⚡#technology⚡#AlphaCentauri⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #508 · 19.11.2025 г., 22:21

🪐 NASA’s upcoming VERITAS mission will send a spaceship equipped with advanced synthetic aperture radar and infrared sensors to Venus, mapping the planet’s surface in detail never achieved before. VERITAS will peer through Venus’s thick clouds to unveil its volcanic terrain and tectonic features, opening a new frontier for robotic exploration in one of the solar system’s most extreme environments. ✨ #spaceships⚡#venus⚡#technology⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #479 · 05.11.2025 г., 12:21

🪐 NASA’s upcoming DAVINCI mission is set to test a new kind of spaceship technology as it descends through the thick atmosphere of Venus in the late 2020s. The spacecraft will use a combination of heat shielding and parachutes designed to survive the planet’s crushing pressure and scorching surface temperatures—over 460°C—pushing the limits of materials and engineering needed for future robotic explorers of extreme worlds like Venus and beyond. ✨ #spaceships⚡#technology⚡#Venus⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #673 · 11.02.2026 г., 12:21

🪐 Scientists are researching how self-healing materials could revolutionize interstellar travel, allowing future spacecraft bound for distant stars like Proxima Centauri to repair themselves from cosmic dust impacts and radiation damage. These advanced materials are designed to sense and fix tiny cracks or holes automatically, greatly increasing the durability and safety of deep space missions as they travel through the harsh, unpredictable environment between the stars. ✨ #spaceships⚡#technology⚡#innovation⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

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