Tag
Streams
2 posts tagged Streams.
2 September 2026
Grouping and summarizing a list in modern Java
Collectors.groupingBy with a downstream collector replaces most of the loop-and-map code people still write - plus records, which remove the class that loop needed.
2 September 2026
Reading a huge file line by line in Node, without loading it
readFileSync on a 2GB log is how a Node process dies. Streaming it line by line uses a constant few kilobytes instead, and is barely more code.