#region around implemented interfaces and code smell

Friday, April 18th, 2008

Some (not so) random surfing got me to this... How to get rid of the auto-generated #region for implemented interfaces - Daniel Cazzulino's Blog There's a setting in VS that allows you to turn off the #region generation when using VS's implement interface feature (ALT-SHIFT-F10). 99% of the time ...

PHP or "Help my WordPress template just broke"

Thursday, March 13th, 2008

And now for something completely different... I was tweaking the archive page on my climbing blog last night. I wanted to change the way the heading of each archive page looked to use a HTML <H2> tag not a <P>. This got me into some simple refactoring of PHP ...

PHP and Visual Studio

Wednesday, March 12th, 2008

Recently I've been making some changes to some WordPress templates written in PHP. How did I edit my PHP files? Turns out that David Cumps has added coloring support for PHP Visual Studio 2008! Notepad2 also supports PHP coloring but doesn't copy/paste into LiveWriter with the coloring and doesn't allow you ...

Delay Signing VSTO Add-In Projects

Tuesday, March 4th, 2008

As promised, another post on actually writing code as I've been busy trying the help the p&p DocTools project out the door. One of the final hurdles was getting the VSTO Word Document Add-In use delay signing. I was missing a key step in this process... Build ...

Interview with NDepend author Patrick Smacchia

Monday, January 14th, 2008

InfoQ has an interview with Patrick Smacchia, the author of NDepend. NDepend is the tool for figuring out what's ailing your codebase, where the technical debt lies. Patrick also has a blog which covers some interesting aspects of NDepend usage, like using it for dependency analysis and avoiding regressions when ...

Deep clean your build

Monday, December 17th, 2007

I've never been completely happy with the way Visual Studio cleans solutions. If you take a look at how the Clean target is defined in Microsoft.Common.targets you'll see its doing some clever stuff to look at what the last build produced and remove that. My experience is that over time ...

Common project settings for your Visual Studio solution

Thursday, December 13th, 2007

If you've ever tried to apply the same set of settings to all the projects in a solution you'll know it can be somewhat time consuming. You have to edit each project file and change it's settings. Let's say you'd like to run code analysis on Release builds but ignore ...

Development tools for coding projects

Thursday, December 6th, 2007

It was finally time to re-pave my machine which had been getting a bit sluggish of late. I started off with Peter's machine repave post and created my own backlog of things I install. A while back a blogged about tools for personal coding projects which proved pretty popular. I ...

Renaming a DSL model element

Tuesday, December 4th, 2007

One of the things that proved to be move complicated than it should have been when we were developing the DSLs for the Service Factory: Modeling Edition was renaming DSL model elements. This sounds easy; open the DSL designer, rename the element and then transform all templates to regenerate the code. ...

File system mocking for the lazy programmer

Monday, December 3rd, 2007

Until now I've always skipped mocking or stubbing out the .NET file system File/Path/Directory classes and just had tests that interacted with the disk. Largely because I was too lazy to mock out the file system. I would simply use the real file system and deal with the pitfalls and ...