(no title)
harladsinsteden | 4 months ago
Very strange reasoning and even stranger results: Streams 1/10?! Lambdas (maybe the biggest enhancement ever) a mere 4/10?!
Sorry, but this is just bogus.
harladsinsteden | 4 months ago
Very strange reasoning and even stranger results: Streams 1/10?! Lambdas (maybe the biggest enhancement ever) a mere 4/10?!
Sorry, but this is just bogus.
tofflos|4 months ago
nunobrito|4 months ago
Really prefer to have more lines of code and understanding very clearly what each one is doing, than convoluting too many instructions on a single line.
harladsinsteden|4 months ago
Especially when writing JavaFX code which is full of callbacks and event handlers I really don't see any other (useful) option.
Can lambdas be misused? Of course they can - but so can every other code construct.
samus|4 months ago
foresterre|4 months ago
It's also a little convoluted to work with different types of data.
For this one, I wish they would have taken a bit more inspiration from other languages and spent the time to make it more readable.
That said, I generally like streams a lot, and they do reduce the amount of branching, and having less possible code execution points makes testing easier too.
wetpaws|4 months ago
[deleted]