Тёмный

Kris Jenkins - Types All The Way Down 

Compose Conference
Подписаться 2,7 тыс.
Просмотров 4,6 тыс.
50% 1

Kris Jenkins' talk at Compose :: Conference in Melbourne, 2016.
--
In web development, a great deal of effort is spent on consistency. The frontend, backend and database must all agree on a data-model, and if they don't, the system crashes spectacularly.
The default solutions are either to invest heavily in hand-written integration tests, or use JavaScript everywhere. Neither of these are ideal. However there is a compelling alternative - use the same types everywhere.
By reusing strong, static types across tiers, we can make guarantees about the consistency of the entire system, and dramatically lower the cost of change.
We present one approach that uses Haskell data types to drive a both a PostgreSQL database schema and a frontend system written in Elm. With one set of types to rule them all, whole system consistency is automatic and reliable, and the cost of changing types - and hence evolving the whole system's data model - is dramatically reduced.
--
www.composeconference.org/2016...

Наука

Опубликовано:

 

18 сен 2016

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
Далее
Brian McKenna - Productionisation of Functional Optics
23:28
George Wilson - The Extended Functor Family
21:57
Просмотров 15 тыс.
Bidirectional Type Checking
41:31
Просмотров 6 тыс.
The Best Refactoring You’ve Never Heard Of
32:33
Просмотров 14 тыс.
Haskell is Not For Production and Other Tales
38:19
Просмотров 100 тыс.
The Probability Monad
46:40
Просмотров 8 тыс.
"Propositions as Types" by Philip Wadler
42:43
Просмотров 125 тыс.
Will the battery emit smoke if it rotates rapidly?
0:11