TW: нудный гик-стафф про бытовую технику.
Кофемашина в какой-то момент не включила индикатор переполненности контейнера для жмыха. Это странно, поэтому я стал разбираться. Вообще, техника редко глючит непонятным образом и ведет себя хаотично. Всегда есть какая-то причина. При отладке программы это тоже надо всегда помнить.
Как машина узнаёт, что контейнер полон? Никак. У контейнера есть герконовый датчик, показывающий факт его установки в корпус. Когда ты его вытаскиваешь, машина думает, что ты его очистил. А дальше программа просто знает, что одинарный кофе наполняет контейнер на X, двойной на 2X, а вместимость nX.
Что произошло: я открыл контейнер посмотреть, заполнен ли он целиком. А потом закрыл обратно, не очистив. В оценке уровня жмыха появилась аддитивная погрешность.
Если позволить человеку ввести систему в неправильное состояние, он рано или поздно это сделает. Кстати, по той же причине мне нравится DDD как архитектура для энтерпрайз разработки: если всё правильно спроектировать, то программист слоя приложения, который является "пользователем" домена, не сможет сломать состояние сущностей и агрегатов.
В общем, в машине не хватило защиты от дурака. Как бы я решал эту задачу? Сходу приходит в голову какой-нибудь оптический датчик в верхней части контейнера. В худшем случае он запачкается и сработает ложно-положительно, что вызовет необходимость для пользователя лишний раз почистить контейнер.
Но ТРИЗ намекает нам на другой подход. Можно попробовать полностью исключить появление жмыха. Так устроены, например, капсульные машины. У нас такая была, но перешли на зерновую, потому что вкусный качественный кофе в зёрнах на порядки дешевле, чем в капсулах, а пьем мы его много. Особенно кофе с молоком, для которого в капсулах просто концентрат, а не настоящее молоко.
Если исключить жмых нельзя, то нужно сделать его удаление неотъемлемой частью процесса обслуживания машины. Думаю, я бы попробовал объединить конструктивно контейнер для зёрен и для жмыха, и рассчитать объёмы так, чтобы второго хватило на один цикл траты первого. Тогда даже датчики не нужны: кончились зёрна, и ты неизбежно достаешь контейнер и очищаешь.
Сфоткал для вас чашечку ароматного капучино.
#life
a melancholic unearthly attractive albino goddess with pale skin in a elegant dress, she is petting black human's arms that form out of the darkness. It annoying her but beautiful at the same time, magazine cover, fashion shot --ar 4:5 --v 7 --draft
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --v 7
by prisenkoan
#fantasy
📣 Midjourney prompts
photorealistic tall-format scene in Ralph Lauren rustic-luxury style. A woman with long, beautifully coiffed black hair stands by a large-paned window inside a refined, moody room. She wears a flowing satin gown and robe, gazing at a violent storm outside. The storm is fierce and foreboding, with trees bending in the wind, swirling leaves, heavy rain slashing against the window, and distant lightning illuminating a stormy night sky. The room is warm and opulent, lit by soft candlelight and a glowing fireplace. Equestrian and vintage Americana decor--dark wood, leather armchairs, and brass accents. Color palette: deep navy, burgundy, forest green, warm amber. Mood: cinematic, gothic, powerful, a sanctuary against the untamed storm --ar 3:4 --style raw --v 6.1
by daci_zaha
#fantasy
📣Midjourney prompts
establish shot of a middle-aged ancient persian general warrior sleeping under a tree. his white horse is standing far on the vast field, wears an ornate helmet of a skull with a pair of curved horns extend from the sides it, He is clad in elaborate armor of tiger-skin, a red sash around his waist, and decorative golden knee guards, cinematic shot, night time --ar 9:16 --v 6.1
by jarrell_odonell77
#fantasy
📣Midjourney prompts
A cosmic void with a glowing green portal slowly opening. The portal’s edges shimmer with crackling energy, and ghostly, tentacle-like forms begin to emerge. The scene is filled with swirling, otherworldly clouds in shades of green and purple, creating a hypnotic vortex effect. In the foreground, a solitary cultist stands on a jagged rock outcrop, arms raised toward the portal in supplication. The camera captures the moment from a low angle, emphasizing the grandeur of the portal and the cultist’s insignificance in comparison. The lighting is surreal, with the portal casting eerie shadows across the landscape. --ar 16:9 --v 6.1
by nsihi_01366
#fantasy
📣 Midjourney prompts
A radiant starlight elf with glowing golden horns, her intricate facial tattoos resembling constellations, glowing light in her face, soft and ethereal expression, her hair flowing like liquid gold, hyper realism, hyper detail, neon glow, detailed skin, cinematic lighting, Fujifilm Superia, full HD, taken using a Canon EOS R5 camera, 80mm lens, solid pink background --ar 9:16 --p 78qe8bg --v 6.1
by prisenkoan
#fantasy
📣 Midjourney prompts
A foggy Victorian-era forest with a hidden ancient stone altar covered in strange, glowing runes. A horned shadow looms over the altar, barely visible through the mist. The atmosphere is tense and foreboding, with twisted trees forming claw-like shapes and the ground littered with broken branches. – sepia filter, Victorian horror, haunting and mystical --ar 16:9 --v 6.1
by max3en
#fantasy
📣 Midjourney prompts
In the secluded and mysterious deep mountains, a huge pale blue mushroom is scattering spores, as if communicating with the surrounding environment. This scene is presented in a long shot composition. The top of the mushroom emits soft light, and the stem part has fine textures. The picture adopts a surreal photography style, integrates fantasy art aesthetics, has studio lights, has the strange beauty of Chinese style, exquisite lines, is rendered by Unreal Engine, presenting 8K movie effects and real light and shadow effects --ar 9:16 --v 6.1
by ellie_21352
#fantasy
📣 Midjourney prompts
A close-up portrait of a mystical figure with a dual persona. One side of their face is adorned with intricate golden armor, detailed with elegant patterns and flourishes. The other side is engulfed in dark, organic shadows that resemble living flames or smoky tendrils, blending seamlessly into their skin. Their eyes are strikingly different: one a piercing, icy blue and the other a fiery, intense amber. The figure’s gloved hands, dark and clawed, frame their face as they look forward with a mix of allure and mystery. Soft, wavy hair cascades around them, highlighted by warm lighting that contrasts beautifully with the darkness. The mood is surreal and fantasy-inspired, blending beauty and darkness with high detail and dramatic lighting --ar 9:16 --v 6.1
by boombamblum1
#fantasy
📣 Midjourney prompts
An antique hand holding the sacred heart of divine love, with silver ornaments and rays around it, in the style of hyper-realistic photography. --ar 85:128 --v 6.1 --p kqus8w7 --s 90
by cherryoasis
#fantasy
📣 Midjourney prompts