rholm

Stories submitted by rholm

Demystifying LINQ to Objects(www.bugfree.dk)

submitted by rholmrholm(115) 1 year, 7 months ago

To improve my LINQ skills, I’ve long wanted to learn how LINQ to Objects works under the covers. By taking a top-down approach, I’ll decompose a query in query expression syntax to lambda expression syntax to delegate syntax. Because many of the components that make up LINQ are nothing more than syntactic sugar around .NET 2.0 language constructs, learning LINQ in terms of .NET 2.0 seems a good way to get started. read more...

add a comment |category: |Views: 10

tags: another

Essential requirements for a developer automation tool(www.bugfree.dk)

submitted by rholmrholm(115) 1 year, 7 months ago

Developer automation is a subject that I’ve always felt passionate about. Unit testing may be the most common example, but other developer tasks may include the build, deploy, setup, and test of an application on my machine. I may even want the same automation to drive continuous integration to have one system rule them all. Whatever the use, to fully reap the benefits of automation, a developer should master at least one automation tool the same way he masters his other developer tools. This and later posts capture my experiences with a few such automation tools centered around Windows and .NET. read more...

add a comment |category: |Views: 3

tags: another

Unit testing LINQ to SQL using TypeMock(www.bugfree.dk)

submitted by rholmrholm(115) 2 years ago

After watching a screencast on how to use Moles to unit test LINQ to SQL without hitting the database, I thought it would be interesting to do the same with TypeMock. But first, let’s investigate why traditional dependency breaking technique come short with LINQ to SQL. read more...

add a comment |category: |Views: 15

tags: another

The given-expect testing pattern(www.bugfree.dk)

submitted by rholmrholm(115) 2 years ago

I was watching Brett Schuchert’s TDD screencast on implementing the shunting yard algorithm in C#. In it Brett builds up his tests in a style I hadn’t come across before. Each test is expressed as a given-expect statement. A pattern particularly useful in situations in which a class has a main method that accepts an open-ended number of dissimilar inputs. read more...

add a comment |category: |Views: 6

tags: another

SharePoint Saturday EMEA virtual conference(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 1 month ago

Back in January, I attended the one-day virtual SharePoint Saturday EMEA conference on SharePoint 2010. Here’re the talks that I attended, all recorded and available with slides. read more...

add a comment |category: |Views: 4

tags: another

Getting started with SharePoint presentation(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 1 month ago

Instead of the usual presentation on the technical merits of SharePoint, my focus was more on the change in mindset required coming from ASP.NET. For even though ASP.NET is a cornerstone of SharePoint, SharePoint is so much more. Not to mention different. read more...

add a comment |category: |Views: 6

tags: another

Getting started with SharePoint presentation(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 1 month ago

Instead of the usual technical presentation on the merits of SharePoint, my focus was more on the change in mindset required coming from ASP.NET. Not being aware of the extra baggage can make learning SharePoint a frustrating experience. For even though ASP.NET is a cornerstone of SharePoint, it’s so much more. And different. read more...

add a comment |category: |Views: 6

tags: another

SharePoint list access using the Repository pattern(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 3 months ago

Maybe it’s that the SharePoint API is hard to use. Maybe it’s that coding against SharePoint is about making smaller additions here and there. Maybe it’s that the Patterns & Practices SharePoint Guidance isn’t widely known. Whatever the reason, developing for SharePoint requires equal attention to the separation of presentation, business, and data access code. Hence, starting with data access, we may want to create a repository and route queries through it. read more...

add a comment |category: |Views: 171

tags: another

SharePoint list definition using the Template pattern(www.bugfree.dk)

submitted by rholmrholm(115) 2 years, 4 months ago

Books on SharePoint often show how to create lists from code by calling the SharePoint API from directly within a feature receiver. This event handler contains column names as in-place string literals, it updates the default view, and so on. While such an approach provides a nice demonstration of the SharePoint API, it also tends to carry over into production code. My take on feature receivers, however, is that they should contain the least possible amount of code. Staying true to object-orientation and the separation of concerns, list definition and creation should be abstracted into a common set of classes and methods. read more...

add a comment |category: |Views: 8

tags: another

Computer activation with Asp.Net MVC(bugfree.dk)

submitted by rholmrholm(115) 2 years, 5 months ago

This post covers an Asp.Net MVC application that automates the collection of information about computers and their owners on a local area network. The idea is to have the Internet gateway match the identity of each computer that wants to send traffic through it against a white list. Should the request originate from an unknown computer, the gateway redirects that computer to a web application for Internet access activation. read more...

add a comment |category: |Views: 13

tags: another

Using VS linked files for strong naming assemblies(bugfree.dk)

submitted by rholmrholm(115) 2 years, 5 months ago

Visual Studio has the ability to add a file as a link, making other parts of Visual Studio believe the file is actually located where it’s added. One useful application of the link feature is for signing assemblies by way of a key file, without copying the key file around. read more...

add a comment |category: |Views: 4

tags: another

Parallel page processing with Asp.Net(bugfree.dk)

submitted by rholmrholm(115) 2 years, 5 months ago

With Asp.Net, by default a page is rendered synchronously, one control at a time. Processing a complex page this way, using but one thread, may cause the page to render slowly. A simple approach to speed up this process is to use the Asp.Net 2.0 feature for asynchronous page processing, described in this post. read more...

add a comment |category: |Views: 23

tags: another

Generating 2D random fractal terrains with C#(bugfree.dk)

submitted by rholmrholm(115) 2 years, 10 months ago

The Mandelbrot set is an example of a fractal whose definition contains no stochastic element, i.e., the fractal looks the same every time it’s generated. Recently, though, I came across a simple algorithm that claimed to generate fractal terrains by adding randomness to the equation. read more...

add a comment |category: |Views: 185

tags: another

My unit testing guidelines(bugfree.dk)

submitted by rholmrholm(115) 2 years, 10 months ago

Formalizes a set of guidelines on how to write and organize tests. Not having clearly established guidelines from early on is likely to cause tests written by team members to become somewhat of a productivity loss downstream. read more...

add a comment |category: |Views: 14

tags: another

Asp.Net error handling by HttpModule(bugfree.dk)

submitted by rholmrholm(115) 3 years, 8 months ago

In any real-world application, unhalted exceptions are an unavoidable fact of life. Such exceptions should occur relatively infrequently, but when they do some kind of supporting infrastructure best be in place to capture the when and why of the exceptions. As a developer, you should have the ability to perform a postmortem analysis on what went wrong and learn from it. Paramount to such analysis is capturing and logging sufficient information at the point of failure. What this post covers is the thoughts and development of an Asp.Net HttpModule that captures and emails such unhalted exception information to a designated email address. read more...

add a comment |category: |Views: 86

tags: another

Prototyping LINQ using LINQPad(bugfree.dk)

submitted by rholmrholm(115) 3 years, 10 months ago

Blog post describes how to make writing LINQ queries less painful by using LINQPad to prototype your initial query. read more...

add a comment |category: |Views: 23

tags: another