3 ms·
Because no one can clearly explain the advantages of FP. Not “in theory”, but using commonly used practical tasks. I don’t care about immutability unless it c
by p1esk 7y ago
Because no one can clearly explain the advantages of FP. Not “in theory”, but using commonly used practical tasks. I don’t care about immutability unless it clearly makes my life easier and so far I got by just fine with non-FP style of doing things. The only valid argument I heard is “it expands your mind as a programmer”. Yeah, whatever.
- girishso 7y ago> it expands your mind as a programmer That’s exactly what got me interested in FP. But after doing some serious work in FP, I must say typed FP really does help keep my mind more saner, knowing nothing’s broken in the product, with my changes here and there. Of course, TDD helps in OO/imperative languages, but with typed FP you get that almost for free.
- valand 7y agoThe last part really captures how TypeScript saved me from headaches. :D
- girishso 7y agoWhen I said typed FP, I meant languages with ADTs.. Elm/Haskell etc., not Typescript! :)
- valand 7y agoI thought we were talking about FP paradigm, not the language, and the Typed data concept which includes compile time type validations, type inference. And also I'm pretty sure TypeScript has union, intersections, tuples, record which are pretty much ADTs.
- girishso 7y agoYou're right, my bad. I didn't know TypeScript had ADTs. Should probably take a serious look at TypeScript.
- 0_gravitas 7y agoimmutability has absolutely made my life easier, effectively knowing that at all times "if i perform this operation here i know for a fact that im not going to bork anything anywhere else"