A Purist's Guide to Type-Driven Design in Go - Angus Morrison - July Gophers 2023
Автор: LondonGophers
Загружено: 2023-08-02
Просмотров: 1836
Type-driven design makes it almost impossible to represent invalid states in your code. But Go doesn't make this easy. Exported fields, zero values, pointer types and interface{} conspire to hide human mistakes – mistakes that can be avoided with a little help from (and sometimes in spite of) the Go compiler.
This talk will help Gophers write domain models and value objects that remain valid from instantiation to garbage collection. In sharing my battles with Go's type system and the patterns I've learned along the way, I'll demonstrate how to prevent bugs, decouple components and centralize validation, all while making your code a joy to read.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: