Uncategorized

Markdown Posts Not Appearing in WordPress Homepage?

Hmph. I just discovered Markdown which makes a great partner to the TextMate Blogging Bundle, but my recent markdown-formatted posts don’t seem to be appearing on the homepage of my blog…

Anyone know what’s going on?

Uncategorized

Comments (0)

Permalink

TFS and Renames

Does it really have to suck quite this badly?

I have a trunk branch and a stable branch. When I want to promote a cut of code from trunk to stable, I use ‘merge’, and for every single file in every single folder that’s been renamed in trunk, I have to fucking well confirm, with three mindless bastard clicks, that I want to use the name/path from trunk.

Do the people who wrote this thing use it themselves? How do they sleep at night?

Uncategorized

Comments (1)

Permalink

Avoid Spaghetti Execution with the Judicious use of Inline Scripting

Rob Conery has kicked up a bit of a stink posting about the use of inline scripting in modern ASP.NET apps.

I may post more on this subject when I have time, but I had to just weigh in with my support for disciplined use of this technique, which can save you hundreds of pointless lines of code and execution cycles in a large app if used wisely.

One trick we use is to replace all those silly asp:LinkButton tags with a good ole anchor tag, and a call to a special utility class called LinkBuilder which knows how the site’s URLs hang together, like so:

<a href="<%= LinkBuilder.Show(catalogueItem) %>">Cancel</a>
This sort of markup can hardly be acused of being spaghetti code (the LinkBuilder method has a single line inside it), and means that we avoid what you might call ‘spaghetti execution’ when you actually come to spin the thing up.

Think about what a sequence diagram of the equivalent use of an asp:LinkButton with a wired OnClick event would look like. Eugh.

Uncategorized

Comments (0)

Permalink