Browse by Tags
All Tags »
FP Tutorial (RSS)
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
Read More...
[Blog Map] 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
Read More...
[Blog Map] 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
Read More...
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
Read More...
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. VB developers can realize the benefits
Read More...
[Blog Map] 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
Read More...
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
Read More...
[Blog Map] 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
Read More...
[Blog Map] 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
Read More...
[Blog Map] You can use LINQ to XML to transform XML trees with the same level of power and expressability as with XSLT, and in many cases more than with XSLT. One of the reasons that XSL is so powerful is that you can write multiple rules to transform
Read More...
[Table of Contents] [Next Topic] Open XML Packages To follow this tutorial, you don't need to delve into all of the details of working with packages. This topic presents a small chunk of code that you can use as boilerplate code – it opens a word document
Read More...
[Table of Contents] [Next Topic] The first problem that we're going to tackle is to retrieve some specific text out of an Open XML Word document. In this word document will be text that has the style of "Code". We want to find all consecutive paragraphs
Read More...
[Table of Contents] [Next Topic] One of the most important concepts in LINQ is the notion of lazy evaluation. Without this facility, LINQ would perform very poorly. Query expressions operate on some type that implements IEnumerable<T>. The variable
Read More...
[Blog Map] Functional Programming (FP) has the potential to reduce program line count by 20% to 50%, reduce bugs and increase robustness, and move us in the direction of taking advantage of multiple core CPUs. But perhaps due to the learning curve, and
Read More...
[Table of Contents] [Next Topic] The following code is attached to this page. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml; using System.Xml.Linq; using DocumentFormat.OpenXml.Packaging;
Read More...