Archives
-
Writing the tests for FluentPath
Writing the tests for
FluentPath
is a challenge. The library is a wrapper around a legacy
API (System.IO) that wasn’t designed to be easily
testable.
-
JavaScript local alias pattern
Here’s a little pattern that is fairly common from
JavaScript developers but that is not very well known
from C# developers or people doing only occasional
JavaScript development.
-
The fastest way to resize images from ASP.NET. And it’s (more) supported-ish.
I’ve shown before
how to resize images using GDI, which is fairly common but is explicitly unsupported
because we know of very real problems that this can
cause. Still, many sites still use that method because
those problems are fairly rare, and because most people
assume it’s the only way to get the job done. Plus, it
works in medium trust.