3 ms·
My problem usually appears when rather than clearly laying out the types of each returned value like in the article, all the FP guys I've worked with want to bu
by yCombLinks 2y ago
My problem usually appears when rather than clearly laying out the types of each returned value like in the article, all the FP guys I've worked with want to build giant chains that look like : return beat(whip(mix....(eggs)))
- myth2018 2y agoMine too. I've worked for a shop adopting this practice some time ago. A very common pattern was to declare a relatively large Python dictionary with function calls and list comprehensions nested deep in the dict [sub]properties. Nice to glance, terrible to debug and reason about.
- mrkeen 2y agoLikewise with the OO guys. Eggs.mix() .whip() .beat(); There's even a term for it - 'fluent API' - described as: > Fluent API is a way of implementing object oriented API in a way that it provides readable code. [https://www.progress.com/documentation/sitefinity-cms/for-developers-use-readable-code-with-the-fluent-api https://www.progress.com/documentation/sitefinity-cms/for-de...]