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

Резултати

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

Търсене: #food

当前筛选 #food清除筛选
Midjourney Prompts Daily

@neirodrive · Post #8657 · 14.09.2025 г., 15:05

A rustic handmade ceramic mug filled with rich hot chocolate, topped with melting marshmallows and a dusting of cocoa powder. The mug sits on a weathered wooden table beside an open book and a softly folded knitted blanket. Gentle morning light filters through a window, creating soft shadows and highlighting the steam rising from the drink. Cozy, atmospheric mood, hyper-detailed, shallow depth of field, 8k resolution, warm tonal palette, lifestyle photography, no text or logos visible. --ar 3:4 --v 7 #food 📣Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #8612 · 01.05.2025 г., 07:35

Нужно почаще делать. Крайне рекомендую 👍🏼 isometric photography of delicious baguette sandwich lay on flat ground in studio, it contain (lettuce, sliced tomato and cucumber and salami sausage, melted cheese), solid dark red background, white studio lighting, minimalistic product photography, natural color and lighting, 80mm shot, high resolution --ar 2:3 --v 7 #food 📣Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #8422 · 26.03.2025 г., 16:40

An ultra-realistic photograph of the Mocha coffee cocktail in its signature glass, with layers of cream and caramel on top. The drink is placed on a wooden tray surrounded by scattered brown coffee beans. In front of it lies one small bowl filled with espresso. Soft lighting highlights the texture of each element, creating a warm atmosphere that suggests comfort without overwhelming attention to detail --v 6.1 --ar 71:128 by queen4497 #food 📣Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #8343 · 13.03.2025 г., 10:43

Ultra-realistic, 8K, highly detailed cinematic shot of tiny humanoid workers (6 inches tall) struggling to transport a massive pomegranate on a miniature wooden truck. Some tiny workers push the giant fruit up a ramp, while others tie tiny ropes to secure it in place. The mini truck's wheels sink slightly under the fruit’s weight, showing the immense size of the pomegranate. A tiny driver sits inside the miniature truck cabin, steering carefully as the vehicle moves down a narrow dirt road surrounded by lush trees. The background features more tiny workers following the truck, carrying baskets of smaller pomegranates. Photorealistic lighting, cinematic depth, and immersive storytelling. 8k --ar 9:16 --v 6.1 by thetrailerspk_66832 #food 📣Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #8185 · 29.01.2025 г., 15:49

A highly realistic advertising scene featuring a plastic cup with a straw, for decoration, on the rim is two leaves green of brown sugar. .The upper section of the cup is filled with fresh jus green tea green matcha and coco liquid with vanilla. The middle section contains a smooth, slushy iced drink made from a blend of liquid of green tea green matcha , The bottom section of the cup features A realistic scene of bubbles black café boba. This plastic cup is surrounded by a Half a piece of coconut with its green leaves, and on the other side of the plastic cup, a purple jasmine flower, and the scene is presented in an advertising and professional manner. . The entire scene is captured using professional advertising techniques and a high-quality camera, delivering a visual presentation with the highest level of realism. The background is an attractive pink shade --v 6.1 by khabbaz #food 📣Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #7837 · 23.10.2024 г., 06:39

A lavish macro picnic scene with a wicker basket filled with freshly baked baguettes, arranged beside a silver fruit tray holding pomegranates, pears, and grapes. The fruits' vibrant colors contrast against the ruby red blanket, while scattered rose petals and lavender sprigs add a touch of romantic charm. The vibrant red trees in the background create an opulent autumn backdrop, bathed in soft, warm light. Captured in high-definition photography, emphasizing textures, colors, and natural elegance --ar 3:5 --v 6.1 by newyrok1976 #food 📣 Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #7667 · 01.10.2024 г., 05:54

Create a vivid, high quality image on a white background of the following items on a plate: chocolate, grapes, onions, garlic, avocado, citrus, coffee, macadamia nuts, and walnuts --v 6.1 --ar 2:3 by hoot2055 #food 📣 Midjourney prompts

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #7572 · 20.09.2024 г., 09:23

flying waffel cone with chocolate ice cream in a shape of sculpted Greek god head, surreal beige flowy hills landscape behind, product photography, 8K high quality --v 6.1 --ar 2:3 --s 250 #food 🔱 Prompt collection

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #7486 · 12.09.2024 г., 05:52

Create a cinematic fairytale-style photo project showcasing an entire city made from Mamaliga (polenta), inspired by the traditional Orheiul Vechi landscape. The scene features enchanting hills crafted from the vibrant yellow texture of Mamaliga, with rivers of liquid sour cream winding through the terrain. The city is alive with whimsical details: trees formed from delicate slices of garlic and charming houses built from soft cottage cheese. Natural colors enhance the realism, with diffused sunlight softly highlighting every texture, creating a vivid, magical Moldovan atmosphere that balances realism with a fairytale-like wonder. Format the image in 9:16 ratio for reels, capturing the vertical majesty of the landscape --v 6.1 by kate12131415 #food 🔱 Prompt collection

Hashtags

Midjourney Prompts Daily

@neirodrive · Post #7235 · 19.08.2024 г., 05:51

Blueberry milkshakes in a round serving glass table background , side ANGLE full glass view clear composition on light wooden table background, bright daylight, on the middle of the table the style of Hasselblad X2D, following rule of third, vibrant color, no blur --s 50 --v 6.1 by azzholk007 #food 🐝 Prompt collection

Hashtags

123•••10•••20•••30•••40•••4344
ПредишнаСтр. 1 от 44Следваща