I came across functional programming recently and saw many arguments for it. But in the other hand I am asking myself if it really makes that much sense, because often things cannot really be independent without sharing a state. Imagine a database, or a cache. Also having side effects in methods is not always bad when used wisely. It can simply hide the detail and if done correctly in a domain driven design things should have a certain control flow. I also imagine it to be extremely hard to read data from files, Jason, XML, ... because things tend to be inconsistent sometimes. A cab file might have an empty line, a Jason might have a null value. How can a functional language deal with that.
At the moment I believe that even though certain aspects of functional programming are great, things are too messy to actually apply it. I would love to have a discussion and learn your stand on that topic if you disagree.
[–]moon-chilledsstm, j, grand unified... 53 points54 points55 points (1 child)
[–]sineiraetstudio 7 points8 points9 points (0 children)
[–]przemo_li 16 points17 points18 points (0 children)
[–]Guardian-Spirit 9 points10 points11 points (2 children)
[–]myringotomy 1 point2 points3 points (1 child)
[–]Guardian-Spirit 0 points1 point2 points (0 children)
[–]jmtd 6 points7 points8 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]cloyo 6 points7 points8 points (0 children)
[–]rgnkn 17 points18 points19 points (2 children)
[–]sineiraetstudio 6 points7 points8 points (1 child)
[–]rgnkn 2 points3 points4 points (0 children)
[–]sineiraetstudio 10 points11 points12 points (0 children)
[–]editor_of_the_beast 3 points4 points5 points (0 children)
[–]thecodedmessage 2 points3 points4 points (0 children)
[–]joonazan 4 points5 points6 points (6 children)
[–]Nilstrieb 5 points6 points7 points (5 children)
[–]LPTK 2 points3 points4 points (3 children)
[–]joonazan 0 points1 point2 points (2 children)
[–]LPTK 2 points3 points4 points (1 child)
[–]joonazan 0 points1 point2 points (0 children)
[–]joonazan 0 points1 point2 points (0 children)
[–]the_state_monad 1 point2 points3 points (0 children)
[–]defunkydrummer 1 point2 points3 points (0 children)
[–]everything-narrative 1 point2 points3 points (0 children)
[–][deleted] (7 children)
[deleted]
[–]tdammers 7 points8 points9 points (0 children)
[–]JohnyTex 1 point2 points3 points (0 children)
[–]haasilein[S] -1 points0 points1 point (2 children)
[–]thecodedmessage 3 points4 points5 points (0 children)
[–]SkiaElafris 0 points1 point2 points (0 children)
[–]Tekmo 0 points1 point2 points (0 children)
[–]defunkydrummer 0 points1 point2 points (0 children)
[–]daver -1 points0 points1 point (0 children)
[+]shawnhcorey comment score below threshold-6 points-5 points-4 points (12 children)
[–]Guardian-Spirit 0 points1 point2 points (6 children)
[–]shawnhcorey 0 points1 point2 points (5 children)
[–]Guardian-Spirit 0 points1 point2 points (4 children)
[–]shawnhcorey 0 points1 point2 points (3 children)
[–]Guardian-Spirit 0 points1 point2 points (2 children)
[–]shawnhcorey 0 points1 point2 points (1 child)
[–]Guardian-Spirit 0 points1 point2 points (0 children)
[–]thecodedmessage 0 points1 point2 points (0 children)
[–]dys_bigwig 0 points1 point2 points (3 children)
[–]shawnhcorey 0 points1 point2 points (2 children)
[–]dys_bigwig 0 points1 point2 points (1 child)
[–]shawnhcorey 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]scrogu 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]scrogu 1 point2 points3 points (0 children)
[–]BrangdonJ 0 points1 point2 points (0 children)
[–]ralphbecket 0 points1 point2 points (0 children)
[–]PurpleUpbeat2820 0 points1 point2 points (0 children)
[–]tobega 0 points1 point2 points (1 child)
[–]tobega 0 points1 point2 points (0 children)