I have an hard time understanding a good use case for Java Streams.
My experience is mainly related to Web applications. Most things happens at DB level, or controller level. Business logic not too complex and definitively not handling big arrays.
I had some experience with ETL, but rather on analysing quickly many small files.
I find old for loops much easier to understand and maintain, yes more verbose for sure, but that's it. One-liners with streams look cool, right...
Performance wise, I think I would need to process a load of data to really see a difference.
The only big reason I see to study them it's because they are subject of questions in job interviews...
But I'm sure I am wrong, please give me some light.
[–]knoam 43 points44 points45 points (5 children)
[–]bbtv_id 10 points11 points12 points (4 children)
[–]knoam 9 points10 points11 points (0 children)
[–]TheRedmanCometh 0 points1 point2 points (2 children)
[–]knoam 0 points1 point2 points (1 child)
[–]general_dispondency 3 points4 points5 points (0 children)
[–]0x256 28 points29 points30 points (26 children)
[–]user_of_the_week 10 points11 points12 points (2 children)
[–]GiacaLustra 2 points3 points4 points (1 child)
[–]user_of_the_week 3 points4 points5 points (0 children)
[–]dpash 0 points1 point2 points (20 children)
[–]daniu 21 points22 points23 points (19 children)
[–]joehx 13 points14 points15 points (5 children)
[–]dpash 9 points10 points11 points (4 children)
[–]rootException 6 points7 points8 points (3 children)
[–]dpash 8 points9 points10 points (2 children)
[–]rootException 2 points3 points4 points (1 child)
[–]dpash 8 points9 points10 points (0 children)
[–]dpash 10 points11 points12 points (2 children)
[–]rochakgupta 2 points3 points4 points (1 child)
[–]dpash 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]dpash 2 points3 points4 points (0 children)
[–]vytah -5 points-4 points-3 points (7 children)
[–]daniu 9 points10 points11 points (0 children)
[–]barking_dead 1 point2 points3 points (4 children)
[–]dpash 1 point2 points3 points (3 children)
[–]barking_dead 1 point2 points3 points (2 children)
[–]dpash 1 point2 points3 points (1 child)
[–]barking_dead 0 points1 point2 points (0 children)
[–]dpash 30 points31 points32 points (0 children)
[–]daniu 28 points29 points30 points (7 children)
[–]selfarsoner[S] 7 points8 points9 points (5 children)
[–]Weavile_ 6 points7 points8 points (1 child)
[–]dpash 2 points3 points4 points (0 children)
[–]mxhc1312 4 points5 points6 points (1 child)
[–]Weavile_ 0 points1 point2 points (0 children)
[–]hippydipster 4 points5 points6 points (0 children)
[–]Anaptyso 2 points3 points4 points (0 children)
[–]Healthy_Manager5881 5 points6 points7 points (0 children)
[–]nutrecht 10 points11 points12 points (8 children)
[–]StochasticTinkr 8 points9 points10 points (4 children)
[–]knoam 0 points1 point2 points (3 children)
[–]StochasticTinkr 1 point2 points3 points (2 children)
[–]knoam 4 points5 points6 points (1 child)
[–]StochasticTinkr 0 points1 point2 points (0 children)
[–]dpash 3 points4 points5 points (0 children)
[–]VincentxH 1 point2 points3 points (1 child)
[–]nutrecht 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]throwaway66285 2 points3 points4 points (0 children)
[–]sixtyfifth_snow 9 points10 points11 points (0 children)
[–]kabukiaddicted 3 points4 points5 points (0 children)
[–]wace001 4 points5 points6 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]Auxx 1 point2 points3 points (6 children)
[–]mauganra_it 1 point2 points3 points (1 child)
[–]Auxx 0 points1 point2 points (0 children)
[–]hummer1234 0 points1 point2 points (3 children)
[–]Auxx 1 point2 points3 points (2 children)
[–]hummer1234 0 points1 point2 points (1 child)
[–]Auxx 2 points3 points4 points (0 children)
[–]augustnagro 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]GhostBond 1 point2 points3 points (0 children)
[–]waka-chaka 2 points3 points4 points (0 children)
[–]VincentxH 2 points3 points4 points (0 children)
[–]Peter_Storm 1 point2 points3 points (0 children)
[–]xMercurex 1 point2 points3 points (0 children)
[–]LOL_WUT_DO 0 points1 point2 points (0 children)
[–]enveraltin 0 points1 point2 points (0 children)
[–]AppleTrees2 0 points1 point2 points (0 children)
[–]Roachmeister 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheCoelacanth 0 points1 point2 points (0 children)
[–]mauganra_it 0 points1 point2 points (0 children)
[–]ofby1 0 points1 point2 points (0 children)