Anatolii Kmetiuk at #ScalaUA - An argument against functional programming

preview_player
Показать описание
Anatolii Kmetiuk - An argument against functional programming - ScalaUA-2020 Conference

Abstract:
In this talk, I’d like to discuss immutability, purity, category theory and why you do not need these to write sane code.
Slides:

ScalaUA-2020 Conference
Kyiv, Ukraine (Online) April 3-4, 2020

Follow ScalaUA Conference on Twitter:
Рекомендации по теме
Комментарии
Автор

Dynamic programming is "naturally" backwards, and therefore can be naturally expressed with codata/comonad like "decompositions". Unfortunately it is hard to implement co- like algos with a classical composition style without dragging together the two levels of semantics, one which captures the specifics of your problem, the other to capture the "decompositions" with compositions. The result is then the messy code shown here. The conclusion of FP's failings might be different if FP environments naturally led to efficient comonadic and profunctor based implementations.

statebased