Почему я люблю языки с сильной системой типов, проверяемой статическим анализом кода — хорошо написанная программа является своей собственной спецификацией и позволяет выражать через язык программирования законы существования предметной области.
Когда-то давно я писал на ActionScript. Там была система типов, но вот десериализация JSON'ов по-умолчанию была в какой-то общий Object, к полям которого нужно было обращаться ["по_строковому_имени"]. В один момент мне потребовалось написать что-то на C#, который я совсем не знал, я стал гуглить, как десериализовать JSON, и с удивлением обнаружил кучу советов заранее объявить класс со всеми нужными полями и десериализовать в него.
"Какой ужас!", — подумал я тогда, — "Это же дико неудобно! А если я не знаю полей JSON? А если их много? Отвратительный язык!"
Теперь то я прекрасно понимаю, что JSON это контракт, и что правильная десериализация только такая и должна быть, и что в хорошем API в одном поле никогда не бывает данных принципиально разных типов, и так далее.
Нет, если вы набиваете вечерами пет-проект или сидите бессонную ночь на хакатоне, нет ничего плохого в том, чтобы взять простой язык с динамическими типами вроде JavaScript или Python, не требующий описывать данные. Но вот в энтерпрайзе, особенно когда над одним проектом работает много людей (а бывает это очень часто) — хорошее использование системы типов убережёт разработчиков от огромного количества ошибок, будет бить их по рукам, когда они пытаются сделать что-то не то, и будет подсказывать, когда они не уверены в чём-то.
С помощью статической типизации можно на уровне кода обозначить правила, по которым ведёт себя предметная область вашей программы в реальном мире. Разработчику не только будет сложно их нарушить, но он ещё и станет узнавать какие-то вещи, которые мог не знать раньше.
Например, если мы делаем медицинскую CRM, и больница заводит новых пациентов только тогда, когда знает их группу крови, мы можем объявить тип "Пациент" (или, если точнее, "Карта пациента") и запретить создавать экземпляры этого типа, не передав в конструктор группу крови (которая, в свою очередь, тоже является типом, вероятнее всего ValueObject'ом). Если новый программист пришёл в проект, он, во-первых, не сможет записать в БД некорректную карту пациента. Понятно, мы не учитываем случаи, когда новый программист переделывает модели предметной области — это будет хорошо видно на кодревью. А, во-вторых, даже если ему никто не сказал, что пациенты должны быть с группой крови, он узнает это из кода. И уже будет понимать, что в тех процессах реальной жизни, которые он описывает кодом, карта пациента создаётся только при наличии группы крови. А, значит, нужно искать какой-то способ сначала эту группу крови получить, и только потом создавать карту. Программирование моделирует реальный процесс.
В настоящей работе даже на языках с типами, конечно, без должного контроля можно написать что угодно. Нужна управленческая воля, компетентность руководства, понимание опасности техдолга, в идеале отдельные должности для архитекторов, опытные лиды и старшие разработчики. Но когда всё это есть, можно отсекать много проблем ещё на старте и проще погружать новичков.
#dev
📖Title : King of Envy
✍️Author : Ana Huang
⭐️Rating : 4.11/5 (Goodreads)
📆Published : Apr 29, 2025
————————————————
Summary:King of Envy by Ana Huang is a passionate, slow-burn billionaire romance that dives deep into obsession, betrayal, and forbidden longing. Vuk Markovic, a reclusive billionaire haunted by past trauma, harbors an unspoken desire for Ayana Kidane—a graceful supermodel engaged to his best friend in a strategic business alliance. As Vuk and Ayana’s connection grows, they struggle against duty, loyalty, and the guilt of their emotions. Set in a world of power and secrets, their love threatens to upend everything. Huang weaves an emotional tale of vulnerability, sacrifice, and the risk of loving someone you were never supposed to touch.
————————————————
#romance#darkromance#contemporary#adult@Bookslibraryofficial@free_novellas@the_ancient_library
📖Title : Sweet Venom
✍️Author : Rina Kent
⭐️Rating : 4.10/5 (Goodreads)
📆Published : Dec 02, 2025
————————————————
Summary:After witnessing a gruesome murder, the heroine’s life spirals into chaos when Jude Callahan, a notorious and dangerously magnetic hockey star, sets his sights on her. What begins as a deadly entanglement soon becomes an intense, obsessive connection fueled by fear, desire, and the shadows haunting them both. Jude is ruthless, unpredictable, and willing to ruin anyone who threatens what he claims as his. As she becomes trapped in his world of violence, secrets, and twisted passion, she must decide whether he is her greatest danger or the only person capable of protecting her from an even darker truth.
————————————————
#darkromance#romance#sports#fiction@Bookslibraryofficial@free_novellas@eternalmantra
Дилогия «Симфония безумия» завершена!
«Игра престолов» встречается с «Кодом да Винчи», а «Пентхаус» и «Черный лебедь» играют для них оперу на стадионе 🎻🎹
🎶Симфония безумия: Реквием по лжецам
Аннотация
В мире, где нотами пишут признания в убийстве, а аплодисменты звучат как приговор, нет места невинным.
Семь лет молчания. Семь лет боли. Завещание маэстро дарит Валери не состояние, а партитуру, где зашифрованы преступления ее отца. Но первая же нота влечёт за собой смерть, а первое доверие – ложное обвинение для Адриана и клеймо убийцы для неё.
Единственный способ спастись – сыграть проклятую симфонию до конца. Но в игре, где каждая нота – новый обман, а любовь пахнет предательством, нельзя доверять никому.
Сможет ли она сыграть финальный аккорд, зная, что правда, которую он откроет, убьёт её отца? И как вернуть того, кто, очнувшись от комы, видит в тебе лишь врага?
Тропы
• Мафия в искусстве
• Героиня с амнезией
• Проклятое наследие
• Враги 👉 союзники
• Драма о богатых и знаменитых
• Женская месть
Читать на ЛитРес
🎶Симфония безумия: Ария мести
Аннотация
Он не помнит ее. Она не может забыть его.
Вместе они превратят сцену в эшафот.
Адриан очнулся от комы с пустотой вместо прошлого.Валери считают мертвой, но она – солистка в группе своего отца, вшивающая в каждый хит зашифрованные улики. Ее голос – навязчивая мелодия, которую он не может выбросить из головы, и главное оружие в тайной войне.
Их месть станет симфонией, которую услышит весь мир. Их доказательства взорвутся на экранах стадиона в прямом эфире. Но цена правды окажется последней жертвой.
Что останется, когда смолкнет музыка мести? И кто они друг для друга – палачи, союзники или спасение?
Тропы
• Тайная личность
• Искусство как оружие
• От ненависти до любви
• Он ненавидит всех, кроме нее
• Месть в стиле хоррор
• Фальшивая смерть как суперсила
Читать на ЛитРес
P.s. Как и по традициям Dark romance, вас ждут здесь сцены🔠🔠🔠 И одна из них с участием дирижерской палочки... Да, вы не ослышались.
#сб#риямиллер#триллер#darkromance
📖Title : The Syndicater
✍️Author : RuNyx
⭐️Rating : 3.63/5 (Goodreads)
📆Published : Nov 15, 2024
————————————————
Summary:In The Syndicater by RuNyx, the final installment of the Dark Verse series, four powerful couples come together to dismantle the sinister Syndicate that has haunted them all. As long-buried secrets surface, relationships are tested, and personal demons rear their heads. Each character must confront past traumas and make life-altering choices in the pursuit of justice, closure, and freedom. Loyalties blur, enemies rise, and love is pushed to its breaking point. Amid the chaos, vengeance finds purpose, redemption becomes possible, and healing begins. It’s a dark, emotional climax where violence and tenderness coexist—and where survival means rewriting destiny itself.
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : The Annihilator
✍️Author : RuNyx
⭐️Rating : 4.14/5 (Goodreads)
📆Published : Jul 01, 2022
————————————————
Summary:In The Annihilator by RuNyx, Lyla, a broken yet resilient woman trapped in a nightmarish world of trafficking, finds herself under the watch of a lethal, mysterious man known only as the Shadow Man. He has stalked her for years—not to harm, but to protect from the shadows. When fate forces their worlds to collide, she is pulled into his dangerous reality, one where vengeance, obsession, and pain blur into something hauntingly intimate. As Lyla grapples with her trauma, the Shadow Man must face the question: can a monster like him love without destroying what he seeks to protect?
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : The Finisher
✍️Author : RuNyx
⭐️Rating : 4.06/5 (Goodreads)
📆Published : Dec 14, 2021
————————————————
Summary:Alessandro 'Alpha' Villanova rose from the brutal streets of Los Fortis to rule its underworld, feared, powerful, and utterly alone. Zephyr de la Vega, bright and ordinary, lives far from his world—until fate throws them together in an unexpected encounter. When she makes a bold proposition, their lives entangle in ways neither imagined. As a mysterious killer dismantles Alpha’s empire and The Syndicate threatens war, their bond deepens—transforming into something fierce, fragile, and consuming. In a city where blood reigns and shadows breathe, light meets darkness, love meets survival, and a new, deadly order emerges—built on pain, passion, and power.
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : The Emperor
✍️Author : RuNyx
⭐️Rating : 4.20/5 (Goodreads)
📆Published : Jan 06, 2021
————————————————
Summary:Dante Maroni, heir to the feared Tenebrae Outfit, hides a ruthless soul behind charm and silence—especially when it comes to Amara, the housekeeper’s daughter he secretly loves. Amara, abducted at fifteen and forever changed, returns years later to a world of shadows and secrets. As Dante infiltrates the Syndicate behind her trauma, dark truths unravel, forcing both into a violent game of survival. Bound by shared pain and buried passion, they transform their youthful affection into a fierce, undeniable bond. Together, the reluctant king and inevitable queen rise, not just to love, but to rule—creating an empire born of death.
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : The Reaper
✍️Author : RuNyx
⭐️Rating : 4.29/5 (Goodreads)
📆Published : Jun 30, 2020
————————————————
Summary:"The Reaper" by Runyx is a dark romance novel that tells the story of a ruthless assassin known as “The Reaper,” whose life of violence and solitude is disrupted when he crosses paths with a fiery, strong-willed woman. Bound by secrets, trauma, and a thirst for vengeance, their worlds collide in a dangerous dance of obsession and redemption. As their connection deepens, love battles brutality, and past wounds resurface with devastating consequences. With morally grey characters, intense chemistry, and a shadowy atmosphere, the story explores how even the most broken souls can find solace and healing in each other.
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : The Predator
✍️Author : RuNyx
⭐️Rating : 3.99/5 (Goodreads)
📆Published : Jan 01, 2020
————————————————
Summary:The Predator by Runyx is a dark mafia romance that follows Morana Vitalio, the brilliant and rebellious daughter of a powerful crime lord. When sensitive information is stolen from her father’s empire, she’s forced to work with Dante Maroni—her father’s rival and a cold, deadly enigma known as the Predator. As they dive deeper into a world of secrets, lies, and betrayals, their reluctant partnership turns into a slow-burning, dangerous attraction. Both are haunted by past trauma and entangled in a legacy of violence. The story blends tension, mystery, and steamy intensity as power dynamics shift and dark truths unfold.
————————————————
#romance#darkromance#fiction#adult#mystery@Bookslibraryofficial@free_novellas@thesciencelabs
📖Title : Enigma
✍️Author : RuNyx
⭐️Rating : 3.91/5 (Goodreads)
📆Published : Apr 29, 2025
————————————————
Summary:Enigma by RuNyx is a steamy dark academia romance that follows Salem Salazar, the black sheep of a wealthy family, as she enters Mortimer University to uncover the truth behind her sister's mysterious death. Obsessed with death and driven by secrets, Salem is soon entangled with Cazimir van der Waal—a chaotic, brooding artist and teaching assistant with a hidden past. Their intense, rivals-to-lovers relationship unfolds amid secret societies, missing girls, and deadly mysteries on campus. As danger closes in, passion ignites between fire and ice. *Enigma* is a twisted, suspenseful tale of obsession, love, and peril set in an academic underworld.
————————————————
#fiction#darkromance#fantasy#romantasy#darkacademia@Bookslibraryofficial@free_novellas@the_ancient_library
📖Title : A Touch of Fate
✍️Author : Cora Reilly
⭐️Rating : 3.86/5 (Goodreads)
📆Published : Jun 25, 2025
————————————————
Summary:A Touch of Fate by Cora Reilly centers on Emma Mancini, bound to a wheelchair after childhood trauma, who enters an arranged marriage with Samuel Mione, the future Underboss of the Chicago Outfit. Initially, their union feels cold and transactional—Samuel is distant, burdened by his own emotional demons and guilt. But Emma refuses to remain passive. Despite society’s doubts about her worth, she challenges Samuel’s emotional barriers. As she fights to prove her strength and resilience, both must navigate their past pains, question their destinies, and discover whether love can truly heal and transform hardened hearts.
————————————————
#darkromance#romance#dark#contemporary#disability#adult@Bookslibraryofficial@free_novellas@thesciencelabs