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

Резултати

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

Търсене: #scifi

当前筛选 #scifi清除筛选
Parallel Experiments

@LinghaoCh · Post #890 · 18.09.2024 г., 17:56

Recently I’ve been reading sci-fi by qntm and had a blast. He’s probably most known for the novel There Is No Antimemetics Division which is a gem in a SCP setting. Highly recommended. If you need some convincing, read this short story first: https://qntm.org/transi P.S. Most of his works is freely available on his website. #scifi

Hashtags

В фантастике часто встречается сюжет о сверхмощном компьютере, который обрабатывает внутри себя симуляцию мира (вселенной, планеты, города). В 6-й серии 10-го Доктора Кто инопланетяне создают симуляцию Земли, чтобы понять, как её захватить. В сериале Devs герой делает виртуальную копию вселенной, чтобы знать всё прошлое и будущее. Нередко искусственный интеллект продумывает все варианты развития человечества, чтобы подсказывать людям лучший выбор (начиная от Мультивака Айзека Азимова и заканчивая третьим сезоном Westworld). Порассуждал с точки зрения программиста о том, почему это, скорее всего, принципиально невозможно. #scifi#dev https://teletype.in/@clockstackwheels/computer-prediction

Hashtags

movies & series 🍿

@images · Post #1666 · 05.09.2024 г., 13:55

🍿 Coppola’s Epic Comeback: ‘Megalopolis’ Drops Stunning Final Trailer After Controversy 📆Release: September 23, 2024 (IMAX) · September 27 (Theaters) 🎭Genre: #SciFi · #Drama 🔥 After the uproar caused by the first trailer, which was pulled for using fake critic quotes, Francis Ford Coppola is back with a fresh trailer for Megalopolis—this time, free of drama! In this modern epic, Adam Driver plays Caesar, a visionary architect trying to rebuild New Rome 🌆 after a disaster, facing off against Mayor Cicero (Giancarlo Esposito), who defends a corrupt system. Nathalie Emmanuel, as Julia, the mayor’s daughter, is torn between love for Caesar and loyalty to her father ❤️⚔️. With an all-star cast featuring Laurence Fishburne, Aubrey Plaza, and Shia LaBeouf, this trailer 🚀 resets expectations for Coppola’s decades-long passion project. 🎬 After its lukewarm reception at Cannes, the director aims to redeem his legacy with a visually stunning and ambitious film. 🌟

Hashtags

movies & series 🍿

@images · Post #1864 · 30.06.2025 г., 13:36

🍿 Project Hail Mary: Too Spoiler-Heavy to Be Epic? 📆Release: March 20, 2026 🎭Genre: #SciFi · #Comedy 🍿Follow movie I’ll admit the trailer had me on the edge of my seat… until they showed Rocky and killed all the mystery. Ryan Gosling (‘Barbie’, ‘First Man’) is Ryland Grace, the reluctant science teacher turned astronaut tasked with saving our dying sun, and Sandra Hüller (‘Anatomy of a Fall’) is the voice of reason pushing him into the void Directors Phil Lord and Christopher Miller (‘Spider-Man: Into the Spider-Verse’, ‘The Lego Movie’) deliver stunning visuals, but was it necessary to reveal the alien encounter so early? 😤 Some book fans call it “selfish” to lay out the twist, while others praise the clarity and Weir-style humor. To me, this marketing gamble is a high-wire act between surprise and spectacle. 🚀✨

movies & series 🍿

@images · Post #1804 · 19.03.2025 г., 13:04

🍿 'Mickey 17': Dying Over and Over for a Paycheck 📆Release: March 7, 2025 🎭Genre: #SciFi · #Thriller It's hard to accept that 'Mickey 17' is becoming one of those inexplicable cases where quality and box-office success don't align. This film marks Bong Joon Ho's highly anticipated return following his monumental success with 'Parasite', which elevated him to cinematic greatness, earning four Oscars and a Palme d'Or. This time, the South Korean genius blends the dark satire of 'Snowpiercer' with the sharp social and environmental commentary he explored in 'Okja', delivering a futuristic dystopia as amusing as it is thought-provoking. 👉 Continue reading here 🍿🌟

movies & series 🍿

@images · Post #1763 · 22.01.2025 г., 20:14

🍿 'Mickey 17': The Clone That Won't Quit and Dies Over and Over Again 📆Release: March 7, 2025 🎭Genre: #SciFi · #Thriller I love how Mickey 17 blends the suffocating atmosphere of Moon with the dark humor of Snowpiercer. Robert Pattinson (The Lighthouse, Tenet) plays an "expendable" forced to die repeatedly while his boss prints new copies of him aboard a ship headed to a frozen planet. 💀🔁 How will Mark Ruffalo (Poor Things) fare in what seems like a villainous role? We'll also see Toni Collette and Steven Yeun embracing their wildest sides. Director Bong Joon Ho, the mastermind behind Parasite and Okja, dives back into his signature dark comedy vibe. On top of it all, Naomi Ackie (Star Wars: The Rise of Skywalker) adds a romantic touch to counterbalance the chaos. Let's see if this adaptation can outdo the limitations of the original book and if the "Batman in space" vibe 🦇🚀 delivers memorable moments. Without a doubt, dying repeatedly has never looked so fun.

movies & series 🍿

@images · Post #1821 · 23.04.2025 г., 17:54

🍿 Predator: Badlands – The Predator’s got a makeover… and a heart? 📆Release: November 7, 2025 🎭Genre: #SciFi · #Action 🍿Follow Movie Dan Trachtenberg (Prey, 10 Cloverfield Lane) returns to shake up the Predator universe once again. In Predator: Badlands, the tables turn — a young outcast Predator teams up with Thia, played by Elle Fanning (The Great, Super 8), on a hostile alien planet. Fanning pulls double duty, playing twin sisters — and one of them might be a Weyland-Yutani android 👁. The aesthetic is gritty, weirdly emotional, and yes, the Predator has main character energy (and a killer hairstyle). 😎 I’m intrigued by the bold direction, but here’s the question: does humanizing the Predator risk stripping away the fear that made him iconic? Or is this exactly the fresh angle the franchise needed to evolve past its own formula?

movies & series 🍿

@images · Post #1694 · 23.09.2024 г., 13:00

🍿 Venom: The Last Dance promises an epic farewell 📆Release: October 25, 2024 🎭Genre: #Action · #SciFi 🎬 The final chapter of Tom Hardy’s 'Venom' trilogy is almost here, and the last trailer teases an explosive conclusion. Eddie Brock and Venom face off against alien creatures led by Knull, the god of symbiotes, in a wild chase to Las Vegas. Yes, it's as crazy as it sounds! 🎰 With a comedic twist, Hardy and Venom take on Vegas in a hilarious, action-packed ride, closing a trilogy that’s balanced the grotesque with pure entertainment. The best part? A surprise Marvel villain awaits!

movies & series 🍿

@images · Post #1680 · 12.09.2024 г., 16:46

🍿 Venom: The Last Dance promises an epic farewell 📆Release: October 25, 2024 🎭Genre: #Action · #SciFi 🎬 The final chapter of Tom Hardy’s 'Venom' trilogy is almost here, and the last trailer teases an explosive conclusion. Eddie Brock and Venom face off against alien creatures led by Knull, the god of symbiotes, in a wild chase to Las Vegas. Yes, it's as crazy as it sounds! 🎰 With a comedic twist, Hardy and Venom take on Vegas in a hilarious, action-packed ride, closing a trilogy that’s balanced the grotesque with pure entertainment. The best part? A surprise Marvel villain awaits!

movies & series 🍿

@images · Post #1553 · 03.06.2024 г., 16:31

🍿 Farewell Venom! 'Venom: The Last Dance' Promises an Epic Finale 📆Premiere: October 25 🎭Genre: #Action · #SciFi Tom Hardy bids farewell to Eddie Brock and his symbiote in 'Venom: The Last Dance,' the final installment of the trilogy. This last trailer shows Eddie and Venom on the run, facing a massive alien and government agents. Directed by Kelly Marcel, the film promises frenetic action and even a Venom-ized horse. The cast includes Juno Temple and Chiwetel Ejiofor. After the success of 'Venom' and 'Venom: Let There Be Carnage,' Sony is going all out to close this surprising box office hit with a bang. 🎬🚀 > 𝘴𝘦𝘳𝘪𝘦𝘴 · 🚀𝘣𝘰𝘰𝘴𝘵

123•••10•••1415
ПредишнаСтр. 1 от 15Следваща