Refactoring with Loops and Collection Pipelines - Interesting (?) article from Fowler - Forum - OpenEdge Development - Progress Community

Refactoring with Loops and Collection Pipelines - Interesting (?) article from Fowler

 Forum

Refactoring with Loops and Collection Pipelines - Interesting (?) article from Fowler

  • https://martinfowler.com/articles/refactoring-pipelines.html

    "A common task in programming is processing a list of objects. Most programmers naturally do this with a loop, as it's one of the basic control structures we learn with our very first programs. But loops aren't the only way to represent list processing, and in recent years more people are making use of another approach, which I call the collection pipeline. This style is often considered to be part of functional programming, but I used it heavily in Smalltalk. As OO languages support lambdas and libraries that make first class functions easier to program with, then collection pipelines become an appealing choice."

    Wouldn't it be nice to have these collection pipelines in oe?

  • It would, map and reduce on buffers would be nice also :)

    Marian Edu

    Acorn IT 
    +40 740 036 212

  • Something like linq en.wikipedia.org/.../Language_Integrated_Query  you mean? Creator of linq is Erik Meijer btw, who is a  real computer scientist - contrary to Martin Fowler. Fowler I deem accepted as "thought leader" for this forum,  with a rare exception like me of course. Therefore I copied a link to a Fowler article in the first message, hahaha. Here EM talks about linq: http://queue.acm.org/detail.cfm?id=1394137. Nice video with Meijer in action, for agile lovers: www.youtube.com/watch