-
Recent Posts
Recent Comments
- Keith Dahlby on Announcing posh-tf
- Tom de Koning on Announcing posh-tf
- Keith Dahlby on Announcing posh-tf
- Akash Chopra on Announcing posh-tf
- MartinEvans on ASP.NET Web API List Parameter Binding
Archives
Categories
- ASP.NET
- asp.net mvc
- ASP.NET Web API
- Book Review
- ControllerSessionState
- ControllerSessionStateAttribute
- DataContext
- DLINQ
- Expression Trees
- Extension Methods
- F#
- fsharp
- fsrazor
- Functional Construction
- Functional Programming
- git
- git-achievements
- git-svn
- Hacking LINQ
- HTTP Compression
- IDisposable
- IIS
- ILazyContext
- ILazyQueryable
- Iterators
- LazyLinq
- LINQ
- LINQ to SQL
- msysgit
- mvc 3
- NUnit
- Performance
- posh-git
- posh-tf
- powershell
- Queryable
- razor
- red-gate
- Refactoring
- reflector
- RenderAction
- Serializable
- SessionStateAttribute
- SharePoint
- SPExLib
- Stack Overflow
- STLDODN
- testing
- Uncategorized
- WatiN
Meta
Author Archives: Keith Dahlby
Is Functional Abstraction Too Clever?
I received a rather interesting comment on a recent Stack Overflow answer: This code seems too clever by half. Is it art? – PeterAllenWebb The code in question was a functional solution to an algorithm described approximately as follows: Draw n−1 … Continue reading
Posted in Functional Programming
12 Comments
Refactoring with Iterators: Prime Factors
Andrew Woodward recently posted a comparison of his test-driven Prime Factors solution to one written by Uncle Bob. In the comments, someone suggested that Andrew use an iterator instead so I thought I’d give it a try. First, let’s repost … Continue reading
Posted in Iterators, Refactoring
2 Comments
Hacking LINQ Expressions: Join With Comparer
In this installment of my Hacking LINQ series we’ll take a look at providing an IEqualityComparer for use in a LINQ join clause. The Problem Many of the Standard Query Operators require comparing sequence elements and the default query providers … Continue reading
Posted in Hacking LINQ, LINQ
Leave a comment
Hacking LINQ Expressions: Select With Index
First, a point of clarification: I use LINQ Expressions to mean (Language-INtegrated) Query Expressions (the language feature) rather than Expression Trees (the .NET 3.5 library in System.Linq.Expressions). So what do I mean by “Hacking LINQ Expressions”? Quite simply, I’m not … Continue reading
Posted in Hacking LINQ, LINQ
3 Comments
Functional Construction for ASP.NET Web Forms
System.Xml.Linq (a.k.a. LINQ to XML) introduces a nifty approach to creating XML elements called functional construction. I’m not entirely sure why they call it functional given that constructing an object graph is a decidedly non-functional task in the traditional sense … Continue reading
Posted in ASP.NET, Functional Construction
Leave a comment
Simplifying LazyLinq
This is the fourth in a series of posts on LazyLinq, a wrapper to support lazy initialization and deferred disposal of a LINQ query context: Introducing LazyLinq: Overview Introducing LazyLinq: Internals Introducing LazyLinq: Queryability Simplifying LazyLinq Introducing LazyLinq: Lazy DataContext … Continue reading
Posted in ILazyContext, ILazyQueryable, LazyLinq, LINQ, LINQ to SQL, Queryable
Leave a comment
Introducing LazyLinq: Queryability
This is the third in a series of posts on LazyLinq, a wrapper to support lazy initialization and deferred disposal of a LINQ query context: Introducing LazyLinq: Overview Introducing LazyLinq: Internals Introducing LazyLinq: Queryability Simplifying LazyLinq Introducing LazyLinq: Lazy DataContext … Continue reading
Posted in ILazyQueryable, LazyLinq, LINQ, Queryable
Leave a comment
Introducing LazyLinq: Internals
This is the second in a series of posts on LazyLinq, a wrapper to support lazy initialization and deferred disposal of a LINQ query context: Introducing LazyLinq: Overview Introducing LazyLinq: Internals Introducing LazyLinq: Queryability Simplifying LazyLinq Introducing LazyLinq: Lazy DataContext … Continue reading
Posted in Uncategorized
Leave a comment
Introducing LazyLinq: Overview
This is the first in a series of posts on LazyLinq, a wrapper to support lazy initialization and deferred disposal of a LINQ query context, including LINQ to SQL’s DataContext: Introducing LazyLinq: Overview Introducing LazyLinq: Internals Introducing LazyLinq: Queryability Simplifying … Continue reading
Posted in DataContext, Expression Trees, LazyLinq, LINQ, LINQ to SQL
Leave a comment
Using IDisposables with LINQ
Objects that implement IDisposable are everywhere. The interface even gets its own language features (C#, VB, F#). However, LINQ throws a few wrenches into things: LINQ’s query syntax depends on expressions; using blocks are statements. When querying a sequence of … Continue reading
Posted in IDisposable, LINQ, LINQ to SQL
6 Comments
