What experience have you had with functional Java projects?

I am reading the following questions – how safe would it be to use functional java to add closures to a Java production project?, I've been thinking about using functional java project in my current project I want to know what is the experience of stack overflow users using functional Java projects? In particular, I am curious about these specific details:

>Does it increase code quality or clarity? > Increase productivity? Reduce potential failure points? > Affect performance?

Solution

I've been on a team using FJ library. I know others In one team, it was used to replace the less polished local library, and the other replaced Google collections I also know that some people follow FJ's source code to scroll their implementation

In my opinion, if you have to use Java, you should use something like Java to make your life easier

Code written in a functional style is simpler and therefore clearer Attached to the library, encourage the use of immutable data structures to improve quality The library also encourages composite inheritance, which improves code reusability

of course. Developers with more powerful tools are more productive According to my experience, developers believe that first-class functions make programming easier and more pleasant Happy programmers are productive programmers

A more functional programming style prevents variable states, eliminating a large class of errors In addition, more powerful abstractions lead to less repetition, which reduces the number of errors

There is no reason to believe that performance will be affected by one or another The data structures provided are designed for ease of use and performance rather than performance, but they are best written Like anything else, driving is more important than driving For example, FJ data. List is a linked list, so it has o (n) random access and connection, so you can avoid using it for this purpose In contrast, FJ data. Stream has o (1) cascade

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>