rasmuskl

Stories submitted by rasmuskl

Craftsmanship In The Wild(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 2 months ago

Title says it all. read more...

add a comment |category: |Views: 5

tags: another

Code Coverage – What You Need To Know(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 3 months ago

People often talk about the percentage of code coverage they have from unit tests, whether it be actual coverage or the goal they or their project have set. Having a high coverage percentage is often seen as a quality, but code coverage is not really a metric that gives much value in itself. In this post I want to investigate the different types of code coverage that exists and address some of the problems with code coverage. read more...

add a comment |category: |Views: 13

tags: another

Testing a Visitor - Mocking and Test Readability(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 4 months ago

The other day I was using TDD to write a visitor for an object graph at work. I often use mocks a lot and was using mocks in this particular batch of tests as well. However, in the end creating my own fake class turned out to be much better (in my opinion). Favoring state-based testing over interaction-based testing (sometimes) can really simplify the noise within a test and provide clarity. read more...

add a comment |category: |Views: 12

tags: another

Reducing Check-In Friction (in Continuous Integration)(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 4 months ago

Short post on reducing check-in fear and enabling regular check-ins in a continuous integration environment. read more...

add a comment |category: |Views: 6

tags: another

Craftsmanship over Crap(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 4 months ago

I challenge you. Be a craftsman, think about leaving the code slightly better than you found it. Maybe your new new years resolution? read more...

add a comment |category: |Views: 17

tags: another

A WinDbg Debugging Journey - NHibernate Memory Leak(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 5 months ago

A small debugging tale of how I got introduced to WinDbg and how it helped me track down a memory leak in NHibernate and reduce my memory usage from ~800mb to ~50mb. It's a funky tool and can be quite scary at first, but if it helps me remove memory leaks, I am all for it. The second lesson learned is that sometimes - although I still won't look there first - SELECT is broken. read more...

add a comment |category: |Views: 264

tags: another

Patterns: Iterator And .NET - Yield I Say!(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 6 months ago

In this second post of my patterns and principles series, I aim to give an overview of the Iterator pattern, a pattern most of us .NET people have so integrated in our languages that we don't even think about it. But it is still useful to know the theory of the pattern and how it is integrated into the framework - the solution baked in allows for more variation than you'd think. read more...

add a comment |category: |Views: 21

tags: another

Design By Contract Preconditions With Expression Trees(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 6 months ago

Seems like Design by Contract is coming to C# 4.0, replacing the somewhat inadequate Debug.Assert, which is the only thing built into the framework at the moment. However, what are the options for today? In this post, I'll take a look at how to improve current precondition checking techniques using C# 3.0 expression trees. read more...

add a comment |category: |Views: 10

tags: another

Simple ASP.NET MVC Beta AJAX with jQuery!(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 6 months ago

ASP.NET MVC is all the rage these days - and after Microsoft announced their partnership with the great folks over at jQuery and started shipping it - I knew I had to explore the whole AJAX experience again. I've still not played too much with the MVC framework, but I am working on switching a few projects over from WebForms - and I must say that the experience is quite different. So I've set out to do the smallest (simple) demo possible of ASP.NET MVC AJAX with jQuery - just to get (and give you) the flavor of it. read more...

add a comment |category: |Views: 120

tags: another

Patterns and Principles (Part I) - Getting Started(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 7 months ago

Design patterns and principles are a fundamental thing in software development. Yet they're can be quite elusive and difficult to get into. As one of my goals with this blog is to further my own knowledge, as well as share it with others, I've wanted to do posts on basic object oriented principles and patterns. I believe that patterns is one of those things you grasp best when actively thinking about them - and thus to improve my own skillset on patterns, writing blog posts and thinking up good examples is a great way to go. read more...

add a comment |category: |Views: 30

tags: another

Ditching ActiveRecord For More NHibernate Love(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 7 months ago

I had a project using an old version of Castle ActiveRecord and NHibernate 1.2. Lately there's been a lot of interesting projects surrounding NHibernate and I've been wanting to make the switch away from the old version of ActiveRecord. So I wanted to eradicate ActiveRecord from my reference list and upgrade NHibernate from 1.2. So I thought I'd share my experiences and some of the useful links I found along the way. read more...

add a comment |category: |Views: 11

tags: another

Embedded Scripting Language? Boo!(rasmuskl.dk)

submitted by rasmusklrasmuskl(110) 3 years, 7 months ago

A short introduction to Boo as embedded scripting language on the .NET platform. read more...

add a comment |category: |Views: 109

tags: another