Browse by Tags

All Tags » LINQ » FP Tutorial
  • Why I Don’t Use the ForEach Extension Method

    In my first version of my functional programming tutorial, I discussed a ForEach extension method, but I removed the topic from the second version.  This extension method iterates through a source collection and performs an action on each item in the collection.  ForEach isn’t included in the .NET base class library (BCL), but its ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on April 8, 2009
  • Ease of Maintenance of LINQ Code

    I believe that it is easier to maintain code that is written in the functional style.  For one thing, this is the very reason for many of the characteristics of functional code.  No state is maintained, so we don’t have to worry about corrupting any state.  If a variable is in scope, then the variable has its value, and it will ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on February 20, 2009
  • Finding Paragraphs by Style Name or Content in an Open XML Word Processing Document

    About a week ago, I posted a very interesting guest post by Bob McClellan, where he discussed some code that allows you to more easily move/insert/delete paragraphs in Open XML documents.  He is in the process of putting together a PowerShell cmdlet that demonstrates this functionality within the PowerTools for Open XML open source ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on February 16, 2009
  • Two Upcoming Presentations on LINQ and Open XML

    At TechReady8, I’ll be presenting a 400 level course “Developing Office Client Solutions using LINQ and Open XML”.  TechReady8 is a Microsoft employee only event, but non-Microsoft folks in the Seattle area can come see the same talk at the .NET Developers Association of Redmond meeting on January 19th.  This talk will be at 7:00PM, in ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on January 14, 2009
  • Functional Programming Tutorial for Visual Basic 9.0

    Visual Basic 9.0 added many language features that allow us to write in the functional style in a natural and expressive way.  The value of programming in the functional style has been apparent to me for some time, and VB developers can realize the same benefits as C# developers, so I’ve written a tutorial for VB developers: Query Composition ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on November 24, 2008
  • Closures

    Closures are one of the key components in C# 3.0 that makes functional programming easy, and results in clean syntax.  Yet, they are not really necessary to understand in order to write queries in the functional style.  Why?  Because closures make the language ‘just work’ exactly in the way that you expect.  I’ve made use of ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on September 11, 2008
  • Object Dumper: An Invaluable Tool for Writing Code in the Functional Programming Style

    When developing C# programs in the functional programming style, you often need to dump out a collection to the console.  Object dumper is a great tool to use for this.  It is a sample that far too few developers know about. A functional transform typically takes the form of successive transformations: transform collection a => ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on August 14, 2008
  • Are Developers Using LINQ? (Part 2)

    The response to my previous blog post has been very interesting to me.  And it has, to a very large extent, matched my own experience. I have seen four basic scenarios where folks use LINQ: Using LINQ to Objects (and LINQ to XML, which is really just LINQ to Objects), primarily using the extension methods, and the so-called ‘method ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 25, 2008
  • Are Developers Using LINQ?

    I had an interesting conversation with my nephew the other day.  He is a very bright CS student working as a summer intern at a software company (not Microsoft).  He is programming in C# using Visual Studio 2008.  I asked him if developers at his company were using LINQ, and he said, ''No, that the folks in charge had basically ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on July 23, 2008
  • Using Annotations to Transform LINQ to XML Trees in an XSLT Style (Improved Approach)

    In our family, we have a rule – on Mother's day, my wife basically gets to set the agenda for the entire weekend.  And, as appropriate, she doesn't have to lift a finger around the house.  And on Father's day, the same rule applies for me.  But on all other weekends, normal rules apply.  This year, because my wife was out of ...
    Posted to LINQ in Action roller (Weblog) by Anonymous on June 23, 2008