淘沙TV
函数式编程

用函数式方法做领域建模

原名:Domain Modeling Made Functional
Gennadi·YouTube 7.4 万次观看·B站 371 播放··51:40
在 B 站打开 原 YouTube 版本

关于这个视频

Scott Wlaschin 展示了静态类型函数语言如何使用 F# 示例对业务领域进行建模,以便无法表示无效状态。类型系统的行为几乎就像编译时的即时单元测试。

HN 为什么推荐它:HN 将其视为具有类型和“使无效状态无法表示”的领域驱动设计的规范且平易近人的示例。

“这次演讲让我看到了 f# 哲学和类型系统的力量”— HN 评论 · 2020 · 原文

查看英文原文

Scott Wlaschin shows how statically typed functional languages, using F# examples, can model a business domain so that invalid states cannot be represented. The type system acts almost like an instant unit test at compile time.

Why HN likes it: HN treats it as the canonical, approachable example of domain-driven design with types and 'make invalid states unrepresentable'.

“this talk opened my eyes to the power of f# philosophy and type system”

HN 提及 4 次推荐者 3 人首次 2020最近 2026质量分 4.5

原视频频道:KanDDDinsky · YouTube 7.4 万次观看

演讲进阶常青f#函数式编程领域驱动设计类型系统斯科特·弗拉辛