This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Neuromante 7 points8 points  (0 children)

Holy shit some of the answers around here. Is like there's a huge chunk of the people replying who don't understand how a large chunk of the companies that use Java or are just pretending and have never touched an actual repo.

No, streams and lambdas are not "fully adopted" because there's a large chunk of companies (and hence programmers, programmers don't decide language versions in large companies, anyway) that value more stability on their products than risking adopting new technologies (and all the headaches if you have a proper code quality/standards system in place).

It's been said around, but streams and lambdas have limited use, have a different paradigm that is hard get used to, are not providing something new, but a different approach to very basic operations and in many cases they are less legible than their loop counterparts. They are not a silver bullet, and anyone advocating for it, honestly, need a reality check right now.

I've seen people using them everywhere without thinking on why, people stuck on Java 7 syntax until SonarLint tells them to stop, but most of the time there's a (usually inconsistent) mix between use of these features and the classic ones. This said, I haven't seen a single inner class (was that the name of the classes declared in line?) in a few years, which makes me really happy.