4 ms·
To the contrary. From my experience adding FP to Java is something natural, good devs do this on their own without wanting to write FP code. Side effect free me
by Uchikoma 15y ago
To the contrary. From my experience adding FP to Java is something natural, good devs do this on their own without wanting to write FP code. Side effect free methods, immutable objects, immutable data structure etc. all add to better code in large code bases. That's why good devs use Google Guava or LambdaJ instead of for loops for example.
- stephth 15y agoDo you use any naming convention to differentiate between pure and non-pure functions?
- Uchikoma 15y agoNo. I wish there was an IO monad (an exception monad) in Java. Or at least a common understanding in compilers and IDEs about a @Pure annotation.
- nickik 15y agoThat could be right i don't know and I haven't heard of Google Guava or LambdaJ. I know that Uncle Bob for example say that methodes with no arguments are best and that the opposit of what FP is all about (there are other examples like this). So, are you arguing that good java devs don't follow the standart java comunity idioms? Sure there are some devs that to that but to say FP is natural to any good Java dev is a bit of a stratch.
- gaius 15y agoCan you link me to the Uncle Bob article?
- nickik 15y agoI think it was this video but im not 100% sure. http://www.viddler.com/explore/oredev/videos/15/ http://www.viddler.com/explore/oredev/videos/15/
- Uchikoma 15y agoNever heard of that "no arguments are best" java community idiom in the last 15 years, so can't comment on that.