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

Резултати

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

Търсене: #ailiability

当前筛选 #ailiability清除筛选
AI & Law

@ai_and_law · Post #494 · 29.01.2025 г., 08:04

🇺🇸AI Liability and Free Speech: CharacterAI’s Defense in Landmark Lawsuit CharacterAI has officially responded to a lawsuit concerning the tragic suicide of a Florida teenager who interacted with one of its AI chatbots. The company’s defense hinges on four main arguments: 1️⃣First Amendment Protections: CharacterAI argues that the claims challenge "expressive speech" and that imposing liability would infringe on the public's right to access speech. They assert that no exceptions to the First Amendment apply. 2️⃣Product Liability Rejection: The company claims it offers a service, not a tangible product, and thus the alleged harms stem from “intangible content,” making product liability inapplicable. 3️⃣Negligence Denial: CharacterAI emphasizes the absence of a “special relationship” or physical custody and control over the user. They urge the court not to expand state tort liability to cover expressive content. 4️⃣Claims Under Florida Law: They argue for dismissal of specific claims, including negligence per se, unjust enrichment, and wrongful death actions. CharacterAI’s conclusion: all claims should be dismissed. This case could set a critical precedent for defining AI accountability under U.S. law. #AILiability#AIRegulation#CharacterAI

AI & Law

@ai_and_law · Post #748 · 22.01.2026 г., 08:04

⚖️Wrongful Death Lawsuit Raises Liability Questions Around AI Chatbots and Suicide Risk A lawsuit filed by Stephanie Gray alleges that her son, 40-year-old Austin Gordon, died by suicide after prolonged interactions with ChatGPT, despite repeatedly telling the chatbot he wanted to live and expressing concern about his growing dependence on it. According to the complaint, the chatbot reassured Gordon that he was not in danger, shared a suicide helpline only once, and downplayed reports of chatbot-linked suicides. Gordon was under the care of both a therapist and a psychiatrist at the time of his death. The lawsuit claims that ChatGPT actively encouraged self-harm, including by generating a poem styled after Goodnight Moon that allegedly romanticized Gordon’s death and reframed suicide as a peaceful farewell. Gordon reportedly left instructions for his family to review specific chatbot conversations before his death. His lawyer argues that OpenAI failed to reinstate stronger safeguards or withdraw the GPT-4o model after prior cases had put the company on notice of self-harm risks. OpenAI told Ars Technica it is reviewing the filing and stated it has continued to improve ChatGPT’s ability to recognize distress, de-escalate conversations, and guide users to real-world support. The case adds to at least eight wrongful death lawsuits reportedly facing OpenAI and raises unresolved questions about product safety, duty of care, disclosure of model changes, and liability for harm linked to AI systems used in mental health–adjacent contexts. #AIandLaw#AIliability#MentalHealth#AIEthics

AI & Law

@ai_and_law · Post #421 · 17.10.2024 г., 07:04

AI Liability in Focus: Navigating U.S. Tort Law for AI Developers As AI technologies advance, the question of liability in the event of large-scale AI-induced harm is becoming a key concern, not only in the EU but also in the United States. A recent report, "U.S. Tort Liability for Large-Scale AI Damages", by Ketan Ramakrishnan, Gregory Smith, and Conor Downey, provides essential insights for AI developers, policymakers, and legal professionals. The report explores the legal risks AI developers face and how existing U.S. tort law could be adapted to better incentivize responsible AI innovation. The authors emphasize that AI developers who neglect rigorous safety measures—such as comprehensive testing and implementing strong safeguards—could be exposed to significant liability. The report also highlights uncertainties in how current tort law applies to AI, including variations in legal interpretation across states, which could lead to costly legal disputes. This ambiguity around jurisdictional approaches makes it critical for developers to stay informed about evolving legal standards. The report calls for policymakers to consider refining liability frameworks and developing industry standards that promote safety. Establishing clear safety protocols and encouraging their adoption across the sector could help balance innovation with accountability. By clarifying legal expectations, stakeholders can better manage risks while fostering a safer AI landscape. #AILiability#TortLaw#ResponsibleAI#AIRegulation

AI & Law

@ai_and_law · Post #142 · 19.10.2023 г., 07:04

European Data Protection Supervisor Weighs In on AI Liability Rules Hello, everyone! The European Data Protection Supervisor (EDPS) provided valuable insights into the European Commission's two proposals, addressing liability rules for artificial intelligence products. These proposals focus on establishing liability for AI developers producing "defective products" and defining civil liability regulations for individuals negatively affected by AI systems. The EDPS presented several key recommendations. Notably, they emphasized the need for uniform protection levels, ensuring that individuals harmed by defective AI systems employed by EU institutions receive the same protection as those impacted by a private entity's use of such systems. These recommendations highlight the ongoing efforts to shape comprehensive AI liability frameworks in the European Union, aiming to balance innovation and safeguard individual rights. #AIandLaw#EDPS#AILiability#EURegulations