Working Software ep. 7: Aggregating Sequences in .NET


Details
Join me on Wednesday, November 17th, starting at 2pm CET, for a live stream of ep. 7 of the Working Software series: Aggregating Sequences in .NET, or how to aggregate a sequence and apply a different operator, too.
Following the previous episode, in which we have talked about using LINQ in design, in this episode we will turn our focus to one corner case which plagues LINQ - deferred aggregation of sequences. You will see one genuine problem which occurs in real world applications, and one attempt to solve it.
The problem we will outline is working with a stream of object which is never materialized into a collection, with twofold request: One is to pass the stream through an operator which consumes it, and other is to calculate one or more aggregated values on it.
While existing Aggregate LINQ operator consumes the sequence, hence making it unavailable to any subsequent operator, in this presentation, you will see a modified Aggregate operator which accumulates information along with execution of an unrelated LINQ operator: A deferred aggregation - the missing feature of LINQ.
Location: https://youtu.be/gWe2QCBDiJY

Working Software ep. 7: Aggregating Sequences in .NET