rasmuskl

Stories kicked 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

A new breed of magic strings in ASP.NET MVC(lostechies.com)

submitted by johnsheehanjohnsheehan(4785) 3 years, 4 months ago

One of the common patterns in Ruby on Rails is the use of hashes in place of large parameter lists. Instead of hashes, which don’t exist in C#, ASP.NET MVC uses anonymous types for quite a few HTML generators on the view side. This is a trick used by the MVC team to simulate hashes. Since the dictionary initializer syntax is quite verbose, with lots of angly-bracket cruft, anonymous types provide a similar effect to hashes. However, don’t let the magic fool you. Anonymous types used to create dictionaries are still dictionaries. read more...

2 comments |category: |Views: 373

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

C# Design Patterns - Abstract Factory Pattern(geekdaily.net)

submitted by justinbezansonjustinbezanson(1555) 3 years, 4 months ago

We’ll be continuing on with our fictional city council that has commissioned us to develop an application that lets them manage their yearly dog registrations. Since the application is all about managing dogs and their owners it makes sense to have a DogFactory class that will create the different breeds of dogs that will be stored in the application. read more...

add a comment |category: |Views: 651

tags: another

Activator.CreateInstance Performance(codethinked.com)

submitted by justin_etheredgejustin_etheredge(8539) 3 years, 4 months ago

A look at the different forms of Activator.CreateInstance and the performance implications of each. read more...

add a comment |category: |Views: 845

tags: another

There is More Content than Just the Front Page on DotNetKicks(beckelman.net)

submitted by beckelmwbeckelmw(2755) 3 years, 4 months ago

Are you tired of going to DotNetKicks and finding the same stories on the front page for days in a row? Trust me, there is some great content out there that never makes the front page. You just have to look a little deeper. When you do, you can help put some of that great new content in front of the masses. Even if you don’t submit stories yourself, you can still help out by giving the initial votes that push a story to the front page. read more...

add a comment |category: |Views: 249

tags: another

Verifying code and testing with Pex(blog.maartenballiauw.be)

submitted by maartenbamaartenba(5845) 3 years, 4 months ago

Earlier this week, Katrien posted an update on the list of Belgian TechDays 2009 speakers. This post featured a summary on all sessions, of which one was titled “Pex – Automated White Box Testing for .NET”. Here’s the abstract: “Pex is an automated white box testing tool for .NET. Pex systematically tries to cover every reachable branch in a program by monitoring execution traces, and using a constraint solver to produce new test cases with different behavior. Pex can be applied to any existing .NET assembly without any pre-existing test suite. Pex will try to find counterexamples for all assertion statements in the code. Pex can be guided by hand-written parameterized unit tests, which are API usage scenarios with assertions. The result of the analysis is a test suite which can be persisted as unit tests in source code. The generated unit tests integrate with Visual Studio Team Test as well as other test frameworks. By construction, Pex produces small unit test suites with high code and assertion coverage, and reported failures always come with a test case that reproduces the issue. At Microsoft, this technique has proven highly effective in testing even an extremely well-tested component.” After reading the second sentence in this abstract, I was thinking: “SWEET! Let’s try!”. So here goes… read more...

add a comment |category: |Views: 249

tags: another

Thinking only of the Junior Developer(elegantcode.com)

submitted by cwbrandsmacwbrandsma(1711) 3 years, 4 months ago

How do you treat Junior developers, what code do you give them, and do you let their presence change your architecture? read more...

4 comments |category: |Views: 541

tags: another

Not Your Typical Top Ten Of 2008 Post(haacked.com)

submitted by simonechsimonech(10.1k) 3 years, 4 months ago

Phil lists his top 10 posts but also the posts he liked the most from other bloggers read more...

add a comment |category: |Views: 5

tags: another

Is lambdas syntatic sugar, or Turkish delight?(tunatoksoz.com)

submitted by tehliketehlike(1000) 3 years, 4 months ago

In this post, Tuna tries to clarify his points on whether lambdas are syntatic sugars or not. read more...

1 comment |category: |Views: 402

tags: another

Debugging With Tracepoints (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Well, last week, while I saw John Cunninghams session at PDC 2008 about Visual Studio Debugger Tips & Tricks, I learned something new about breakpoints. The Visual Studio debugger has another feature called tracepoints. read more...

2 comments |category: |Views: 333

tags: another

What is Microsoft waiting for providing a decent path API?(codebetter.com)

submitted by johnsheehanjohnsheehan(4785) 3 years, 4 months ago

I was recently browsing the code source of Managed Extensibility Framework and realized that this future part of .NET 4, full of tricky and advanced ideas, was naively relying on strings to describe files and directories paths. It seems that the version 4 of .NET will miss the need for a descent path API. There is the class System.IO.Path but it is feature limited, full of flaws and pitfalls (to not say bugs) and it fosters users to encode their paths into raw strings. It seems to me that using strings to encode paths is as primitive as using String.IndexOf("<tag>") to parse some XML. read more...

1 comment |category: |Views: 262

tags: another

Raising Events the right way, the easy way, with an Extension Method(brianc.me)

submitted by briancbrianc(195) 3 years, 5 months ago

Raising events takes 3 lines of code. Let's follow the DRY principal and get that down to one line. Less noise, more action, very tastey. Merry Christmas. read more...

1 comment |category: |Views: 527

tags: another